A bit more role revamp related refactoring.
[timetracker.git] / WEB-INF / templates / mobile / clients.tpl
index 00a19ee..c10541f 100644 (file)
@@ -5,7 +5,7 @@
 <table class="mobile-table">
   <tr>
     <td valign="top">
-{if ($user->canManageTeam())}
+{if $user->can('manage_clients')}
       <table class="mobile-table-details">
   {if $inactive_clients}
         <tr><td class="sectionHeaderNoBorder">{$i18n.form.clients.active_clients}</td></tr>
@@ -15,7 +15,7 @@
           <td width="40%" class="tableHeader">{$i18n.label.address}</td>
         </tr>
   {foreach $active_clients as $client}
-        <tr valign="top" bgcolor="{cycle values="#f5f5f5,#dedee5"}">
+        <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
           <td><a href="client_edit.php?id={$client.id}">{$client.name|escape}</a></td>
           <td>{$client.address|escape}</td>
         </tr>
@@ -23,7 +23,7 @@
       </table>
 
       <table width="100%">
-        <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add_client}"></form></td></tr>
+        <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add}"></form></td></tr>
       </table>
 
   {if $inactive_clients}
@@ -34,7 +34,7 @@
           <td width="40%" class="tableHeader">{$i18n.label.address}</td>
         </tr>
     {foreach $inactive_clients as $client}
-        <tr valign="top" bgcolor="{cycle values="#f5f5f5,#dedee5"}">
+        <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
           <td><a href="client_edit.php?id={$client.id}">{$client.name|escape}</a></td>
           <td>{$client.address|escape}</td>
         </tr>
@@ -42,7 +42,7 @@
       </table>
 
       <table width="100%">
-        <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add_client}"></form></td></tr>
+        <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add}"></form></td></tr>
       </table>
   {/if}
 {/if}