diff options
author | Christian Hofmaier | 2017-12-07 18:20:06 +0100 |
---|---|---|
committer | Christian Hofmaier | 2017-12-07 18:20:06 +0100 |
commit | 0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be (patch) | |
tree | fccf8e5b4db5c6a07286f936f23249966bedee84 /modules-available/dozmod/templates/templates.html | |
parent | [sysconfig] Overview: Make mouseover highlighting work in the other direction... (diff) | |
download | slx-admin-0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be.tar.gz slx-admin-0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be.tar.xz slx-admin-0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be.zip |
[dozmod] reworked permission system from "click and you get error" to "button is disabled due to lack of permission" + in log as there is no button, the links to the user/target are disabled (not clickable).
Diffstat (limited to 'modules-available/dozmod/templates/templates.html')
-rw-r--r-- | modules-available/dozmod/templates/templates.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/dozmod/templates/templates.html b/modules-available/dozmod/templates/templates.html index 4764c0e9..3ee0ccbc 100644 --- a/modules-available/dozmod/templates/templates.html +++ b/modules-available/dozmod/templates/templates.html @@ -80,12 +80,12 @@ {{/templates}} </div> - <button type="submit" onclick="return validateForm()" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button> + <button {{^allowedSave}}disabled{{/allowedSave}} type="submit" onclick="return validateForm()" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button> </form> <form method="POST" action="?do=dozmod&section=templates"> <input type="hidden" name="token" value="{{token}}"> <div> - <button type="button" data-toggle="modal" data-target="#resetTemplatesModal" class="btn btn-danger">{{lang_loadDefaults}}</button> + <button {{^allowedReset}}disabled{{/allowedReset}} type="button" data-toggle="modal" data-target="#resetTemplatesModal" class="btn btn-danger">{{lang_loadDefaults}}</button> </div> <div id="resetTemplatesModal" class="modal fade" role="dialog"> |