Started to use different icons on time.php page for records with attached files.
[timetracker.git] / WEB-INF / templates / mobile / clients.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_clients')}
9       <table class="mobile-table-details">
10   {if $inactive_clients}
11         <tr><td class="sectionHeaderNoBorder">{$i18n.form.clients.active_clients}</td></tr>
12   {/if}
13         <tr>
14           <td width="40%" class="tableHeader">{$i18n.label.person_name}</td>
15           <td width="40%" class="tableHeader">{$i18n.label.address}</td>
16         </tr>
17   {foreach $active_clients as $client}
18         <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
19           <td><a href="client_edit.php?id={$client.id}">{$client.name|escape}</a></td>
20           <td>{$client.address|escape}</td>
21         </tr>
22   {/foreach}
23       </table>
24
25       <table width="100%">
26         <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add}"></form></td></tr>
27       </table>
28
29   {if $inactive_clients}
30       <table cellspacing="1" cellpadding="3" border="0" width="100%">
31         <tr><td class="sectionHeaderNoBorder">{$i18n.form.clients.inactive_clients}</td></tr>
32         <tr>
33           <td width="40%" class="tableHeader">{$i18n.label.person_name}</td>
34           <td width="40%" class="tableHeader">{$i18n.label.address}</td>
35         </tr>
36     {foreach $inactive_clients as $client}
37         <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
38           <td><a href="client_edit.php?id={$client.id}">{$client.name|escape}</a></td>
39           <td>{$client.address|escape}</td>
40         </tr>
41     {/foreach}
42       </table>
43
44       <table width="100%">
45         <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add}"></form></td></tr>
46       </table>
47   {/if}
48 {else}
49       <table cellspacing="1" cellpadding="3" border="0" width="100%">
50         <tr>
51           <td class="tableHeader">{$i18n.label.thing_name}</td>
52           <td class="tableHeader">{$i18n.label.address}</td>
53         </tr>
54   {if $active_clients}
55     {foreach $active_clients as $client}
56         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
57           <td>{$client.name|escape}</td>
58           <td>{$client.address|escape}</td>
59         </tr>
60     {/foreach}
61   {/if}
62       </table>
63 {/if}
64     </td>
65   </tr>
66 </table>