1 {$forms.invoiceForm.open}
 
   2 <table cellspacing="4" cellpadding="7" border="0">
 
   5       <table cellspacing="1" cellpadding="2" border="0">
 
   7           <td align="right">{$i18n.form.invoice.number} (*):</td>
 
   8           <td>{$forms.invoiceForm.number.control}</td>
 
  11           <td align="right">{$i18n.label.date} (*):</td>
 
  12           <td>{$forms.invoiceForm.date.control}</td>
 
  15           <td align="right">{$i18n.label.client} (*):</td>
 
  16           <td>{$forms.invoiceForm.client.control}</td>
 
  20           <td align="right">{$i18n.label.project}:</td>
 
  21           <td>{$forms.invoiceForm.project.control}</td>
 
  25           <td align="right">{$i18n.label.start_date} (*):</td>
 
  26           <td>{$forms.invoiceForm.start.control}</td>
 
  29           <td align="right">{$i18n.label.end_date} (*):</td>
 
  30           <td>{$forms.invoiceForm.finish.control}</td>
 
  34           <td>{$i18n.label.required_fields}</td>
 
  36         <tr><td> </td></tr>
 
  38           <td colspan="2" align="center" height="50">{$forms.invoiceForm.btn_submit.control}</td>
 
  44 {$forms.invoiceForm.close}
 
  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}");