diff options
author | Simon Rettberg | 2021-12-17 11:30:37 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-03-09 15:06:54 +0100 |
commit | ecb80fc2afed0407e9903023242a34e75fb7bde4 (patch) | |
tree | f57810f8572c91ffdb2dee51a4c10d83087a596b /modules-available/passthrough/templates/location-assign.html | |
parent | [eventlog] Add english translations (diff) | |
download | slx-admin-ecb80fc2afed0407e9903023242a34e75fb7bde4.tar.gz slx-admin-ecb80fc2afed0407e9903023242a34e75fb7bde4.tar.xz slx-admin-ecb80fc2afed0407e9903023242a34e75fb7bde4.zip |
[locations/passthrough] Make location assignment recusive
Properly show inherited passthough groups in location list,
disable inherited passthrough groups in selection dialog.
Diffstat (limited to 'modules-available/passthrough/templates/location-assign.html')
-rw-r--r-- | modules-available/passthrough/templates/location-assign.html | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/modules-available/passthrough/templates/location-assign.html b/modules-available/passthrough/templates/location-assign.html index c2a8f805..037ab79d 100644 --- a/modules-available/passthrough/templates/location-assign.html +++ b/modules-available/passthrough/templates/location-assign.html @@ -1,3 +1,6 @@ +<h1>{{lang_assignPassthrough}}</h1> +<h2>{{locationname}}</h2> + <form method="post" action="?do=passthrough"> <input type="hidden" name="token" value="{{token}}"> <input type="hidden" name="locationid" value="{{locationid}}"> @@ -13,14 +16,20 @@ </div> <div class="col-sm-3"> <div class="checkbox"> - <input id="check-{{groupid}}" type="checkbox" name="enabled[]" value="{{groupid}}" {{#enabled}}checked="checked"{{/enabled}}> + {{#disabled}} + <input id="check-{{groupid}}" type="checkbox" disabled checked> + {{/disabled}} + {{^disabled}} + <input id="check-{{groupid}}" type="checkbox" name="enabled[]" value="{{groupid}}" {{checked}}> + {{/disabled}} <label for="check-{{groupid}}"></label> + <span class="text-muted">{{parent_location}}</span> </div> </div> </div> {{/list}} <div class="buttonbar text-right"> - <button type="submit" name="action" value="save-location"> + <button class="btn btn-success" type="submit" name="action" value="save-location"> <span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}} </button> |