summaryrefslogtreecommitdiffstats
path: root/modules-available/passthrough/templates/location-assign.html
diff options
context:
space:
mode:
authorSimon Rettberg2021-12-07 16:14:19 +0100
committerSimon Rettberg2022-03-09 15:06:54 +0100
commit9399fab2c22582c2d9dc7127bc7bf85b0ed86210 (patch)
tree4bcd4f6ee4875ad9b52e6a467badbc50d038c0ea /modules-available/passthrough/templates/location-assign.html
parent[statistics/passthrough] Consider group<->location mapping for KCL (diff)
downloadslx-admin-9399fab2c22582c2d9dc7127bc7bf85b0ed86210.tar.gz
slx-admin-9399fab2c22582c2d9dc7127bc7bf85b0ed86210.tar.xz
slx-admin-9399fab2c22582c2d9dc7127bc7bf85b0ed86210.zip
[passthrough] Add location assignment page
Diffstat (limited to 'modules-available/passthrough/templates/location-assign.html')
-rw-r--r--modules-available/passthrough/templates/location-assign.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules-available/passthrough/templates/location-assign.html b/modules-available/passthrough/templates/location-assign.html
new file mode 100644
index 00000000..c2a8f805
--- /dev/null
+++ b/modules-available/passthrough/templates/location-assign.html
@@ -0,0 +1,28 @@
+<form method="post" action="?do=passthrough">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="locationid" value="{{locationid}}">
+ <div class="row">
+ <div class="col-sm-9">{{lang_group}}</div>
+ <div class="col-sm-3">{{lang_enabled}}</div>
+ </div>
+ {{#list}}
+ <div class="row">
+ <div class="col-sm-9">
+ {{groupid}}
+ <span class="small text-muted">{{title}}</span>
+ </div>
+ <div class="col-sm-3">
+ <div class="checkbox">
+ <input id="check-{{groupid}}" type="checkbox" name="enabled[]" value="{{groupid}}" {{#enabled}}checked="checked"{{/enabled}}>
+ <label for="check-{{groupid}}"></label>
+ </div>
+ </div>
+ </div>
+ {{/list}}
+ <div class="buttonbar text-right">
+ <button type="submit" name="action" value="save-location">
+ <span class="glyphicon glyphicon-floppy-disk"></span>
+ {{lang_save}}
+ </button>
+ </div>
+</form> \ No newline at end of file