summaryrefslogtreecommitdiffstats
path: root/modules-available/remoteaccess/templates/edit-group.html
diff options
context:
space:
mode:
authorSimon Rettberg2020-05-18 18:40:59 +0200
committerSimon Rettberg2020-07-30 13:24:42 +0200
commit463aadce87ab207c7477b580295d6fce2b351b67 (patch)
treea5c30360eea687159cb4fdc7481e91c5f2d7e4d9 /modules-available/remoteaccess/templates/edit-group.html
parent[default.css] Make labels with disabled class gray (diff)
downloadslx-admin-463aadce87ab207c7477b580295d6fce2b351b67.tar.gz
slx-admin-463aadce87ab207c7477b580295d6fce2b351b67.tar.xz
slx-admin-463aadce87ab207c7477b580295d6fce2b351b67.zip
[remoteaccess] Add permissions, add "delete group" functionality
Diffstat (limited to 'modules-available/remoteaccess/templates/edit-group.html')
-rw-r--r--modules-available/remoteaccess/templates/edit-group.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/modules-available/remoteaccess/templates/edit-group.html b/modules-available/remoteaccess/templates/edit-group.html
index 2c207ca5..0f09f071 100644
--- a/modules-available/remoteaccess/templates/edit-group.html
+++ b/modules-available/remoteaccess/templates/edit-group.html
@@ -6,7 +6,12 @@
<input type="hidden" name="groupid" value="{{groupid}}">
<div class="buttonbar pull-right">
- <button type="submit" class="btn btn-primary" name="action" value="set-locations">
+ <button type="submit" class="btn btn-danger" name="action" value="delete-group" data-confirm="{{lang_reallyDelete}}"
+ {{perms.group.locations.disabled}} {{perms.group.edit.disabled}}>
+ <span class="glyphicon glyphicon-remove"></span>
+ {{lang_delete}}
+ </button>
+ <button type="submit" class="btn btn-primary" name="action" value="set-locations" {{perms.group.locations.disabled}}>
<span class="glyphicon glyphicon-floppy-disk"></span>
{{lang_save}}
</button>
@@ -21,20 +26,20 @@
<td class="slx-smallcol">
<div class="checkbox checkbox-inline">
<input type="checkbox" name="location[]" value="{{locationid}}" id="loc-check-{{locationid}}"
- {{checked}}>
+ {{checked}} {{disabled}}>
<label></label>
</div>
</td>
<td class="text-nowrap">
<div style="display:inline-block;width:{{depth}}em"></div>
- <label for="loc-check-{{locationid}}">{{locationname}}</label>
+ <label for="loc-check-{{locationid}}" class="{{disabled}}">{{locationname}}</label>
</td>
</tr>
{{/locations}}
</table>
</div>
<div class="buttonbar pull-right">
- <button type="submit" class="btn btn-primary" name="action" value="set-locations">
+ <button type="submit" class="btn btn-primary" name="action" value="set-locations" {{perms.group.locations.disabled}}>
<span class="glyphicon glyphicon-floppy-disk"></span>
{{lang_save}}
</button>