diff options
author | Simon Rettberg | 2018-02-16 11:39:40 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-02-16 11:39:40 +0100 |
commit | 8d57b332ad02f70e19e2071a17d14c1e6839e04d (patch) | |
tree | b68a530a634f71daef4884314900d9d40acad97b /modules-available/systemstatus/templates | |
parent | [serversetup-bwlp] Make use of new permission helpers (diff) | |
download | slx-admin-8d57b332ad02f70e19e2071a17d14c1e6839e04d.tar.gz slx-admin-8d57b332ad02f70e19e2071a17d14c1e6839e04d.tar.xz slx-admin-8d57b332ad02f70e19e2071a17d14c1e6839e04d.zip |
[systemstatus] Use new permission helpers; disable non-accessible tabs
Diffstat (limited to 'modules-available/systemstatus/templates')
-rw-r--r-- | modules-available/systemstatus/templates/_page.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules-available/systemstatus/templates/_page.html b/modules-available/systemstatus/templates/_page.html index 715fd233..59fffa3a 100644 --- a/modules-available/systemstatus/templates/_page.html +++ b/modules-available/systemstatus/templates/_page.html @@ -11,11 +11,20 @@ </a> </li> {{#tabs}} + {{^enabled}} + <li class="disabled"> + <a> + {{name}} + </a> + </li> + {{/enabled}} + {{#enabled}} <li> <a href="#id-{{type}}_pane" class="ajax-tab" id="id-{{type}}" data-toggle="tab" role="tab"> {{name}} </a> </li> + {{/enabled}} {{/tabs}} </ul> @@ -86,7 +95,7 @@ <form class="form-adduser" action="?do=SystemStatus" method="post"> <input type="hidden" name="token" value="{{token}}"> <input type="hidden" name="action" value="reboot"> - <button {{^allowedToReboot}}disabled{{/allowedToReboot}} class="btn btn-warning" type="button" data-toggle="modal" data-target="#rebootServerModal"><span class="glyphicon glyphicon-repeat"></span> {{lang_serverReboot}}</button> + <button {{perms.serverreboot.disabled}} class="btn btn-warning" type="button" data-toggle="modal" data-target="#rebootServerModal"><span class="glyphicon glyphicon-repeat"></span> {{lang_serverReboot}}</button> <div class ="modal fade" id="rebootServerModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> |