diff options
author | Simon Rettberg | 2019-12-10 18:18:28 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-12-10 18:18:28 +0100 |
commit | b497d4a7200591e0b7b91948120cbfa395f5c92f (patch) | |
tree | 6e384142228882f422a3766c8e8598034f323dc2 /modules-available/rebootcontrol/templates/exec-enter-command.html | |
parent | [rebootcontrol] Fix jumphost script template (missing %) (diff) | |
download | slx-admin-b497d4a7200591e0b7b91948120cbfa395f5c92f.tar.gz slx-admin-b497d4a7200591e0b7b91948120cbfa395f5c92f.tar.xz slx-admin-b497d4a7200591e0b7b91948120cbfa395f5c92f.zip |
[statistics/rebootcontrol] Add remote exec UI
Diffstat (limited to 'modules-available/rebootcontrol/templates/exec-enter-command.html')
-rw-r--r-- | modules-available/rebootcontrol/templates/exec-enter-command.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/modules-available/rebootcontrol/templates/exec-enter-command.html b/modules-available/rebootcontrol/templates/exec-enter-command.html new file mode 100644 index 00000000..5916e2a8 --- /dev/null +++ b/modules-available/rebootcontrol/templates/exec-enter-command.html @@ -0,0 +1,41 @@ +<h2>{{lang_execRemoteCommand}}</h2> + +<table class="table table-hover stupidtable" id="dataTable"> + <thead> + <tr> + <th data-sort="string">{{lang_client}}</th> + <th data-sort="ipv4">{{lang_ip}}</th> + <th data-sort="string"> + {{lang_status}} + </th> + </tr> + </thead> + + <tbody> + {{#clients}} + <tr> + <td>{{hostname}}{{^hostname}}{{machineuuid}}{{/hostname}}</td> + <td>{{clientip}}</td> + <td>{{state}}</td> + </tr> + {{/clients}} + </tbody> +</table> + +<h3>{{lang_enterCommand}}</h3> + +<form method="post" action="?do=rebootcontrol" id="list-form"> + <input type="hidden" name="token" value="{{token}}"> + <input type="hidden" name="show" value="exec"> + <input type="hidden" name="id" value="{{id}}"> + <div> + <label for="script-text">{{lang_scriptOrCommand}}</label> + <textarea id="script-text" class="form-control" name="script" rows="10"></textarea> + </div> + <div class="text-right slx-space"> + <button type="submit" class="btn btn-primary" name="action" value="exec"> + <span class="glyphicon glyphicon-play"></span> + {{lang_remoteExec}} + </button> + </div> +</form>
\ No newline at end of file |