summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-07 13:24:10 +0100
committerSimon Rettberg2019-03-07 13:24:10 +0100
commit1f5b863a7693532d1503be74babd3cc584d3acea (patch)
treefc41a054fa13d841c3f48b7d3c50866ae4fb0c58 /modules-available/locationinfo
parent[minilinux] Visual feedback when loading ML version list (diff)
downloadslx-admin-1f5b863a7693532d1503be74babd3cc584d3acea.tar.gz
slx-admin-1f5b863a7693532d1503be74babd3cc584d3acea.tar.xz
slx-admin-1f5b863a7693532d1503be74babd3cc584d3acea.zip
[locationinfo] Fix form<->button relation (delete, check, etc.)
Diffstat (limited to 'modules-available/locationinfo')
-rw-r--r--modules-available/locationinfo/templates/page-servers.html39
1 files changed, 22 insertions, 17 deletions
diff --git a/modules-available/locationinfo/templates/page-servers.html b/modules-available/locationinfo/templates/page-servers.html
index 46a148ce..7c1cf79d 100644
--- a/modules-available/locationinfo/templates/page-servers.html
+++ b/modules-available/locationinfo/templates/page-servers.html
@@ -2,19 +2,19 @@
<p>{{lang_serverTableHints}}</p>
-<form method="post" action="?do=locationinfo">
- <table class="table table-hover">
- <thead>
- <tr>
- <th class="text-center slx-smallcol">{{lang_serverType}}</th>
- <th>{{lang_locationName}}</th>
- <th class="text-center slx-smallcol">{{lang_edit}}</th>
- <th class="text-center slx-smallcol">{{lang_checkConnection}}</th>
- <th class="text-center slx-smallcol">{{lang_delete}}</th>
- </tr>
- </thead>
- <tbody>
- {{#serverlist}}
+<table class="table table-hover">
+ <thead>
+ <tr>
+ <th class="text-center slx-smallcol">{{lang_serverType}}</th>
+ <th>{{lang_locationName}}</th>
+ <th class="text-center slx-smallcol">{{lang_edit}}</th>
+ <th class="text-center slx-smallcol">{{lang_checkConnection}}</th>
+ <th class="text-center slx-smallcol">{{lang_delete}}</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>
@@ -22,7 +22,7 @@
<td nowrap>{{servername}}</td>
<td class="text-center">
- <button class="btn btn-xs {{^autherror}}btn-default{{/autherror}}{{#autherror}}btn-danger{{/autherror}}"
+ <button class="btn btn-xs {{^error}}btn-default{{/error}}{{#error}}btn-danger{{/error}}"
data-server-edit="{{serverid}}" {{disabled}} {{perms.backend.edit.disabled}} type="button">
<span class="glyphicon glyphicon-cog"></span>
</button>
@@ -34,15 +34,20 @@
</button>
</td>
<td class="text-center">
- <button type="button" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#deleteModal" {{perms.backend.edit.disabled}}>
+ <button type="button" class="btn btn-xs btn-danger" onclick="$('#del-serverid').val({{serverid}})"
+ data-toggle="modal" data-target="#deleteModal" {{perms.backend.edit.disabled}}>
<span class="glyphicon glyphicon-trash"></span>
</button>
</td>
</tr>
+ </form>
{{/serverlist}}
- </tbody>
- </table>
+ </tbody>
+</table>
+<form method="post" action="?do=locationinfo">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="serverid" value="" id="del-serverid">
<div class ="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">