github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_forums.html (about) 1 <div class="colstack_item colstack_head"> 2 <div class="rowitem"> 3 <h1>{{lang "panel.forums_head"}}</h1> 4 <h2 class="hguide">{{lang "panel_hints_reorder"}}</h2> 5 </div> 6 </div> 7 <div id="panel_forums" class="colstack_item rowlist"> 8 {{range .ItemList}} 9 <div data-fid="{{.ID}}"class="rowitem editable_parent panel_forum_item{{if not .Desc}} forum_no_desc{{end}}"> 10 <span class="grip"></span> 11 <span id="panel_forums_left_box"> 12 {{/** TODO: Make sure the forum_active_name class is set and unset when the activity status of this forum is changed **/}} 13 <a data-field="forum_name" data-type="text" class="editable_block forum_name{{if not .Active}} forum_active_name{{end}}">{{.Name}}</a> 14 <br><span data-field="forum_desc" data-type="text" class="editable_block forum_desc rowsmall">{{.Desc}}</span> 15 </span> 16 <span class="panel_floater"> 17 <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> 18 <span data-field="forum_preset" data-type="list" data-value="{{.Preset}}" class="panel_tag editable_block forum_preset forum_preset_{{.Preset}}" title="{{.PresetLang}}"></span> 19 </span> 20 <span class="panel_buttons"> 21 <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> 22 <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> 23 {{if gt .ID 1}}<a href="/panel/forums/delete/{{.ID}}?s={{$.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}} 24 <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> 25 </span> 26 </div> 27 {{end}} 28 </div> 29 <div class="colstack_item rowlist panel_submitrow"> 30 <div class="rowitem"><button id="panel_forums_order_button" class="formbutton">{{lang "panel.forums_update_order_button"}}</button></div> 31 </div> 32 33 <div class="colstack_item colstack_head"> 34 <div class="rowitem"><h1>{{lang "panel.forums_create_head"}}</h1></div> 35 </div> 36 <div class="colstack_item the_form"> 37 <form action="/panel/forums/create/?s={{.CurrentUser.Session}}" method="post"> 38 <div class="formrow"> 39 <div class="formitem formlabel"><a>{{lang "panel.forums_create_name_label"}}</a></div> 40 <div class="formitem"><input name="name" type="text" placeholder="{{lang "panel.forums_create_name"}}"></div> 41 </div> 42 <div class="formrow"> 43 <div class="formitem formlabel"><a>{{lang "panel.forums_create_desc_label"}}</a></div> 44 <div class="formitem"><input name="desc" type="text" placeholder="{{lang "panel.forums_create_desc"}}"></div> 45 </div> 46 <div class="formrow"> 47 <div class="formitem formlabel"><a>{{lang "panel.forums_active_label"}}</a></div> 48 <div class="formitem"><select name="active"> 49 <option selected value=1>{{lang "option_yes"}}</option> 50 <option value=0>{{lang "option_no"}}</option> 51 </select></div> 52 </div> 53 <div class="formrow"> 54 <div class="formitem formlabel"><a>{{lang "panel.forums_preset_label"}}</a></div> 55 <div class="formitem"><select name="preset"> 56 <option selected value="all">{{lang "panel.preset_everyone"}}</option> 57 <option value="announce">{{lang "panel.preset_announcements"}}</option> 58 <option value="members">{{lang "panel.preset_member_only"}}</option> 59 <option value="staff">{{lang "panel.preset_staff_only"}}</option> 60 <option value="admins">{{lang "panel.preset_admin_only"}}</option> 61 <option value="archive">{{lang "panel.preset_archive"}}</option> 62 <option value="custom">{{lang "panel.preset_custom"}}</option> 63 </select></div> 64 </div> 65 <div class="formrow"> 66 <div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel.forums_create_button"}}</button></div> 67 </div> 68 </form> 69 </div>