{% import "macros/groups.twig" as grpmac %}
<form method="post">{{ form_token() }}
<div class="table table-pad-1">
<div class="table-row">
<div class="table-cell">
{{ __("Group Name") }}:
</div>
<div class="table-cell">
<input
name="name"
required="required"
title="{{ __("Group Name")|e('html_attr') }}"
type="text"
value="{{ group.name|e('html_attr') }}"
/>
</div>
</div>
<div class="table-row">
<div class="table-cell">{{ __("Admin Access") }}:</div>
<div class="table-cell">
<input
{% if group.superuser %}checked="checked"{% endif %}
id="superuser"
name="superuser"
type="checkbox"
/><label for="superuser">{{ __(
"Grant admin access to all members of this group " ~
"(and any groups that inherit permissions from it)?"
) }}</label>
</div>
</div>
<div class="table-row">
<div class="table-cell">
{{ __("Parent") }}:
</div>
<div class="table-cell">
<select title="{{ __("Parent")|e('html_attr') }}" name="parent" id="groups_parents">
<option value=""> -- {{ __("None") }} -- </option>
{% for g in allowed_parents %}
{{ grpmac.selectBox(g, group.inherits) }}
{% endfor %}
</select>
</div>
</div>
<div class="table-row">
<div class="table-cell table-label"></div>
<div class="table-cell">
<button type="submit" class="pure-button pure-button-primary">
{{ __("Save Group") }}
</button>
</div>
</div>
</div>
</form>
|