diff options
author | Simon Rettberg | 2017-06-13 18:32:23 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-06-13 18:32:23 +0200 |
commit | 0085d9309252fc1eec276b6eb05f271a140bee5d (patch) | |
tree | 01b36229b0b6e1a7477274ba8b62231c1b82ccbb /modules-available/locationinfo/templates/page-servers.html | |
parent | [locationinfo] Location edit part done so far (diff) | |
download | slx-admin-0085d9309252fc1eec276b6eb05f271a140bee5d.tar.gz slx-admin-0085d9309252fc1eec276b6eb05f271a140bee5d.tar.xz slx-admin-0085d9309252fc1eec276b6eb05f271a140bee5d.zip |
[locationinfo] slxadmin part done, todo: frontend+api
Diffstat (limited to 'modules-available/locationinfo/templates/page-servers.html')
-rw-r--r-- | modules-available/locationinfo/templates/page-servers.html | 117 |
1 files changed, 60 insertions, 57 deletions
diff --git a/modules-available/locationinfo/templates/page-servers.html b/modules-available/locationinfo/templates/page-servers.html index 2dfe63e1..eefb1ed5 100644 --- a/modules-available/locationinfo/templates/page-servers.html +++ b/modules-available/locationinfo/templates/page-servers.html @@ -1,69 +1,72 @@ -<div> - <h1>{{lang_mainHeader}}</h1> - - <h4>{{lang_serverTable}}</h4> - - <table class="table table-hover"> +<h2>{{lang_serverTable}}</h2> + +<p>{{lang_serverTableHints}}</p> + +<table class="table table-hover"> + <thead> + <tr> + <th width="1">{{lang_serverType}}</th> + <th>{{lang_locationName}}</th> + <th width="1"></th> + <th width="1"></th> + </tr> + </thead> + <tbody> + {{#serverlist}} + <form method="post" action="?do=locationinfo"> + <input type="hidden" name="token" value="{{token}}"> + <input type="hidden" name="serverid" value="{{serverid}}"> <tr> - <th width="1">{{lang_serverType}}</th> - <th>{{lang_locationName}}</th> - <th width="1"></th> - <th width="1"></th> + <td nowrap>{{typename}}</td> + <td nowrap>{{servername}}</td> + + <td align="center" nowrap> + <button class="btn btn-xs {{^autherror}}btn-default{{/autherror}}{{#autherror}}btn-danger{{/autherror}}" + data-server-edit="{{serverid}}" {{disabled}} type="button"> + <span class="glyphicon glyphicon-cog"></span> + {{lang_edit}} + </button> + <button class="btn btn-xs btn-primary server-check" {{disabled}} name="action" value="checkConnection" + type="submit"> + <span class="glyphicon glyphicon-refresh"></span> + {{lang_checkConnection}} + </button> + </td> + <td align="center" nowrap> + <button class="btn btn-xs btn-danger server-delete" type="submit" name="action" value="deleteServer"> + <span class="glyphicon glyphicon-trash"></span> + {{lang_delete}} + </button> + </td> </tr> - {{#serverlist}} - <form method="post" action="?do=locationinfo"> - <input type="hidden" name="token" value="{{token}}"> - <input type="hidden" name="serverid" value="{{serverid}}"> - <tr> - <td nowrap>{{typename}}</td> - <td nowrap>{{servername}}</td> - - <td align="center" nowrap> - <button class="btn btn-sm {{^autherror}}btn-success{{/autherror}}{{#autherror}}btn-danger{{/autherror}}" - data-server-edit="{{serverid}}" {{disabled}} type="button"> - <span style="margin-right: 5px;" class="glyphicon glyphicon-cog"></span> - {{lang_locationSettings}} - </button> - <button class="btn btn-sm btn-primary server-check" {{disabled}} name="action" value="checkConnection" - type="submit"> - <span style="margin-right: 5px;" class="glyphicon glyphicon-refresh"></span> - {{lang_checkConnection}} - </button> - </td> - <td align="center" nowrap> - <button class="btn btn-sm btn-danger server-delete" type="submit" name="action" value="deleteServer"> - <span style="margin-right: 5px;" class="glyphicon glyphicon-remove"></span> - {{lang_delete}} - </button> - </td> - </tr> - </form> - {{/serverlist}} - </table> - - <div> - <button class="btn btn-sm btn-success" id="addServerButton" onclick="addServer()"> - <span style="margin-right: 5px;" class="glyphicon glyphicon-plus"></span> - {{lang_addServer}} - </button> - </div> + </form> + {{/serverlist}} + </tbody> +</table> + +<div> + <button class="btn btn-sm btn-success" id="addServerButton" onclick="addServer()"> + <span class="glyphicon glyphicon-plus"></span> + {{lang_addServer}} + </button> +</div> - <div class="modal fade" id="myModal" tabindex="-1" role="dialog"> - <div class="modal-dialog"> +<div class="modal fade" id="myModal" tabindex="-1" role="dialog"> + <div class="modal-dialog"> - <div class="modal-content"> - <div class="modal-header" id="myModalHeader"></div> - <div class="modal-body" id="myModalBody"></div> - <div class="modal-footer"> - <button type="submit" id="myModalSubmitButton" class="btn btn-primary" form="">{{lang_save}}</button> + <div class="modal-content"> + <div class="modal-header" id="myModalHeader"></div> + <div class="modal-body" id="myModalBody"></div> + <div class="modal-footer"> + <button type="submit" id="myModalSubmitButton" class="btn btn-primary" form="">{{lang_save}}</button> - <a class="btn btn-primary" data-dismiss="modal">{{lang_close}}</a> - </div> + <a class="btn btn-primary" data-dismiss="modal">{{lang_close}}</a> </div> - </div> + </div> </div> + <script type="text/javascript"><!-- document.addEventListener("DOMContentLoaded", function () { |