2016-12-04 10:44:28 +00:00
|
|
|
{{template "header.html" . }}
|
2016-12-24 13:14:40 +00:00
|
|
|
{{template "panel-menu.html" . }}
|
2017-02-04 15:49:24 +00:00
|
|
|
<script>var form_vars = {
|
2017-05-29 14:52:37 +00:00
|
|
|
'forum_active': ['Hide','Show'],
|
|
|
|
'forum_preset': ['all','announce','members','staff','admins','archive','custom']};
|
2017-02-04 15:49:24 +00:00
|
|
|
</script>
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="colstack_right">
|
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem rowhead"><a>Forums</a></div>
|
2016-12-06 10:26:48 +00:00
|
|
|
</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
<div id="panel_forums" class="colstack_item">
|
2017-03-18 07:23:02 +00:00
|
|
|
{{range .ItemList}}
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="rowitem editable_parent" style="{{if eq .ID 1}}border-bottom-style:solid;{{end}}">
|
|
|
|
<a data-field="forum_name" data-type="text" class="editable_block panel_upshift" style="{{if not .Active}}color:#707070;{{end}}">{{.Name}}</a>
|
|
|
|
<span class="panel_floater">
|
|
|
|
<span data-field="forum_active" data-type="list" class="panel_tag editable_block forum_active {{if .Active}}forum_active_Show" data-value="1{{else}}forum_active_Hide" data-value="0{{end}}" title="Hidden"></span>
|
|
|
|
|
|
|
|
<span data-field="forum_preset" data-type="list" data-value="{{.Preset}}" class="panel_tag editable_block forum_preset forum_preset_{{.Preset}}" title="{{.PresetLang}}"></span>
|
|
|
|
<span class="panel_buttons">
|
|
|
|
{{if gt .ID 0}}<a class="panel_tag edit_fields hide_on_edit panel_right_button">Edit</a>
|
|
|
|
<a class="panel_right_button" href="/panel/forums/edit/submit/{{.ID}}"><button class='panel_tag submit_edit show_on_edit' type='submit'>Update</button></a>{{end}}
|
|
|
|
{{if gt .ID 1}}<a href="/panel/forums/delete/{{.ID}}?session={{$.CurrentUser.Session}}" class="panel_tag panel_right_button">Delete</a>{{end}}
|
|
|
|
</span>
|
2017-03-18 07:23:02 +00:00
|
|
|
</span>
|
2017-02-04 06:19:55 +00:00
|
|
|
</div>
|
2017-03-18 07:23:02 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem rowhead"><a>Add Forum</a></div>
|
|
|
|
</div>
|
|
|
|
<div class="colstack_item">
|
|
|
|
<form action="/panel/forums/create/?session={{.CurrentUser.Session}}" method="post">
|
|
|
|
<div class="formrow">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>Forum Name</a></div>
|
|
|
|
<div class="formitem"><input name="forum-name" type="text" placeholder="Super Secret Forum" /></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>Hidden?</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formitem"><select name="forum-active">
|
|
|
|
<option value="1">Yes</option>
|
|
|
|
<option value="0">No</option>
|
|
|
|
</select></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>Preset</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formitem"><select name="forum-preset">
|
|
|
|
<option selected value="all">Everyone</option>
|
|
|
|
<option value="announce">Announcements</option>
|
|
|
|
<option value="members">Member Only</option>
|
|
|
|
<option value="staff">Staff Only</option>
|
|
|
|
<option value="admins">Admin Only</option>
|
|
|
|
<option value="archive">Archive</option>
|
|
|
|
<option value="custom">Custom</option>
|
|
|
|
</select></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><button name="panel-button" class="formbutton">Add Forum</button></div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-12-04 10:44:28 +00:00
|
|
|
</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
|
|
|
|
{{template "footer.html" . }}
|