X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Fclients.tpl;h=a31a8cd05b2918631324a04237ea88738f2a774d;hb=a4c1ced936fb1a1b71d4d34479a9c999aef4b338;hp=eb46259f1a99d1de2db1271d0b55dc309613ef2d;hpb=0dcf21723daf12934f4977fcf24a0e1b1bff8021;p=timetracker.git
diff --git a/WEB-INF/templates/clients.tpl b/WEB-INF/templates/clients.tpl
index eb46259f..a31a8cd0 100644
--- a/WEB-INF/templates/clients.tpl
+++ b/WEB-INF/templates/clients.tpl
@@ -5,7 +5,7 @@
-{if ($user->canManageTeam())}
+{if $user->can('manage_clients')}
{if $inactive_clients}
@@ -17,9 +17,9 @@
{foreach $active_clients as $client}
-
- {$client.name|escape:'html'} |
- {$client.address|escape:'html'} |
+
+ {$client.name|escape} |
+ {$client.address|escape} |
{$i18n.label.edit} |
{$i18n.label.delete} |
@@ -27,7 +27,7 @@
{if $inactive_clients}
@@ -40,9 +40,9 @@
|
{foreach $inactive_clients as $client}
-
- {$client.name|escape:'html'} |
- {$client.address|escape:'html'} |
+
+ {$client.name|escape} |
+ {$client.address|escape} |
{$i18n.label.edit} |
{$i18n.label.delete} |
@@ -50,9 +50,24 @@
{/if}
+{else}
+
+
+
+
+
+ {if $active_clients}
+ {foreach $active_clients as $client}
+
+ {$client.name|escape} |
+ {$client.address|escape} |
+
+ {/foreach}
+ {/if}
+
{/if}