Verknüpfte Belege: beliebige Verknüpfungen hinzufügen können
[kivitendo-erp.git] / templates / webpages / record_links / add_list.html
1 [%- USE T8 -%][%- USE HTML -%][%- USE LxERP -%][%- USE P -%][%- USE L -%]
2 [%- IF !OBJECTS.size %]
3 <p class="message_hint">[% 'No data was found.' | $T8 %]</p>
4 [%- ELSE %]
5 <table width="100%">
6  <tr class="listheading">
7   <th>[% L.checkbox_tag('record_links_check_all') %]</th>
8   <th>[% IF vc == 'customer' %][%- LxERP.t8("Customer") %][%- ELSE %][%- LxERP.t8("Vendor") %][%- END %]</th>
9   <th>[%- LxERP.t8("Number") %]</th>
10   <th>[%- LxERP.t8("Date") %]</th>
11   <th>[%- LxERP.t8("Transaction description") %]</th>
12   <th>[%- LxERP.t8("Project") %]</th>
13  </tr>
14
15  [%- FOREACH object = OBJECTS %]
16  <tr class="listrow[% loop.count % 2 %]">
17   <td>[% L.checkbox_tag('link_id[]', value=object.id) %]</td>
18   <td>[%- HTML.escape(object.$vc.name) %]</td>
19   <td>[%- HTML.escape(object.$number_column) %]</td>
20   <td>[%- HTML.escape(object.transdate.to_kivitendo) %]</td>
21   <td>[%- HTML.escape(object.transaction_description) %]</td>
22   <td>[%- P.project(object.globalproject, no_link=1) %]</td>
23  </tr>
24  [%- END %]
25 </table>
26
27 <script type="text/javascript">
28  <!--
29 $(function() {
30   $('#record_links_check_all').checkall('INPUT[name="link_id[]"]');
31 });
32 -->
33 </script>
34 [%- END %]