diff options
author | Simon Rettberg | 2017-12-04 18:13:41 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-12-04 18:13:41 +0100 |
commit | e079856a7dc7d5ba52f6474b3f82330f27990097 (patch) | |
tree | d6f654d96ce009e5b3a11e12c3497cfcb026018a /modules-available/runmode/templates/module-machine-list.html | |
parent | [locationinfo] summary: min-width 90px for child nodes (diff) | |
download | slx-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/module-machine-list.html')
-rw-r--r-- | modules-available/runmode/templates/module-machine-list.html | 12 |
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}}&{{deleteUrl}}{{modeid}}"> + <span class="glyphicon glyphicon-trash"></span> + </a> + {{/deleteUrl}} </td> </tr> {{/list}} |