github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_forum_edit.html (about) 1 <div class="colstack_item colstack_head"> 2 <div class="rowitem"><h1>{{.Name}}{{lang "panel.forum_head_suffix"}}</h1></div> 3 </div> 4 <div id="panel_forum"class="colstack_item the_form"> 5 <form action="/panel/forums/edit/submit/{{.ID}}?s={{.CurrentUser.Session}}"method="post"> 6 <div class="formrow"> 7 <div class="formitem formlabel"><a>{{lang "panel.forum_name"}}</a></div> 8 <div class="formitem"><input name="forum_name"type="text"value="{{.Name}}"placeholder="{{lang "panel.forum_name_placeholder"}}"></div> 9 </div> 10 <div class="formrow"> 11 <div class="formitem formlabel"><a>{{lang "panel.forum_desc"}}</a></div> 12 <div class="formitem"><input name="forum_desc"type="text"value="{{.Desc}}"placeholder="{{lang "panel.forum_desc_placeholder"}}"></div> 13 </div> 14 <div class="formrow"> 15 <div class="formitem formlabel"><a>{{lang "panel.forum_active"}}</a></div> 16 <div class="formitem"><select name="forum_active"> 17 <option{{if .Active}} selected{{end}} value=1>{{lang "option_yes"}}</option> 18 <option{{if not .Active}} selected{{end}} value=0>{{lang "option_no"}}</option> 19 </select></div> 20 </div> 21 <div class="formrow"> 22 <div class="formitem formlabel"><a>{{lang "panel.forum_preset"}}</a></div> 23 <div class="formitem"> 24 <select name="forum_preset"> 25 <option{{if eq .Preset "all"}} selected{{end}} value="all">{{lang "panel.preset_everyone"}}</option> 26 <option{{if eq .Preset "announce"}} selected{{end}} value="announce">{{lang "panel.preset_announcements"}}</option> 27 <option{{if eq .Preset "members"}} selected{{end}} value="members">{{lang "panel.preset_member_only"}}</option> 28 <option{{if eq .Preset "staff"}} selected{{end}} value="staff">{{lang "panel.preset_staff_only"}}</option> 29 <option{{if eq .Preset "admins"}} selected{{end}} value="admins">{{lang "panel.preset_admin_only"}}</option> 30 <option{{if eq .Preset "archive"}} selected{{end}} value="archive">{{lang "panel.preset_archive"}}</option> 31 <option{{if eq .Preset "custom"}} selected{{end}} value="custom">{{lang "panel.preset_custom"}}</option> 32 </select> 33 </div> 34 </div> 35 <div class="formrow"> 36 <div class="formitem"><button name="panel-button"class="formbutton form_middle_button">{{lang "panel.forum_update_button"}}</button></div> 37 </div> 38 </form> 39 </div> 40 <div class="colstack_item colstack_head"> 41 <div class="rowitem"> 42 <h1>{{lang "panel.forum_permissions_head"}}</h1> 43 </div> 44 </div> 45 <div id="forum_quick_perms"class="colstack_item rowlist formlist the_form"> 46 {{range .Groups}} 47 <div class="formrow"> 48 <div class="formitem editable_parent"> 49 <a>{{.Group.Name}}</a> 50 <input name="gid"value="{{.Group.ID}}"type="hidden"class="editable_block"data-field="gid"data-type="hidden"data-value="{{.Group.ID}}"> 51 <span class="edit_fields hide_on_edit rowsmall">{{lang "panel.forum_edit_button"}}</span> 52 <div class="panel_floater"> 53 <span data-field="perm_preset"data-type="list"data-value="{{.Preset}}"class="editable_block perm_preset perm_preset_{{.Preset}}"></span> 54 <a class="panel_right_button has_inner_button show_on_edit"href="/panel/forums/edit/perms/submit/{{$.ID}}"><button class='panel_tag submit_edit'type='submit'>{{lang "panel.forum_short_update_button"}}</button></a> 55 <a class="panel_right_button has_inner_button show_on_edit"href="/panel/forums/edit/perms/{{$.ID}}-{{.Group.ID}}"><button class='panel_tag'type='submit'>{{lang "panel.forum_full_edit_button"}}</button></a> 56 </div> 57 </div> 58 </div> 59 {{end}} 60 </div> 61 {{if .Actions}} 62 <div class="colstack_item colstack_head"> 63 <div class="rowitem"><h1>{{lang "panel.forum_actions_head"}}</h1></div> 64 </div> 65 <div id="panel_forum_actions"class="colstack_item rowlist"> 66 {{range .Actions}} 67 <div class="rowitem panel_compactrow editable_parent"> 68 <a class="panel_upshift">{{.ActionName}}{{if .RunDaysAfterTopicCreation}} - {{.RunDaysAfterTopicCreation}} days after topic creation{{end}}{{if .RunDaysAfterTopicLastReply}} - {{.RunDaysAfterTopicLastReply}} days after topic last reply{{end}}</a> 69 <span class="panel_floater"> 70 <a href="/panel/forums/action/delete/submit/{{.ID}}?s={{$.CurrentUser.Session}}&ret={{$.ID}}"class="panel_tag panel_right_button delete_button"></a> 71 </span> 72 </div> 73 {{end}} 74 </div> 75 {{end}} 76 <div class="colstack_item colstack_head"> 77 <div class="rowitem"> 78 <h1>{{lang "panel.forum_actions_create_head"}}</h1> 79 </div> 80 </div> 81 <div id="panel_forum_action_create"class="colstack_item the_form"> 82 <form action="/panel/forums/action/create/submit/{{.ID}}?s={{.CurrentUser.Session}}"method="post"> 83 <!--<div class="formrow"> 84 <div class="formitem formlabel"><a>{{lang "panel.forum_action_run_on_topic_creation"}}</a></div> 85 <div class="formitem"><select name="action_run_on_topic_creation"> 86 <option value=1>{{lang "option_yes"}}</option> 87 <option selected value=0>{{lang "option_no"}}</option> 88 </select></div> 89 </div>--> 90 <div class="formrow"> 91 <div class="formitem formlabel"><a>{{lang "panel.forum_action_run_days_after_topic_creation"}}</a></div> 92 <div class="formitem"> 93 <input name="action_run_days_after_topic_creation"value="0"type="number"> 94 </div> 95 </div> 96 <div class="formrow"> 97 <div class="formitem formlabel"><a>{{lang "panel.forum_action_run_days_after_topic_last_reply"}}</a></div> 98 <div class="formitem"> 99 <input name="action_run_days_after_topic_last_reply"value="0"type="number"> 100 </div> 101 </div> 102 <div class="formrow"> 103 <div class="formitem formlabel"><a>{{lang "panel.forum_action_action"}}</a></div> 104 <div class="formitem"> 105 <select name="action_action"> 106 <option value="delete"selected>{{lang "panel.forum_action_action_delete"}}</option> 107 <option value="lock">{{lang "panel.forum_action_action_lock"}}</option> 108 <option value="unlock">{{lang "panel.forum_action_action_unlock"}}</option> 109 <option value="move">{{lang "panel.forum_action_action_move"}}</option> 110 </select> 111 </div> 112 </div> 113 <div class="formrow"> 114 <div class="formitem formlabel"><a>{{lang "panel.forum_action_extra"}}</a></div> 115 <div class="formitem"> 116 <input name="action_extra"type="text"> 117 </div> 118 </div> 119 <div class="formrow"> 120 <div class="formitem"><button name="panel-button"class="formbutton form_middle_button">{{lang "panel.forum_action_create_button"}}</button></div> 121 </div> 122 </form> 123 </div>