Started to use different icons on time.php page for records with attached files.
[timetracker.git] / WEB-INF / templates / mobile / tasks.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_tasks')}
9       <table class="mobile-table-details">
10   {if $inactive_tasks}
11         <tr><td class="sectionHeaderNoBorder">{$i18n.form.tasks.active_tasks}</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_tasks}
18     {foreach $active_tasks as $task}
19         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
20           <td><a href="task_edit.php?id={$task.id}">{$task.name|escape}</a></td>
21           <td>{$task.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('task_add.php');" value="{$i18n.button.add}"></form>
31           </td>
32         </tr>
33       </table>
34
35   {if $inactive_tasks}
36       <table cellspacing="1" cellpadding="3" border="0" width="100%">
37         <tr><td class="sectionHeaderNoBorder">{$i18n.form.tasks.inactive_tasks}</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_tasks as $task}
43         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
44           <td><a href="task_edit.php?id={$task.id}">{$task.name|escape}</a></td>
45           <td>{$task.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('task_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_tasks}
65     {foreach $active_tasks as $task}
66         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
67           <td>{$task.name|escape}</td>
68           <td>{$task.description|escape}</td>
69         </tr>
70     {/foreach}
71   {/if}
72       </table>
73   {/if}
74     </td>
75   </tr>
76 </table>