34 lines
1.1 KiB
Twig
34 lines
1.1 KiB
Twig
|
{% extends "layouts" ~ DIR ~ "default.twig" %}
|
||
|
|
||
|
{% block title %}{{ "New Group" | translate }}{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
<h2>{{ "New Group" | translate }}</h2>
|
||
|
<form id="new_group" class="split" action="{{ url('add_group') }}" method="post" accept-charset="UTF-8" data-toggler="group_toggler">
|
||
|
<fieldset role="presentation">
|
||
|
<p>
|
||
|
<label for="name">{{ "Name" | translate }}</label>
|
||
|
{#- -#}
|
||
|
<input class="text" type="text" name="name" value="" id="name" maxlength="100" required>
|
||
|
</p>
|
||
|
<h3>{{ "Permissions" | translate }}</h3>
|
||
|
<p class="toggler" id="group_toggler">
|
||
|
</p>
|
||
|
<hr>
|
||
|
{% for permission in permissions %}
|
||
|
<p>
|
||
|
<label for="permission_{{ permission.id }}">{{ permission.name }}{# translation is done in Group #}</label>
|
||
|
{#- -#}
|
||
|
<input class="checkbox" type="checkbox" name="permissions[{{ permission.id }}]" id="permission_{{ permission.id }}">
|
||
|
</p>
|
||
|
{% endfor %}
|
||
|
<p class="buttons">
|
||
|
<button type="submit" class="yay">
|
||
|
{{ "Add Group" | translate }}
|
||
|
</button>
|
||
|
</p>
|
||
|
<input type="hidden" name="hash" value="{{ authenticate() }}" id="hash">
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
{% endblock %}
|