Refactored mobile expenses.php for subgroups.
[timetracker.git] / WEB-INF / templates / mobile / tasks.tpl
index 5ea6a2a..3fbee1f 100644 (file)
@@ -5,7 +5,7 @@
 <table class="mobile-table">
   <tr>
     <td valign="top">
-{if $user->canManageTeam()}
+{if $user->can('manage_tasks')}
       <table class="mobile-table-details">
   {if $inactive_tasks}
         <tr><td class="sectionHeaderNoBorder">{$i18n.form.tasks.active_tasks}</td></tr>
@@ -27,7 +27,7 @@
       <table width="100%">
         <tr>
           <td align="center"><br>
-            <form><input type="button" onclick="chLocation('task_add.php');" value="{$i18n.button.add_task}"></form>
+            <form><input type="button" onclick="chLocation('task_add.php');" value="{$i18n.button.add}"></form>
           </td>
         </tr>
       </table>
@@ -50,7 +50,7 @@
       <table width="100%">
         <tr>
           <td align="center"><br>
-            <form><input type="button" onclick="chLocation('task_add.php');" value="{$i18n.button.add_task}"></form>
+            <form><input type="button" onclick="chLocation('task_add.php');" value="{$i18n.button.add}"></form>
           </td>
         </tr>
       </table>