Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6e4af1d1

Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt

  • ID 6e4af1d17e8ff347e31dd5525df5da0d94bae00e
  • Vorgänger 3c7e0b5f
  • Nachfolger 7701b0dd

Neues Design 2019 Standard-Code templates/webpages/reconciliation/assigning_table.html

Unterschiede anzeigen:

templates/webpages/reconciliation/assigning_table.html
1 1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
2 2

  
3 3
[% IF SELF.ELEMENTS.size %]
4
<table>
4
<table class="tbl-horizontal test">
5 5
  <thead>
6
    <tr class="listheading">
6
    <tr>
7 7
      <th></th>
8 8
      <th>[% 'ID' | $T8 %]</th>
9 9
      <th>[% 'Type' | $T8 %]</th>
......
12 12
      <th>[% 'Amount BB' | $T8 %]</th>
13 13
    </tr>
14 14
  </thead>
15
  <!-- PENDENT: tbody#assigned_elements war in der foreach-Schlaufe, was falsch ist. Ueberpruefen -->
16
  <tbody id="assigned_elements">
15 17
  [% FOREACH element = SELF.ELEMENTS %]
16
    <tbody id="assigned_elements">
17
      <tr class="listrow" id='element[% element.type %][% element.id %]'>
18
       <td><a href=# onclick="delete_element('[% element.id %]', '[% element.type %]')">x</a></td>
19
       <td>[% HTML.escape(element.id) %]</td>
20
       <td>[% IF element.type == 'BT' %][% 'Bank transaction' | $T8 %][% ELSE %][% 'Acc transaction' | $T8 %][% END %]</td>
21
       <td>[% HTML.escape(element.transdate_as_date) %]</td>
22
       <td align="right">[% IF element.type == 'BT' %][% HTML.escape(element.amount_as_number) %][% END %]</td>
23
       <td align="right">[% IF element.type == 'BB' %][% LxERP.format_amount(-1 * element.amount, 2) %][% END %]</td>
24
      </tr>
25
    </tbody>
26
  [% END %]
27
  <tbody>
28
    <tr class="listrow">
29
      <td class="listtotal top_border"></td>
30
      <td class="listtotal top_border"></td>
31
      <td class="listtotal top_border"></td>
32
      <td class="listtotal top_border"></td>
33
      <td class="listtotal top_border">[% bt_sum %]</td>
34
      <td class="listtotal top_border">[% bb_sum %]</td>
18
    <tr id="element[% element.type %][% element.id %]">
19
     <td><a href="#" onclick='delete_element("[% element.id %]", "[% element.type %]")'>x</a></td>
20
     <td>[% HTML.escape(element.id) %]</td>
21
     <td>[% IF element.type == 'BT' %][% 'Bank transaction' | $T8 %][% ELSE %][% 'Acc transaction' | $T8 %][% END %]</td>
22
     <td>[% HTML.escape(element.transdate_as_date) %]</td>
23
     <td class="numeric right">[% IF element.type == 'BT' %][% HTML.escape(element.amount_as_number) %][% END %]</td>
24
     <td class="numeric right">[% IF element.type == 'BB' %][% LxERP.format_amount(-1 * element.amount, 2) %][% END %]</td>
35 25
    </tr>
26
  [% END %]
36 27
  </tbody>
28
  <tfoot>
29
    <tr>
30
      <td></td>
31
      <td></td>
32
      <td></td>
33
      <td></td>
34
      <td class="numeric">[% bt_sum %]</td>
35
      <td class="numeric">[% bb_sum %]</td>
36
    </tr>
37
  </tfoot>
37 38
</table>
38 39
  [% UNLESS errors %]
39 40
   [% L.button_tag("submit_with_action('reconcile')", LxERP.t8("Reconcile")) %]

Auch abrufbar als: Unified diff