db0826caf4f2328110b9d790d93d100c6468763f
[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->canManageTeam())}
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_client}"></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_client}"></form></td></tr>
46       </table>
47   {/if}
48 {/if}
49     </td>
50   </tr>
51 </table>