Some refactoring and cleanup in ttRegistrator class.
[timetracker.git] / WEB-INF / templates / invoice_delete.tpl
1 <script>
2   function confirm_deleting_entries() {
3     var dropdown = document.getElementById("delete_invoice_entries");
4     if (1 == dropdown.value) {
5       // User selected deleting values. Ask to confirm.
6       return confirm("{$i18n.form.invoice.confirm_deleting_entries}");
7     }
8     return true;
9   }
10 </script>
11
12 {$forms.invoiceDeleteForm.open}
13 <table cellspacing="4" cellpadding="7" border="0">
14   <tr>
15     <td>
16       <table cellspacing="0" cellpadding="2" border="0">
17         <tr>
18           <td>{$i18n.form.invoice.invoice_to_delete}:</td>
19           <th>{$invoice_to_delete|escape}</th>
20         </tr>
21         <tr>
22           <td>{$i18n.form.invoice.invoice_entries}:</td>
23           <td>{$forms.invoiceDeleteForm.delete_invoice_entries.control}</td>
24         </tr>
25         <tr><td colspan="2" align="center">&nbsp;</td></tr>
26         <tr>
27           <td align="right">{$forms.invoiceDeleteForm.btn_delete.control}&nbsp;</td>
28           <td align="left">&nbsp;{$forms.invoiceDeleteForm.btn_cancel.control}</td>
29         </tr>
30       </table>
31     </td>
32   </tr>
33 </table>
34 {$forms.invoiceDeleteForm.close}