2017-08-27 09:33:45 +00:00
|
|
|
{{template "header.html" . }}
|
2017-12-27 23:38:37 +00:00
|
|
|
<div class="colstack panel_stack">
|
2017-11-23 05:37:08 +00:00
|
|
|
|
2017-08-27 09:33:45 +00:00
|
|
|
{{template "panel-menu.html" . }}
|
|
|
|
<main class="colstack_right">
|
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem"><h1>Word Filters</h1></div>
|
|
|
|
</div>
|
|
|
|
<div id="panel_word_filters" class="colstack_item rowlist">
|
|
|
|
{{range .Something}}
|
|
|
|
<div class="rowitem panel_compactrow editable_parent">
|
|
|
|
<a data-field="find" data-type="text" href="/panel/settings/word-filters/edit/{{.ID}}" class="editable_block panel_upshift edit_fields">{{.Find}}</a>
|
2017-12-10 03:43:30 +00:00
|
|
|
<span class="itemSeparator"></span>
|
2017-08-27 09:33:45 +00:00
|
|
|
<a data-field="replacement" data-type="text" class="editable_block panel_compacttext">{{.Replacement}}</a>
|
|
|
|
<span class="panel_buttons">
|
2017-12-10 03:43:30 +00:00
|
|
|
<a class="panel_tag edit_fields hide_on_edit panel_right_button edit_button" aria-label="Edit Word Filter"></a>
|
2017-08-27 09:33:45 +00:00
|
|
|
<a class="panel_right_button" href="/panel/settings/word-filters/edit/submit/{{.ID}}"><button class='panel_tag submit_edit show_on_edit' type='submit'>Update</button></a>
|
2017-12-10 03:43:30 +00:00
|
|
|
<a href="/panel/settings/word-filters/delete/submit/{{.ID}}?session={{$.CurrentUser.Session}}" class="panel_tag panel_right_button hide_on_edit delete_button" aria-label="Delete Word Filter"></a>
|
2017-08-27 09:33:45 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2018-02-19 04:26:01 +00:00
|
|
|
<div class="rowitem editable_parent rowmsg">
|
2017-08-27 09:33:45 +00:00
|
|
|
<a>You don't have any word filters yet.</a>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem"><h1>Add Filter</h1></div>
|
|
|
|
</div>
|
2017-11-29 02:34:02 +00:00
|
|
|
<div class="colstack_item the_form">
|
2017-08-27 09:33:45 +00:00
|
|
|
<form action="/panel/settings/word-filters/create/?session={{.CurrentUser.Session}}" method="post">
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>Find</a></div>
|
|
|
|
<div class="formitem"><input name="find" type="text" placeholder="fuck" /></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>Replacement</a></div>
|
|
|
|
<div class="formitem"><input name="replacement" type="text" placeholder="fudge" /></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">Add Filter</button></div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</main>
|
2017-11-23 05:37:08 +00:00
|
|
|
|
|
|
|
</div>
|
2017-08-27 09:33:45 +00:00
|
|
|
{{template "footer.html" . }}
|