X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fclients.tpl;h=2e8b2b82f72647e97352acdaff9abaa604a315fe;hb=caa61e7cf00098a2cd64d0d716abb2d6b09982e7;hp=2d19b001edba9deee07a313575b014b4563c271c;hpb=7ece3d4c1cf7c91fc469373a6b8a997fd4ea3398;p=timetracker.git diff --git a/WEB-INF/templates/clients.tpl b/WEB-INF/templates/clients.tpl index 2d19b001..2e8b2b82 100644 --- a/WEB-INF/templates/clients.tpl +++ b/WEB-INF/templates/clients.tpl @@ -5,7 +5,16 @@ {foreach $inactive_clients as $client} - + @@ -50,9 +59,24 @@
-{if ($user->canManageTeam())} +{if $user->can('manage_clients')} + {if $group_dropdown} +{$forms.clientsForm.open} {* clientsForm consists only of one dropdown group control *} + + + + +
{$i18n.label.group}: {$forms.clientsForm.group.control}
+{$forms.clientsForm.close} + {/if} {if $inactive_clients} @@ -17,7 +26,7 @@ {foreach $active_clients as $client} - + @@ -27,7 +36,7 @@
{$i18n.form.clients.active_clients}
{$i18n.label.delete}
{$client.name|escape} {$client.address|escape} {$i18n.label.edit}
- +


{if $inactive_clients} @@ -40,7 +49,7 @@
{$i18n.label.delete}
{$client.name|escape} {$client.address|escape} {$i18n.label.edit}
- +


{/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}