Refactored mobile expenses.php for subgroups.
[timetracker.git] / WEB-INF / templates / projects.tpl
index 3196721..09966a8 100644 (file)
@@ -5,7 +5,17 @@
 <table cellspacing="0" cellpadding="7" border="0" width="720">
   <tr>
     <td valign="top">
-{if $user->canManageTeam()}
+{if $user->can('manage_projects')}
+  {if $group_dropdown}
+{$forms.projectsForm.open} {* projectsForm consists only of one dropdown group control *}
+      <table width="100%">
+        <tr>
+          <td align="center">{$i18n.label.group}: {$forms.projectsForm.group.control}</td>
+        </tr>
+      </table>
+{$forms.projectsForm.close}
+  {/if}
+
       <table cellspacing="1" cellpadding="3" border="0" width="100%">
   {if $inactive_projects}
         <tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.active_projects}</td></tr>