Improved presentation of language selector.
[timetracker.git] / WEB-INF / templates / predefined_expenses.tpl
1 {$forms.predefinedExpensesForm.open}
2 <table cellspacing="0" cellpadding="7" border="0" width="720">
3   <tr>
4     <td valign="top">
5 {if $user->canManageTeam()}
6       <table cellspacing="1" cellpadding="3" border="0" width="100%">
7         <tr>
8           <td class="tableHeader">{$i18n.label.thing_name}</td>
9           <td class="tableHeader">{$i18n.label.cost}</td>
10           <td class="tableHeader">{$i18n.label.edit}</td>
11           <td class="tableHeader">{$i18n.label.delete}</td>
12         </tr>
13   {if $predefined_expenses}
14     {foreach $predefined_expenses as $predefined_expense}
15         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
16           <td>{$predefined_expense['name']|escape}</td>
17           <td>{$predefined_expense['cost']|escape}</td>
18           <td><a href="predefined_expense_edit.php?id={$predefined_expense['id']}">{$i18n.label.edit}</a></td>
19           <td><a href="predefined_expense_delete.php?id={$predefined_expense['id']}">{$i18n.label.delete}</a></td>
20         </tr>
21     {/foreach}
22   {/if}
23       </table>
24
25       <table width="100%">
26         <tr><td align="center"><br>{$forms.predefinedExpensesForm.btn_add.control}</td></tr>
27       </table>
28 {/if}
29     </td>
30   </tr>
31 </table>
32 {$forms.predefinedExpensesForm.close}