2 [%- USE HTML %][%- USE L -%]
 
   3 <h1>[% 'Load letter draft' | $T8 %]</h1>
 
   5  <form method="post" name="Form" action="controller.pl" id="form">
 
   6   [% L.hidden_tag('is_sales', SELF.is_sales) %]
 
   7   <p>[% 'The following drafts have been saved and can be loaded.' | $T8 %]</p>
 
  15        <th class="listheading"> </th>
 
  16        <th class="listheading">[% 'Date' | $T8 %]</th>
 
  17        <th class="listheading">[% 'Subject' | $T8 %]</th>
 
  18 [%- IF SELF.is_sales %]
 
  19        <th class="listheading">[% 'Customer' | $T8 %]</th>
 
  21        <th class="listheading">[% 'Vendor' | $T8 %]</th>
 
  25       [% FOREACH row = LETTER_DRAFTS %]
 
  26        <tr class="listrow[% loop.count % 2 %]">
 
  27         <td>[% L.checkbox_tag("ids[+]", value=row.id) %]</td>
 
  28         <td>[% row.date.to_kivitendo | html %]</td>
 
  29         <td><a href="[% SELF.url_for(action='edit', 'draft.id'=row.id) %]">[% row.subject | html %]</a></td>
 
  30 [%- IF SELF.is_sales %]
 
  31         <td>[% row.customer.displayable_name | html %]</td>
 
  33         <td>[% row.vendor.displayable_name | html %]</td>