mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
toggle the style of the active buttons
This is a small optical enhancement that toggles the style of the "active" buttons depending on the actual state of the corresponding entry.
This commit is contained in:
parent
da143ca382
commit
d58a184bc0
@ -82,7 +82,7 @@
|
||||
*}
|
||||
{elseif $key == 'active'}
|
||||
{if $item._can_edit}
|
||||
<a class="btn btn-warning" href="{#url_editactive#}{$table}&id={$RAW_item.$id_field|escape:"url"}&active={if ($item.active==0)}1{else}0{/if}&token={$smarty.session.PFA_token|escape:"url"}">
|
||||
<a class="btn btn-{if ($item.active==0)}info{else}warning{/if}" href="{#url_editactive#}{$table}&id={$RAW_item.$id_field|escape:"url"}&active={if ($item.active==0)}1{else}0{/if}&token={$smarty.session.PFA_token|escape:"url"}">
|
||||
{if $item._active == $PALANG['YES']}
|
||||
<span class="glyphicon glyphicon-check" aria-hidden="true"></span>
|
||||
{else}
|
||||
|
Loading…
Reference in New Issue
Block a user