Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 99248602

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

  • ID 99248602386006916dda0be7654a896b07268e31
  • Vorgänger eb9cac58
  • Nachfolger 63f97d71

Neues Design 2019 Standard-Code templates/webpages/am/list_accounts.html

Unterschiede anzeigen:

templates/webpages/am/list_accounts.html
1
 <h1>[% title %]</h1>
2

  
3
 <table width="100%">
4

  
5
  <colgroup>
6
   <col width="10%">
7
   <col width="10%">
8
   <col width="10%">
9
   <col width="50%">
10
   <col width="10%">
11
   <col width="10%">
12
  </colgroup>
13

  
14
  <tr class="listheading">
15
   <th>[% 'Account' | $T8 %]</td>
16
   <th colspan="3">[% 'Description (Click on Description for details)' | $T8 %]</td>
17
   <th>[% 'Debit' | $T8 %]</td>
18
   <th>[% 'Credit' | $T8 %]</td>
19 1
[% USE T8 %]
20 2
[% USE HTML %]
3
<h1>[% title %]</h1>
4

  
5

  
6
<table class="tbl-plain width-moderate" style="width:70%;" id="tbl-accounts">
7
  <thead>
8
    <tr>
9
      <th class="right">[% 'Account' | $T8 %]</td>
10
      <th>[% 'Description (Click on Description for details)' | $T8 %]</td>
11
      <th class="right">[% 'Debit' | $T8 %]</td>
12
      <th class="right">[% 'Credit' | $T8 %]</td>
13
    </tr>
14
  </thead>
15
  <tbody>
16
  [% FOREACH row = CA %]
17
  [% IF row.heading %]
18
  [% IF row.accno < 10 %] [% SET rwcls='th1' %] [% ELSE %] [% IF row.accno < 100 %] [% SET rwcls='th2' %] [% ELSE %] [% SET rwcls='th3' %] [% END %] [% END %]
19
  <tr class="heading [% rwcls %]">
20
    <th class="numeric"><a href="[% row.link_edit_account %]">[% row.accno | html %]</a></th>
21
    <th colspan="3">[% row.description | html %]</th>
21 22
  </tr>
22

  
23
[%- FOREACH row = CA %]
24
 [%- IF row.heading %]
25
  <tr class="listheading">
26
   <td><a href="[% row.link_edit_account %]">[% row.accno | html %]</a></td>
27
   <td colspan="5">[% row.description | html %]</td>
28
  </tr>
29
 [% ELSE %]
30
  <tr class="listrow[% loop.count % 2 %]">
31
   <td><b><a href="[% row.link_edit_account %]">[% row.accno | html %]</a></b></td>
32
   <td colspan="3" onclick="account_details([% row.id %])">[% row.description | html %]</td>
33
   <td class='numeric'>[% row.debit | html %]</td>
34
   <td class='numeric'>[% row.credit | html %]</td>
23
  [% ELSE %]
24
  <tr>
25
    <td class="numeric"><a href="[% row.link_edit_account %]">[% row.accno | html %]</a></td>
26
    <td onclick="account_details([% row.id %])">[% row.description | html %]</td>
27
    <td class="numeric">[% row.debit | html %]</td>
28
    <td class="numeric">[% row.credit | html %]</td>
35 29
  </tr>
36

  
37
  <tr id="ajaxrow[% row.id %]" style="display:none", onclick="$(this).toggle()">
38
   <td colspan="6" width="100%"><div id="ajaxcontent[% row.id %]"></div></td>
30
  <tr id="ajaxrow[% row.id %]" style="display:none" onclick="$(this).toggle()" class="ajax-account-details">
31
    <td></td>
32
    <td colspan="3" id="ajaxcontent[% row.id %]"></td>
39 33
  </tr>
40
 [% END %]
41
[% END %]
34
  [% END %]
35
  [% END %]
36
  </tbody>
37
</table>
42 38

  
43
 </table>
44 39

  
45 40
<script type='text/javascript'>
46 41
  function account_details(id) {

Auch abrufbar als: Unified diff