summaryrefslogtreecommitdiffstats
path: root/modules-available/usblockoff/templates
diff options
context:
space:
mode:
authorChristian Hofmaier2018-03-20 11:43:46 +0100
committerChristian Hofmaier2018-03-20 11:43:46 +0100
commitb777775f1c4d4424d393e3b1750a8ac2164cbbd1 (patch)
treebfdea3dbfdd8443a4a2fe341ae9deaac6511dba4 /modules-available/usblockoff/templates
parent[usb-lock-off] config names can now be as long as they want to + fixed table ... (diff)
downloadslx-admin-b777775f1c4d4424d393e3b1750a8ac2164cbbd1.tar.gz
slx-admin-b777775f1c4d4424d393e3b1750a8ac2164cbbd1.tar.xz
slx-admin-b777775f1c4d4424d393e3b1750a8ac2164cbbd1.zip
[usb-lock-off] disabled add buttons if configuration isn't added to db yet
Diffstat (limited to 'modules-available/usblockoff/templates')
-rw-r--r--modules-available/usblockoff/templates/usb-rules-config.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/modules-available/usblockoff/templates/usb-rules-config.html b/modules-available/usblockoff/templates/usb-rules-config.html
index 15c7a2f7..60f786c0 100644
--- a/modules-available/usblockoff/templates/usb-rules-config.html
+++ b/modules-available/usblockoff/templates/usb-rules-config.html
@@ -48,14 +48,16 @@
</tbody>
</table>
<div class="pull-right">
- <a class="btn btn-success" href="?do=usblockoff&show=add-generic-rule&configid={{configid}}"
- style="margin-right: 3px; float: right;">
- <span style="margin-right: 5px;" class="glyphicon glyphicon-plus"></span>
+ <a class="btn btn-success {{#newConfig}}disabled{{/newConfig}}"
+ {{^newConfig}}href="?do=usblockoff&show=add-generic-rule&configid={{configid}}"{{/newConfig}}
+ {{#newConfig}}title="{{lang_disabledButtons_helptext}}" style="pointer-events: auto;"{{/newConfig}}>
+ <span class="glyphicon glyphicon-plus"></span>
<span>{{lang_genericRule}}</span>
</a>
- <a class="btn btn-success" href="?do=usblockoff&show=add-devices&configid={{configid}}"
- style="margin-right: 3px;float: right;">
- <span style="margin-right: 5px;" class="glyphicon glyphicon-plus"></span>
+ <a class="btn btn-success {{#newConfig}}disabled{{/newConfig}}"
+ {{^newConfig}}href="?do=usblockoff&show=add-devices&configid={{configid}}"{{/newConfig}}
+ {{#newConfig}}title="{{lang_disabledButtons_helptext}}" style="pointer-events: auto;"{{/newConfig}}>
+ <span class="glyphicon glyphicon-plus"></span>
<span>{{lang_devices}}</span>
</a>
</div>