]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/templates/project_add.tpl
Usability improvements - conditional display of controls.
[timetracker.git] / WEB-INF / templates / project_add.tpl
index 3aad22c20a1bc6606f737758988f2dc26b5979e2..2f2fb996e5de205b0a54614f52131104e8ae8a6c 100644 (file)
           <td align = "right">{$i18n.label.description}:</td>
           <td>{$forms.projectForm.description.control}</td>
         </tr>
+{if $show_users}
         <tr><td>&nbsp;</td></tr>
         <tr>
           <td align="right">{$i18n.label.users}:</td>
           <td>{$forms.projectForm.users.control}</td>
         </tr>
-{if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+{/if}
+{if $smarty.const.MODE_PROJECTS_AND_TASKS == $user->getTrackingMode() && $show_tasks}
         <tr><td>&nbsp;</td></tr>
         <tr>
           <td align="right">{$i18n.label.tasks}:</td>