epic-ts
[kivitendo-erp.git] / templates / webpages / bank_transactions / filter_drafts.html
1 [%- USE T8 -%][%- USE HTML -%][%- USE LxERP -%][%- USE P -%][%- USE L -%]
2 [%- IF !DRAFTS.size %]
3   <p class="message_hint">[% 'No draft was found.' | $T8 %]</p>
4 [%- ELSE %]
5   <table>
6    <tr>
7     <th class="listheading">[% 'Date' | $T8 %]</th>
8     <th class="listheading">[% 'Description' | $T8 %]</th>
9     <th class="listheading">[% 'Employee' | $T8 %]</th>
10     <th class="listheading">[% 'Vendor' | $T8 %]</th>
11    </tr>
12
13    [% FOREACH draft = DRAFTS %]
14     <tr class="listrow[% loop.count % 2 %]">
15      <td>[% HTML.escape(draft.itime_as_date) %]</td>
16      <td><a href="[% draft.module %].pl?action=load_draft&id=[% HTML.url(draft.id) %]&amount_1=[% SELF.transaction.amount_as_number %]&datepaid_1=[% HTML.url(SELF.transaction.transdate_as_date) %]&paid_1=[% SELF.transaction.amount_as_number %]&remove_draft=0&callback=[% HTML.url(callback) %]">[% HTML.escape(draft.description) %]</a></td>
17      <td>[% HTML.escape(draft.employee.name) %]</td>
18      <td>[% HTML.escape(draft.vendor) %]</td>
19     </tr>
20    [% END %]
21   </table>
22 [%- END %]
23