Started to use different icons on time.php page for records with attached files.
[timetracker.git] / WEB-INF / templates / mobile / projects.tpl
1 <script>
2   function chLocation(newLocation) { document.location = newLocation; }
3 </script>
4
5 <table class="mobile-table">
6   <tr>
7     <td valign="top">
8 {if $user->can('manage_projects')}
9       <table class="mobile-table-details">
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         </tr>
17   {if $active_projects}
18     {foreach $active_projects as $project}
19         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
20           <td><a href="project_edit.php?id={$project.id}">{$project.name|escape}</a></td>
21           <td>{$project.description|escape}</td>
22         </tr>
23     {/foreach}
24   {/if}
25       </table>
26
27       <table width="100%">
28         <tr>
29           <td align="center"><br>
30             <form><input type="button" onclick="chLocation('project_add.php');" value="{$i18n.button.add}"></form>
31           </td>
32         </tr>
33       </table>
34
35   {if $inactive_projects}
36       <table cellspacing="1" cellpadding="3" border="0" width="100%">
37         <tr><td class="sectionHeaderNoBorder">{$i18n.form.projects.inactive_projects}</td></tr>
38         <tr>
39           <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
40           <td width="35%" class="tableHeader">{$i18n.label.description}</td>
41         </tr>
42     {foreach $inactive_projects as $project}
43         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
44           <td><a href="project_edit.php?id={$project.id}">{$project.name|escape}</a></td>
45           <td>{$project.description|escape}</td>
46         </tr>
47     {/foreach}
48       </table>
49
50       <table width="100%">
51         <tr>
52           <td align="center"><br>
53             <form><input type="button" onclick="chLocation('project_add.php');" value="{$i18n.button.add}"></form>
54           </td>
55         </tr>
56       </table>
57   {/if}
58 {else}
59       <table cellspacing="1" cellpadding="3" border="0" width="100%">
60         <tr>
61           <td class="tableHeader">{$i18n.label.thing_name}</td>
62           <td class="tableHeader">{$i18n.label.description}</td>
63         </tr>
64   {if $active_projects}
65     {foreach $active_projects as $project}
66         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
67           <td>{$project.name|escape}</td>
68           <td>{$project.description|escape}</td>
69         </tr>
70     {/foreach}
71   {/if}
72       </table>
73 {/if}
74     </td>
75   </tr>
76 </table>