github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_groups.html (about) 1 <div class="colstack_item colstack_head"> 2 <div class="rowitem"><h1>{{lang "panel_groups_head"}}</h1></div> 3 </div> 4 <div id="panel_groups" class="colstack_item rowlist"> 5 {{range .ItemList}} 6 <div class="rowitem panel_compactrow editable_parent"> 7 <a{{if .CanEdit}} href="/panel/groups/edit/{{.ID}}"{{end}} class="panel_upshift">{{.Name}}</a> 8 <span class="panel_floater"> 9 {{if .RankClass}}<a class="panel_tag panel_rank_tag panel_rank_tag_{{.RankClass}}" title="{{.Rank}}" aria-label="{{lang "panel_groups_rank_prefix"}}{{.Rank}}"></a> 10 {{else}}<span class="panel_tag">{{.Rank}}</span>{{end}} 11 12 {{if .CanEdit}}<a href="/panel/groups/edit/{{.ID}}" class="panel_tag panel_right_button edit_button" aria-label="{{lang "panel_groups_edit_group_button_aria"}}"></a>{{end}} 13 </span> 14 </div> 15 {{end}} 16 </div> 17 {{template "paginator.html" . }} 18 19 {{if .CurrentUser.Perms.EditGroup}} 20 <div class="colstack_item colstack_head"> 21 <div class="rowitem"><h1>{{lang "panel_groups_create_head"}}</h1></div> 22 </div> 23 <div class="colstack_item the_form"> 24 <form action="/panel/groups/create/?s={{.CurrentUser.Session}}" method="post"> 25 <div class="formrow"> 26 <div class="formitem formlabel"><a>{{lang "panel_groups_create_name"}}</a></div> 27 <div class="formitem"><input name="name" type="text" placeholder="{{lang "panel_groups_create_name_placeholder"}}"></div> 28 </div> 29 <div class="formrow"> 30 <div class="formitem formlabel"><a>{{lang "panel_groups_create_type"}}</a></div> 31 <div class="formitem"> 32 <select name="type"{{if not .CurrentUser.Perms.EditGroupGlobalPerms}} disabled{{end}}> 33 <option selected>Member</option> 34 <option{{if not .CurrentUser.Perms.EditGroupSuperMod}} disabled{{end}}>Mod</option> 35 <option{{if not .CurrentUser.Perms.EditGroupAdmin}} disabled{{end}}>Admin</option> 36 <option>Banned</option> 37 </select> 38 </div> 39 </div> 40 <div class="formrow"> 41 <div class="formitem formlabel"><a>{{lang "panel_groups_create_tag"}}</a></div> 42 <div class="formitem"><input name="tag" type="text"></div> 43 </div> 44 <div class="formrow form_button_row"> 45 <div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_groups_create_button"}}</button></div> 46 </div> 47 </form> 48 </div> 49 {{end}}