github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_group_edit_perms.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  	<form action="/panel/groups/edit/perms/submit/{{.ID}}?s={{.CurrentUser.Session}}" method="post">
    10  	{{if .CurrentUser.Perms.EditGroupLocalPerms}}
    11  	<div class="colstack_item rowlist formlist the_form panel_group_perms">
    12  		{{range .LocalPerms}}
    13  		<div class="formrow">
    14  			<div class="formitem">
    15  				<a>{{.LangStr}}</a>
    16  				<div class="to_right">
    17  					<select name="perm-{{.Name}}">
    18  						<option{{if .Toggle}} selected{{end}} value=1>{{lang "option_yes"}}</option>
    19  						<option{{if not .Toggle}} selected{{end}} value=0>{{lang "option_no"}}</option>
    20  					</select>
    21  				</div>
    22  			</div>
    23  		</div>
    24  		{{end}}
    25  		<div class="formrow">
    26  			<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">{{lang "panel_group_update_button"}}</button></div>
    27  		</div>
    28  	</div>
    29  	{{end}}
    30  	{{if .CurrentUser.Perms.EditGroupGlobalPerms}}
    31  	<div class="colstack_item colstack_head">
    32  		<div class="rowitem"><h1>{{lang "panel_group_extended_permissions"}}</h1></div>
    33  	</div>
    34  	<div class="colstack_item rowlist formlist the_form panel_group_perms">
    35  		{{range .GlobalPerms}}
    36  		<div class="formrow">
    37  			<div class="formitem">
    38  				<a>{{.LangStr}}</a>
    39  				<div class="to_right">
    40  					<select name="perm-{{.Name}}">
    41  						<option{{if .Toggle}} selected{{end}} value=1>{{lang "option_yes"}}</option>
    42  						<option{{if not .Toggle}} selected{{end}} value=0>{{lang "option_no"}}</option>
    43  					</select>
    44  				</div>
    45  			</div>
    46  		</div>
    47  		{{end}}
    48  		<div class="formrow">
    49  			<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">{{lang "panel_group_update_button"}}</button></div>
    50  		</div>
    51  	</div>
    52  	{{end}}
    53  	{{if .CurrentUser.Perms.EditGroupGlobalPerms}}
    54  	<div class="colstack_item colstack_head">
    55  		<div class="rowitem"><h1>{{lang "panel_group_mod_permissions"}}</h1></div>
    56  	</div>
    57  	<div class="colstack_item rowlist formlist the_form panel_group_perms">
    58  		{{range .ModPerms}}
    59  		<div class="formrow">
    60  			<div class="formitem">
    61  				<a>{{.LangStr}}</a>
    62  				<div class="to_right">
    63  					<select name="perm-{{.Name}}">
    64  						<option{{if .Toggle}} selected{{end}} value=1>{{lang "option_yes"}}</option>
    65  						<option{{if not .Toggle}} selected{{end}} value=0>{{lang "option_no"}}</option>
    66  					</select>
    67  				</div>
    68  			</div>
    69  		</div>
    70  		{{end}}
    71  		<div class="formrow">
    72  			<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">{{lang "panel_group_update_button"}}</button></div>
    73  		</div>
    74  	</div>
    75  	{{end}}
    76  	</form>
    77  </main>
    78  </div>
    79  {{template "footer.html" . }}