github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_group_edit.html (about) 1 {{template "header.html" . }} 2 <div class="colstack panel_stack"> 3 {{template "panel_group_menu.html" . }} 4 <main class="colstack_right"> 5 {{template "panel_before_head.html" . }} 6 <div class="colstack_item colstack_head"> 7 <div class="rowitem"><h1>{{.Name}}{{lang "panel_group_head_suffix"}} - #{{.ID}}</h1></div> 8 </div> 9 <div id="panel_group" class="colstack_item the_form"> 10 <form action="/panel/groups/edit/submit/{{.ID}}?s={{.CurrentUser.Session}}" method="post"> 11 <div class="formrow"> 12 <div class="formitem formlabel"><a>{{lang "panel_group_name"}}</a></div> 13 <div class="formitem"><input name="name" type="text" value="{{.Name}}" placeholder="{{lang "panel_group_name_placeholder"}}"></div> 14 </div> 15 {{if .CurrentUser.Perms.EditGroup}} 16 <div class="formrow"> 17 <div class="formitem formlabel"><a>{{lang "panel_group_type"}}</a></div> 18 <div class="formitem"> 19 <select name="type"{{if .DisableRank}} disabled{{end}}> 20 <option value="Guest"{{if eq .Rank "Guest"}} selected{{end}} disabled>{{lang "panel_groups_rank_guest"}}</option> 21 <option value="Member"{{if eq .Rank "Member"}} selected{{end}}>{{lang "panel_groups_rank_member"}}</option> 22 <option value="Mod"{{if eq .Rank "Mod"}} selected{{end}}{{if not .CurrentUser.Perms.EditGroupSuperMod}} disabled{{end}}>{{lang "panel_groups_rank_mod"}}</option> 23 <option value="Admin"{{if eq .Rank "Admin"}} selected{{end}}{{if not .CurrentUser.Perms.EditGroupAdmin}} disabled{{end}}>{{lang "panel_groups_rank_admin"}}</option> 24 <option value="Banned"{{if eq .Rank "Banned"}} selected{{end}}>{{lang "panel_groups_rank_banned"}}</option> 25 </select> 26 </div> 27 </div>{{end}} 28 <div class="formrow"> 29 <div class="formitem formlabel"><a>{{lang "panel_group_tag"}}</a></div> 30 <div class="formitem"><input name="tag" type="text" value="{{.Tag}}" placeholder="{{lang "panel_group_tag_placeholder"}}"></div> 31 </div> 32 <div class="formrow form_button_row"> 33 <div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_group_update_button"}}</button></div> 34 </div> 35 </form> 36 </div> 37 </main> 38 </div> 39 {{template "footer.html" . }}