summaryrefslogtreecommitdiffstats
path: root/modules-available/runmode/templates
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-04 18:13:41 +0100
committerSimon Rettberg2017-12-04 18:13:41 +0100
commite079856a7dc7d5ba52f6474b3f82330f27990097 (patch)
treed6f654d96ce009e5b3a11e12c3497cfcb026018a /modules-available/runmode/templates
parent[locationinfo] summary: min-width 90px for child nodes (diff)
downloadslx-admin-e079856a7dc7d5ba52f6474b3f82330f27990097.tar.gz
slx-admin-e079856a7dc7d5ba52f6474b3f82330f27990097.tar.xz
slx-admin-e079856a7dc7d5ba52f6474b3f82330f27990097.zip
[runmode] Properly block simple editor if requested; add customized delete URL
Diffstat (limited to 'modules-available/runmode/templates')
-rw-r--r--modules-available/runmode/templates/module-machine-list.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules-available/runmode/templates/module-machine-list.html b/modules-available/runmode/templates/module-machine-list.html
index 45f574ef..61bbbad9 100644
--- a/modules-available/runmode/templates/module-machine-list.html
+++ b/modules-available/runmode/templates/module-machine-list.html
@@ -35,8 +35,16 @@
{{/isclient}}
</td>
<td class="text-center">
- <button class="btn btn-danger btn-sm" name="machineuuid" value="{{machineuuid}}"><span
- class="glyphicon glyphicon-remove"></span></button>
+ {{#canedit}}
+ <button type="submit" class="btn btn-danger btn-sm" name="machineuuid" value="{{machineuuid}}">
+ <span class="glyphicon glyphicon-trash"></span>
+ </button>
+ {{/canedit}}
+ {{#deleteUrl}}
+ <a class="btn btn-danger btn-sm" href="?do={{module}}&amp;{{deleteUrl}}{{modeid}}">
+ <span class="glyphicon glyphicon-trash"></span>
+ </a>
+ {{/deleteUrl}}
</td>
</tr>
{{/list}}