2017-06-05 11:57:27 +00:00
|
|
|
{{template "header.html" . }}
|
2017-11-23 05:37:08 +00:00
|
|
|
|
2017-12-27 23:38:37 +00:00
|
|
|
<div class="colstack panel_stack">
|
2017-06-05 11:57:27 +00:00
|
|
|
{{template "panel-menu.html" . }}
|
2018-03-11 09:33:49 +00:00
|
|
|
<script type="text/javascript">
|
2018-02-22 02:27:17 +00:00
|
|
|
var formVars = {'perm_preset': ['can_moderate','can_post','read_only','no_access','default','custom']};
|
2017-06-05 11:57:27 +00:00
|
|
|
</script>
|
|
|
|
|
2017-08-20 09:39:02 +00:00
|
|
|
<main class="colstack_right">
|
2017-06-05 11:57:27 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="rowitem"><h1>{{.Name}}{{lang "panel_forum_head_suffix"}}</h1></div>
|
2017-06-05 11:57:27 +00:00
|
|
|
</div>
|
|
|
|
<div id="panel_forum" class="colstack_item">
|
|
|
|
<form action="/panel/forums/edit/submit/{{.ID}}?session={{.CurrentUser.Session}}" method="post">
|
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_forum_name"}}</a></div>
|
|
|
|
<div class="formitem"><input name="forum_name" type="text" value="{{.Name}}" placeholder="{{lang "panel_forum_name_placeholder"}}" /></div>
|
2017-06-05 11:57:27 +00:00
|
|
|
</div>
|
2017-08-20 09:39:02 +00:00
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_forum_description"}}</a></div>
|
|
|
|
<div class="formitem"><input name="forum_desc" type="text" value="{{.Desc}}" placeholder="{{lang "panel_forum_description_placeholder"}}" /></div>
|
2017-06-05 11:57:27 +00:00
|
|
|
</div>
|
2017-08-20 09:39:02 +00:00
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_forum_active"}}</a></div>
|
2017-08-20 09:39:02 +00:00
|
|
|
<div class="formitem"><select name="forum_active">
|
2018-03-11 09:33:49 +00:00
|
|
|
<option{{if .Active}} selected{{end}} value="1">{{lang "option_yes"}}</option>
|
|
|
|
<option{{if not .Active}} selected{{end}} value="0">{{lang "option_no"}}</option>
|
2017-08-20 09:39:02 +00:00
|
|
|
</select></div>
|
|
|
|
</div>
|
2017-06-05 11:57:27 +00:00
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_forum_preset"}}</a></div>
|
2017-06-05 11:57:27 +00:00
|
|
|
<div class="formitem">
|
|
|
|
<select name="forum_preset">
|
2018-03-11 09:33:49 +00:00
|
|
|
<option{{if eq .Preset "all"}} selected{{end}} value="all">{{lang "panel_preset_everyone"}}</option>
|
|
|
|
<option{{if eq .Preset "announce"}} selected{{end}} value="announce">{{lang "panel_preset_announcements"}}</option>
|
|
|
|
<option{{if eq .Preset "members"}} selected{{end}} value="members">{{lang "panel_preset_member_only"}}</option>
|
|
|
|
<option{{if eq .Preset "staff"}} selected{{end}} value="staff">{{lang "panel_preset_staff_only"}}</option>
|
|
|
|
<option{{if eq .Preset "admins"}} selected{{end}} value="admins">{{lang "panel_preset_admin_only"}}</option>
|
|
|
|
<option{{if eq .Preset "archive"}} selected{{end}} value="archive">{{lang "panel_preset_archive"}}</option>
|
|
|
|
<option{{if eq .Preset "custom"}} selected{{end}} value="custom">{{lang "panel_preset_custom"}}</option>
|
2017-08-20 09:39:02 +00:00
|
|
|
</select>
|
2017-06-05 11:57:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">{{lang "panel_forum_update_button"}}</button></div>
|
2017-06-05 11:57:27 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="colstack_item colstack_head">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="rowitem"><a>{{lang "panel_forum_permissions_head"}}</a></div>
|
2017-06-05 11:57:27 +00:00
|
|
|
</div>
|
2017-12-10 03:43:30 +00:00
|
|
|
<div id="forum_quick_perms" class="colstack_item rowlist formlist">
|
2017-06-05 11:57:27 +00:00
|
|
|
{{range .Groups}}
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem editable_parent">
|
|
|
|
<a>{{.Group.Name}}</a>
|
|
|
|
<input name="gid" value="{{.Group.ID}}" type="hidden" class="editable_block" data-field="gid" data-type="hidden" data-value="{{.Group.ID}}" />
|
2018-03-11 09:33:49 +00:00
|
|
|
<span class="edit_fields hide_on_edit rowsmall">{{lang "panel_forum_edit_button"}}</span>
|
2017-06-05 11:57:27 +00:00
|
|
|
<div class="panel_floater">
|
|
|
|
<span data-field="perm_preset" data-type="list" data-value="{{.Preset}}" class="editable_block perm_preset perm_preset_{{.Preset}}"></span>
|
2018-03-11 09:33:49 +00:00
|
|
|
<a class="panel_right_button" href="/panel/forums/edit/perms/submit/{{$.ID}}"><button class='panel_tag submit_edit show_on_edit' type='submit'>{{lang "panel_forum_short_update_button"}}</button></a>
|
|
|
|
<a class="panel_right_button" href="/panel/forums/edit/perms/{{$.ID}}-{{.Group.ID}}"><button class='panel_tag show_on_edit' type='submit'>{{lang "panel_forum_full_edit_button"}}</button></a>
|
2017-06-05 11:57:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2017-08-20 09:39:02 +00:00
|
|
|
</main>
|
2017-11-23 05:37:08 +00:00
|
|
|
</div>
|
2017-06-05 11:57:27 +00:00
|
|
|
{{template "footer.html" . }}
|