921ec3ab72
Now, only staff users has this permission by default. (Fixed #2004.) Some more work on users/groups template: - Added description to permission string to show that only 'present' and 'comment' fields are affected by this permission. - Allowed to create groups without permissions. - Fixed showing group names in users lists view for staff and normal users.
35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
<div class="header">
|
|
<div class="title">
|
|
<div class="submenu">
|
|
<a ui-sref="users.group.list" class="btn btn-sm btn-default">
|
|
<i class="fa fa-angle-double-left fa-lg"></i>
|
|
<translate>Back to overview</translate>
|
|
</a>
|
|
</div>
|
|
<h1 ng-if="group.id" translate>Edit group</h1>
|
|
<h1 ng-if="!group.id" translate>New group</h1>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="details">
|
|
<form name="groupForm">
|
|
<div class="form-group">
|
|
<label for="inputName" translate>Name</label>
|
|
<input type="text" ng-model="group.name" class="form-control" name="inputName" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="selectPermissions" translate>Permissions</label>
|
|
<select multiple size="15" ng-model="group.permissions" class="form-control" id="selectPermissions">
|
|
<option value="{{ permission.value }}" ng-repeat="permission in permissions">{{ permission.display_name | translate }}</option>
|
|
</select>
|
|
</div>
|
|
|
|
<button type="submit" ng-click="save(group)" class="btn btn-primary" translate>
|
|
Save
|
|
</button>
|
|
<button ui-sref="users.group.list" class="btn btn-default" translate>
|
|
Cancel
|
|
</button>
|
|
</form>
|
|
</div>
|