0
0
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:
reinks2112 2023-07-28 23:50:06 +02:00 committed by GitHub
parent da143ca382
commit d58a184bc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@
*}
{elseif $key == 'active'}
{if $item._can_edit}
<a class="btn btn-warning" href="{#url_editactive#}{$table}&amp;id={$RAW_item.$id_field|escape:"url"}&amp;active={if ($item.active==0)}1{else}0{/if}&amp;token={$smarty.session.PFA_token|escape:"url"}">
<a class="btn btn-{if ($item.active==0)}info{else}warning{/if}" href="{#url_editactive#}{$table}&amp;id={$RAW_item.$id_field|escape:"url"}&amp;active={if ($item.active==0)}1{else}0{/if}&amp;token={$smarty.session.PFA_token|escape:"url"}">
{if $item._active == $PALANG['YES']}
<span class="glyphicon glyphicon-check" aria-hidden="true"></span>
{else}