Added an option to use page breaks on PDF reports after grouped by blocks.
[timetracker.git] / WEB-INF / templates / invoice_add.tpl
1 {$forms.invoiceForm.open}
2 <table cellspacing="4" cellpadding="7" border="0">
3   <tr>
4     <td>
5       <table cellspacing="1" cellpadding="2" border="0">
6         <tr>
7           <td align="right">{$i18n.form.invoice.number} (*):</td>
8           <td>{$forms.invoiceForm.number.control}</td>
9         </tr>
10         <tr>
11           <td align="right">{$i18n.label.date} (*):</td>
12           <td>{$forms.invoiceForm.date.control}</td>
13         </tr>
14         <tr>
15           <td align="right">{$i18n.label.client} (*):</td>
16           <td>{$forms.invoiceForm.client.control}</td>
17         </tr>
18 {if $show_project}
19         <tr>
20           <td align="right">{$i18n.label.project}:</td>
21           <td>{$forms.invoiceForm.project.control}</td>
22         </tr>
23 {/if}
24         <tr>
25           <td align="right">{$i18n.label.start_date} (*):</td>
26           <td>{$forms.invoiceForm.start.control}</td>
27         </tr>
28         <tr>
29           <td align="right">{$i18n.label.end_date} (*):</td>
30           <td>{$forms.invoiceForm.finish.control}</td>
31         </tr>
32         <tr>
33           <td height="40"></td>
34           <td>{$i18n.label.required_fields}</td>
35         </tr>
36         <tr><td>&nbsp;</td></tr>
37         <tr>
38           <td colspan="2" align="center" height="50">{$forms.invoiceForm.btn_submit.control}</td>
39         </tr>
40       </table>
41     </td>
42   </tr>
43 </table>
44 {$forms.invoiceForm.close}
45
46 <script>
47 // Set the date field to browser today in user date format.
48 var dateField = document.getElementById("date");
49 if (dateField && !dateField.value) {
50   var today = new Date();
51   dateField.value = today.strftime("{$user->date_format}");
52 }
53 </script>