mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-14 16:26:23 -07:00
Add template loading to the templates manage action
This commit is contained in:
parent
a8436c5ee4
commit
7e07e24f16
6 changed files with 87 additions and 55 deletions
|
@ -1,16 +1,17 @@
|
|||
<div style="text-align: center;">
|
||||
<form action="{{webPath "manage/templates"}}" method="POST" id="template-override">
|
||||
{{with $.templateText}}
|
||||
<b>Editing: {{$.currentTemplate}}</b>
|
||||
<textarea class="template-text" rows="16" spellcheck="false">{{$.templateText}}</textarea>
|
||||
<b>Editing: {{$.selectedTemplate}}</b>
|
||||
<textarea name="templatetext" class="template-text" rows="16" spellcheck="false">{{$.templateText}}</textarea>
|
||||
<input type="submit" name="dooverride" value="Submit" onsubmit="return prompt('Are you sure you want to override the template?')">
|
||||
<input type="submit" name="cancel" value="Cancel"/>
|
||||
{{else}}
|
||||
Select a template: <select name="templateselect">
|
||||
{{range $t, $template := .templates}}
|
||||
<option value="$template"></option>
|
||||
<option value="{{$template}}">{{$template}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
<input type="submit" name="dotemplatechoose" value="Select template" />
|
||||
{{end}}
|
||||
</form>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue