diff options
author | Christian Hofmaier | 2018-01-11 15:53:02 +0100 |
---|---|---|
committer | Christian Hofmaier | 2018-01-11 15:53:02 +0100 |
commit | e4e62c11eb207ed9b155dd4f49dab55f6c0e42a9 (patch) | |
tree | 4df840639e5cc2792473e91a1fe7ad0eeb03d111 /modules-available/rebootcontrol | |
parent | Merge remote-tracking branch 'origin/permission-manager' into permission-manager (diff) | |
download | slx-admin-e4e62c11eb207ed9b155dd4f49dab55f6c0e42a9.tar.gz slx-admin-e4e62c11eb207ed9b155dd4f49dab55f6c0e42a9.tar.xz slx-admin-e4e62c11eb207ed9b155dd4f49dab55f6c0e42a9.zip |
[rebootcontrol] this time with correct modul-tag in front. Changed buttons so that they don't open the modals to reboot/shutdown if user has no permission. Deleted some redundancy from stylesheet
Diffstat (limited to 'modules-available/rebootcontrol')
-rw-r--r-- | modules-available/rebootcontrol/style.css | 5 | ||||
-rw-r--r-- | modules-available/rebootcontrol/templates/_page.html | 8 |
2 files changed, 5 insertions, 8 deletions
diff --git a/modules-available/rebootcontrol/style.css b/modules-available/rebootcontrol/style.css index 442cd5de..f10a6157 100644 --- a/modules-available/rebootcontrol/style.css +++ b/modules-available/rebootcontrol/style.css @@ -16,11 +16,8 @@ margin-bottom: 0; } -#rebootButton, #settingsButton, #selectAllButton, #unselectAllButton { +.controlButtons { margin-left: 10px; -} - -#rebootButton, #shutdownButton, #selectAllButton, #unselectAllButton { width: 140px; } diff --git a/modules-available/rebootcontrol/templates/_page.html b/modules-available/rebootcontrol/templates/_page.html index 9b470943..e540cafb 100644 --- a/modules-available/rebootcontrol/templates/_page.html +++ b/modules-available/rebootcontrol/templates/_page.html @@ -15,10 +15,10 @@ {{/locations}} </select> </label> - <button type="button" id="selectAllButton" {{^allowedToSelect}}disabled{{/allowedToSelect}} class="btn btn-primary pull-right" onclick="selectAllRows()"><span class="glyphicon glyphicon-check"></span> {{lang_selectall}}</button> - <button type="button" id="unselectAllButton" {{^allowedToSelect}}disabled{{/allowedToSelect}} class="btn btn-default pull-right" onclick="unselectAllRows()" style="display: none;"><span class="glyphicon glyphicon-unchecked"></span> {{lang_unselectall}}</button> - <button type="button" id="rebootButton" class="btn btn-warning pull-right" data-toggle="modal" data-target="#rebootModal" disabled><span class="glyphicon glyphicon-repeat"></span> {{lang_rebootButton}}</button> - <button type="button" id="shutdownButton" class="btn btn-danger pull-right" data-toggle="modal" data-target="#shutdownModal" disabled><span class="glyphicon glyphicon-off"></span> {{lang_shutdownButton}}</button> + <button type="button" id="selectAllButton" {{^allowedToSelect}}disabled{{/allowedToSelect}} class="btn btn-primary pull-right controlButtons" onclick="selectAllRows()"><span class="glyphicon glyphicon-check"></span> {{lang_selectall}}</button> + <button type="button" id="unselectAllButton" {{^allowedToSelect}}disabled{{/allowedToSelect}} class="btn btn-default pull-right controlButtons" onclick="unselectAllRows()" style="display: none;"><span class="glyphicon glyphicon-unchecked"></span> {{lang_unselectall}}</button> + <button type="button" {{#allowedToReboot}}id="rebootButton"{{/allowedToReboot}} class="btn btn-warning pull-right controlButtons" data-toggle="modal" data-target="#rebootModal" disabled><span class="glyphicon glyphicon-repeat"></span> {{lang_rebootButton}}</button> + <button type="button" {{#allowedToShutdown}}id="shutdownButton"{{/allowedToShutdown}} class="btn btn-danger pull-right controlButtons" data-toggle="modal" data-target="#shutdownModal" disabled><span class="glyphicon glyphicon-off"></span> {{lang_shutdownButton}}</button> </div> </div> <div class="row"> |