summaryrefslogtreecommitdiffstats
path: root/modules-available/systemstatus/templates/services.html
diff options
context:
space:
mode:
authorSimon Rettberg2020-07-07 16:36:46 +0200
committerSimon Rettberg2020-07-07 16:36:46 +0200
commitd635a52fd965519eecb717ea5b953a5f12ef9b88 (patch)
tree621d70b385d35409ff5a9f93edbf42ba39ad584f /modules-available/systemstatus/templates/services.html
parent[systemstatus] Add dnbd3-master-proxy to service status (diff)
downloadslx-admin-d635a52fd965519eecb717ea5b953a5f12ef9b88.tar.gz
slx-admin-d635a52fd965519eecb717ea5b953a5f12ef9b88.tar.xz
slx-admin-d635a52fd965519eecb717ea5b953a5f12ef9b88.zip
[systemstatus/sysconfig] Manage LDADP via systemd
Finally got rid of our own little service manager. Status/restart handling capabilities were added to the system status page. TODO: Permissions for dnbd3, service (re)starting in general
Diffstat (limited to 'modules-available/systemstatus/templates/services.html')
-rw-r--r--modules-available/systemstatus/templates/services.html32
1 files changed, 16 insertions, 16 deletions
diff --git a/modules-available/systemstatus/templates/services.html b/modules-available/systemstatus/templates/services.html
index 29b33687..2614fca9 100644
--- a/modules-available/systemstatus/templates/services.html
+++ b/modules-available/systemstatus/templates/services.html
@@ -1,20 +1,20 @@
+<form method="post" action="?do=systemstatus">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="action" value="service-start">
+ <table class="table">
{{#services}}
- {{#unknown}}
- <div class="alert alert-warning">
- {{name}}: {{lang_unknownState}}
- </div>
- {{/unknown}}
- {{^unknown}}
+ <tr class="bg-{{#fail}}danger{{/fail}}{{^fail}}success{{/fail}}">
+ <td>
{{#fail}}
- <div class="alert alert-danger">
- {{name}}: <b>{{lang_failure}}</b>
- {{#data.messages}}<pre>{{data.messages}}</pre>{{/data.messages}}
- </div>
+ <button class="btn btn-default btn-xs pull-right" name="service" value="{{service}}">
+ {{lang_restart}}
+ </button>
{{/fail}}
- {{^fail}}
- <div class="alert alert-success">
- {{name}}: {{lang_OK}}
- </div>
- {{/fail}}
- {{/unknown}}
+ {{name}}: {{#fail}}{{lang_failure}}{{/fail}}{{^fail}}{{lang_OK}}{{/fail}}
+ <div class="clearfix"></div>
+ {{#error}}<pre>{{error}}</pre>{{/error}}
+ </td>
+ </tr>
{{/services}}
+ </table>
+</form> \ No newline at end of file