summaryrefslogtreecommitdiffstats
path: root/modules-available/usblockoff/templates/usb-rules-config.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/usblockoff/templates/usb-rules-config.html')
-rw-r--r--modules-available/usblockoff/templates/usb-rules-config.html23
1 files changed, 15 insertions, 8 deletions
diff --git a/modules-available/usblockoff/templates/usb-rules-config.html b/modules-available/usblockoff/templates/usb-rules-config.html
index 15c7a2f7..8cb63d88 100644
--- a/modules-available/usblockoff/templates/usb-rules-config.html
+++ b/modules-available/usblockoff/templates/usb-rules-config.html
@@ -1,5 +1,10 @@
<div class="panel panel-default">
- <div class="panel-heading">rules.conf</div>
+ <div class="panel-heading">
+ rules.conf
+ <a class="btn btn-default" title="{{lang_firstMatchingRuleCounts}}">
+ <span class="glyphicon glyphicon-question-sign"></span>
+ </a>
+ </div>
<div class="panel-body" id="casualRules">
<div class="list-group">
@@ -9,7 +14,7 @@
<thead>
<tr>
<th data-sort="string" width="20"><span class="glyphicon glyphicon-th-list"></span></th>
- <th width="120">{{lang_target}}</th>
+ <th width="120">{{lang_action}}</th>
<th>{{lang_attributes}}</th>
<th>{{lang_edit}}</th>
<th>{{lang_delete}}</th>
@@ -48,14 +53,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>