Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / buchungsgruppen / list.html
1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%][%- INCLUDE 'common/flash.html' %]
2
3 <h1>[% title %]</h1>
4
5 <p>
6  <table width="100%" id="buchungsgruppen_list">
7   <thead>
8    <tr class="listheading">
9     <th align="center" width="1%"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
10     <th width="20%">[% 'Description' | $T8 %]</th>
11     <th width="20%">[% 'Inventory Account' | $T8 %]</th>
12      [%- FOREACH tz = TAXZONES %]
13         <th width="20%">[% 'Revenue' | $T8 %] [% HTML.escape(tz.description) %]</th>
14         <th width="20%">[% 'Expense' | $T8 %] [% HTML.escape(tz.description) %]</th>
15      [%- END %]
16    </tr>
17   </thead>
18
19   <tbody>
20    [%- FOREACH bg = BUCHUNGSGRUPPEN %]
21     <tr class="listrow" id="bg_id_[% bg.id %]">
22      <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
23      <td><a href="[% SELF.url_for(action='edit', id=bg.id) %]">[% HTML.escape(bg.description) %]</a></td>
24      <td>[% HTML.escape(CHARTLIST.${bg.id}.inventory_accno) %]</td>
25      [%- FOREACH tz = TAXZONES %]
26         <td>[% HTML.escape(CHARTLIST.${bg.id}.${tz.id}.income_accno) %]</td>
27         <td>[% HTML.escape(CHARTLIST.${bg.id}.${tz.id}.expense_accno) %]</td>
28      [%- END %]
29    [%- END %]
30   </tbody>
31  </table>
32 </p>
33
34 [% L.sortable_element('#buchungsgruppen_list tbody', url=SELF.url_for(action='reorder'), with='bg_id') %]