Added what is it link explaining report approval.
[timetracker.git] / WEB-INF / templates / projects.tpl
1 <script>
2   function chLocation(newLocation) { document.location = newLocation; }
3 </script>
4
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
6   <tr>
7     <td valign="top">
8 {if $user->can('manage_projects')}
9       <table cellspacing="1" cellpadding="3" border="0" width="100%">
10   {if $inactive_projects}
11         <tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.active_projects}</td></tr>
12   {/if}
13         <tr>
14           <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
15           <td width="35%" class="tableHeader">{$i18n.label.description}</td>
16           <td class="tableHeader">{$i18n.label.edit}</td>
17           <td class="tableHeader">{$i18n.label.delete}</td>
18         </tr>
19   {if $active_projects}
20     {foreach $active_projects as $project}
21         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
22           <td>{$project.name|escape}</td>
23           <td>{$project.description|escape}</td>
24           <td><a href="project_edit.php?id={$project.id}">{$i18n.label.edit}</a></td>
25           <td><a href="project_delete.php?id={$project.id}">{$i18n.label.delete}</a></td>
26         </tr>
27     {/foreach}
28   {/if}
29       </table>
30
31       <table width="100%">
32         <tr>
33           <td align="center"><br>
34             <form><input type="button" onclick="chLocation('project_add.php');" value="{$i18n.button.add}"></form>
35           </td>
36         </tr>
37       </table>
38
39   {if $inactive_projects}
40       <table cellspacing="1" cellpadding="3" border="0" width="100%">
41         <tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.inactive_projects}</td></tr>
42         <tr>
43           <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
44           <td width="35%" class="tableHeader">{$i18n.label.description}</td>
45           <td class="tableHeader">{$i18n.label.edit}</td>
46           <td class="tableHeader">{$i18n.label.delete}</td>
47         </tr>
48     {foreach $inactive_projects as $project}
49         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
50           <td>{$project.name|escape}</td>
51           <td>{$project.description|escape}</td>
52           <td><a href="project_edit.php?id={$project.id}">{$i18n.label.edit}</a></td>
53           <td><a href="project_delete.php?id={$project.id}">{$i18n.label.delete}</a></td>
54         </tr>
55     {/foreach}
56       </table>
57
58       <table width="100%">
59         <tr>
60           <td align="center"><br>
61             <form><input type="button" onclick="chLocation('project_add.php');" value="{$i18n.button.add}"></form>
62           </td>
63         </tr>
64       </table>
65   {/if}
66 {else}
67       <table cellspacing="1" cellpadding="3" border="0" width="100%">
68         <tr>
69           <td class="tableHeader">{$i18n.label.thing_name}</td>
70           <td class="tableHeader">{$i18n.label.description}</td>
71         </tr>
72   {if $active_projects}
73     {foreach $active_projects as $project}
74         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
75           <td>{$project.name|escape}</td>
76           <td>{$project.description|escape}</td>
77         </tr>
78     {/foreach}
79   {/if}
80       </table>
81 {/if}
82     </td>
83   </tr>
84 </table>