2016-12-04 10:44:28 +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">
|
2018-06-06 00:21:22 +00:00
|
|
|
{{template "panel_menu.html" . }}
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2017-08-20 09:39:02 +00:00
|
|
|
<main class="colstack_right">
|
2019-03-21 22:59:41 +00:00
|
|
|
{{template "panel_before_head.html" . }}
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
2019-04-27 06:32:26 +00:00
|
|
|
<div class="rowitem">
|
|
|
|
<h1>{{lang "panel.forums_head"}}</h1>
|
|
|
|
<h2 class="hguide">{{lang "panel_hints_reorder"}}</h2>
|
|
|
|
</div>
|
2016-12-06 10:26:48 +00:00
|
|
|
</div>
|
2017-07-29 10:36:39 +00:00
|
|
|
<div id="panel_forums" class="colstack_item rowlist">
|
2017-03-18 07:23:02 +00:00
|
|
|
{{range .ItemList}}
|
2019-04-27 06:32:26 +00:00
|
|
|
<div data-fid="{{.ID}}" class="rowitem editable_parent panel_forum_item{{if not .Desc}} forum_no_desc{{end}}">
|
|
|
|
<span class="grip"></span>
|
2017-12-10 03:43:30 +00:00
|
|
|
<span id="panel_forums_left_box">
|
|
|
|
{{/** TODO: Make sure the forum_active_name class is set and unset when the activity status of this forum is changed **/}}
|
|
|
|
<a data-field="forum_name" data-type="text" class="editable_block forum_name{{if not .Active}} forum_active_name{{end}}">{{.Name}}</a>
|
|
|
|
<br /><span data-field="forum_desc" data-type="text" class="editable_block forum_desc rowsmall">{{.Desc}}</span>
|
|
|
|
</span>
|
2017-05-29 14:52:37 +00:00
|
|
|
<span class="panel_floater">
|
2019-04-27 06:32:26 +00:00
|
|
|
<span data-field="forum_active" data-type="list" class="panel_tag editable_block forum_active forum_active_{{if .Active}}Show" data-value="1{{else}}Hide" data-value="0{{end}}" title="{{lang "panel.forums_hidden"}}"></span>
|
2017-12-10 03:43:30 +00:00
|
|
|
<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>
|
2017-05-29 14:52:37 +00:00
|
|
|
<span class="panel_buttons">
|
2019-04-27 06:32:26 +00:00
|
|
|
<a class="panel_tag edit_fields hide_on_edit panel_right_button edit_button" title="{{lang "panel.forums_edit_button_tooltip"}}" aria-label="{{lang "panel.forums_edit_button_aria"}}"></a>
|
|
|
|
<a class="panel_right_button has_inner_button show_on_edit" href="/panel/forums/edit/submit/{{.ID}}"><button class='panel_tag submit_edit' type='submit'>{{lang "panel.forums_update_button"}}</button></a>
|
|
|
|
{{if gt .ID 1}}<a href="/panel/forums/delete/{{.ID}}?session={{$.CurrentUser.Session}}" class="panel_tag panel_right_button hide_on_edit delete_button" title="{{lang "panel.forums_delete_button_tooltip"}}" aria-label="{{lang "panel.forums_delete_button_aria"}}"></a>{{end}}
|
|
|
|
<a href="/panel/forums/edit/{{.ID}}" class="panel_tag panel_right_button has_inner_button show_on_edit"><button>{{lang "panel.forums_full_edit_button"}}</button></a>
|
2017-06-05 11:57:27 +00:00
|
|
|
</span>
|
2017-02-04 06:19:55 +00:00
|
|
|
</div>
|
2017-03-18 07:23:02 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2019-04-27 06:32:26 +00:00
|
|
|
<div class="colstack_item rowlist panel_submitrow">
|
|
|
|
<div class="rowitem"><button id="panel_forums_order_button" class="formbutton">{{lang "panel.forums_update_order_button"}}</button></div>
|
|
|
|
</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
2019-04-27 06:32:26 +00:00
|
|
|
<div class="rowitem"><h1>{{lang "panel.forums_create_head"}}</h1></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
2018-09-02 05:43:17 +00:00
|
|
|
<div class="colstack_item the_form">
|
2017-03-18 07:23:02 +00:00
|
|
|
<form action="/panel/forums/create/?session={{.CurrentUser.Session}}" method="post">
|
|
|
|
<div class="formrow">
|
2019-04-27 06:32:26 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel.forums_create_name_label"}}</a></div>
|
|
|
|
<div class="formitem"><input name="forum-name" type="text" placeholder="{{lang "panel.forums_create_name"}}" /></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
2017-06-05 11:57:27 +00:00
|
|
|
<div class="formrow">
|
2019-04-27 06:32:26 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel.forums_create_description_label"}}</a></div>
|
|
|
|
<div class="formitem"><input name="forum-desc" type="text" placeholder="{{lang "panel.forums_create_description"}}" /></div>
|
2017-06-05 11:57:27 +00:00
|
|
|
</div>
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formrow">
|
2019-04-27 06:32:26 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel.forums_active_label"}}</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formitem"><select name="forum-active">
|
2018-03-11 09:33:49 +00:00
|
|
|
<option selected value="1">{{lang "option_yes"}}</option>
|
|
|
|
<option value="0">{{lang "option_no"}}</option>
|
2017-03-18 07:23:02 +00:00
|
|
|
</select></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2019-04-27 06:32:26 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel.forums_preset_label"}}</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formitem"><select name="forum-preset">
|
2018-03-11 09:33:49 +00:00
|
|
|
<option selected value="all">{{lang "panel_preset_everyone"}}</option>
|
|
|
|
<option value="announce">{{lang "panel_preset_announcements"}}</option>
|
|
|
|
<option value="members">{{lang "panel_preset_member_only"}}</option>
|
|
|
|
<option value="staff">{{lang "panel_preset_staff_only"}}</option>
|
|
|
|
<option value="admins">{{lang "panel_preset_admin_only"}}</option>
|
|
|
|
<option value="archive">{{lang "panel_preset_archive"}}</option>
|
|
|
|
<option value="custom">{{lang "panel_preset_custom"}}</option>
|
2017-03-18 07:23:02 +00:00
|
|
|
</select></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2019-04-27 06:32:26 +00:00
|
|
|
<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel.forums_create_button"}}</button></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2017-08-20 09:39:02 +00:00
|
|
|
</main>
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2017-11-23 05:37:08 +00:00
|
|
|
</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
{{template "footer.html" . }}
|