X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Fclients.tpl;h=34f53a919d861ad380bd9199dd93c62c31e1aaab;hb=dc799619007c9eafdec69a70f89a2d08bb10864c;hp=ded17ba928762717ad8ac92372fab16e1a0b7474;hpb=ee49ee74b2a7d3c6daaa2d4bc6397b0c89e3099b;p=timetracker.git diff --git a/WEB-INF/templates/mobile/clients.tpl b/WEB-INF/templates/mobile/clients.tpl index ded17ba9..34f53a91 100644 --- a/WEB-INF/templates/mobile/clients.tpl +++ b/WEB-INF/templates/mobile/clients.tpl @@ -5,7 +5,7 @@ - {foreach $inactive_clients as $client} - - - - + + + {/foreach}
-{if ($user->canManageTeam())} +{if $user->can('manage_clients')} {if $inactive_clients} @@ -13,19 +13,17 @@ - {foreach $active_clients as $client} - - - - + + + {/foreach}
{$i18n.form.clients.active_clients}
{$i18n.label.person_name} {$i18n.label.address}{$i18n.label.edit}
{$client.name|escape:'html'}{$client.address|escape:'html'}{$i18n.label.edit}
{$client.name|escape}{$client.address|escape}
- +


{if $inactive_clients} @@ -34,21 +32,34 @@
{$i18n.label.person_name} {$i18n.label.address}{$i18n.label.edit}
{$client.name|escape:'html'}{$client.address|escape:'html'}{$i18n.label.edit}
{$client.name|escape}{$client.address|escape}
- +


{/if} +{else} + + + + + + {if $active_clients} + {foreach $active_clients as $client} + + + + + {/foreach} + {/if} +
{$i18n.label.thing_name}{$i18n.label.address}
{$client.name|escape}{$client.address|escape}
{/if}