summaryrefslogtreecommitdiffstats
path: root/modules-available/dozmod/templates/mailconfig.html
diff options
context:
space:
mode:
authorChristian Hofmaier2017-12-07 18:20:06 +0100
committerChristian Hofmaier2017-12-07 18:20:06 +0100
commit0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be (patch)
treefccf8e5b4db5c6a07286f936f23249966bedee84 /modules-available/dozmod/templates/mailconfig.html
parent[sysconfig] Overview: Make mouseover highlighting work in the other direction... (diff)
downloadslx-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/mailconfig.html')
-rw-r--r--modules-available/dozmod/templates/mailconfig.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/dozmod/templates/mailconfig.html b/modules-available/dozmod/templates/mailconfig.html
index 6edc65ae..d5d4db29 100644
--- a/modules-available/dozmod/templates/mailconfig.html
+++ b/modules-available/dozmod/templates/mailconfig.html
@@ -55,10 +55,10 @@
</div>
<br>
<div class="text-right">
- <button class="btn btn-warning" type="button" id="test-button" name="button" value="test" onclick="slxTestConfig()"><span class="glyphicon glyphicon-envelope"></span> {{lang_test}}</button>
+ <button {{^allowedTest}}disabled{{/allowedTest}} class="btn btn-warning" type="button" id="test-button" name="button" value="test" onclick="slxTestConfig()"><span class="glyphicon glyphicon-envelope"></span> {{lang_test}}</button>
<span id="test-spin" style="display:none"><span class="glyphicon glyphicon-refresh slx-rotation"></span></span>
<pre id="test-output" style="display:none"></pre>
- <button class="btn btn-primary" type="submit" name="button" value="save"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button>
+ <button {{^allowedSave}}disabled{{/allowedSave}} class="btn btn-primary" type="submit" name="button" value="save"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button>
<br>
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="action" value="mail">