From 0922db8210d50d57eebf82aaf4f5c419ce03a59f Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sun, 27 Sep 2020 20:44:03 +0100 Subject: [PATCH] change deletion to be a POST request, use btn-danger etc --- templates/bootstrap/list.tpl | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/templates/bootstrap/list.tpl b/templates/bootstrap/list.tpl index 6eaa2d2d..73e451f4 100644 --- a/templates/bootstrap/list.tpl +++ b/templates/bootstrap/list.tpl @@ -82,7 +82,7 @@ *} {elseif $key == 'active'} {if $item._can_edit} - {$item._active} + {$item._active} {else} {$item._active} {/if} @@ -99,7 +99,7 @@ {assign var="quota_level" value="high"} {elseif $item[$tmpkey]>55} {assign var="quota_level" value="mid"} - {else} + {else} {assign var="quota_level" value="low"} {/if} {if $item[$tmpkey] > -1} @@ -123,9 +123,23 @@ {/if} {/foreach} - {if $item._can_edit}{$PALANG.edit}{else} {/if} - {if $item._can_delete}{$PALANG.del}{else} {/if} + {if $item._can_edit} + {$PALANG.edit} + {else}  + {/if} + + {if $item._can_delete} +
+ + + + + +
+ {else} {/if} + {/foreach}