A bit of refactoring.
[timetracker.git] / WEB-INF / templates / project_edit.tpl
index c94e475..2a2364f 100644 (file)
           <td align="right">{$i18n.label.status}:</td>
           <td>{$forms.projectForm.status.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 $show_tasks}
         <tr><td>&nbsp;</td></tr>
         <tr>
           <td align="right">{$i18n.label.tasks}:</td>
@@ -42,4 +44,4 @@
     </td>
   </tr>
 </table>
-{$forms.projectForm.close}
\ No newline at end of file
+{$forms.projectForm.close}