Revision 11caf383
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/am/list_accounts.html | ||
---|---|---|
<h1>[% title %]</h1>
|
||
|
||
<table width="100%">
|
||
|
||
<colgroup>
|
||
<col width="10%">
|
||
<col width="10%">
|
||
<col width="10%">
|
||
<col width="50%">
|
||
<col width="10%">
|
||
<col width="10%">
|
||
</colgroup>
|
||
|
||
<tr class="listheading">
|
||
<th>[% 'Account' | $T8 %]</td>
|
||
<th colspan="3">[% 'Description (Click on Description for details)' | $T8 %]</td>
|
||
<th>[% 'Debit' | $T8 %]</td>
|
||
<th>[% 'Credit' | $T8 %]</td>
|
||
[% USE T8 %]
|
||
[% USE HTML %]
|
||
<h1>[% title %]</h1>
|
||
|
||
|
||
<table class="tbl-plain width-moderate" style="width:70%;" id="tbl-accounts">
|
||
<thead>
|
||
<tr>
|
||
<th class="right">[% 'Account' | $T8 %]</td>
|
||
<th>[% 'Description (Click on Description for details)' | $T8 %]</td>
|
||
<th class="right">[% 'Debit' | $T8 %]</td>
|
||
<th class="right">[% 'Credit' | $T8 %]</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
[% FOREACH row = CA %]
|
||
[% IF row.heading %]
|
||
[% IF row.accno < 10 %] [% SET rwcls='th1' %] [% ELSE %] [% IF row.accno < 100 %] [% SET rwcls='th2' %] [% ELSE %] [% SET rwcls='th3' %] [% END %] [% END %]
|
||
<tr class="heading [% rwcls %]">
|
||
<th class="numeric"><a href="[% row.link_edit_account %]">[% row.accno | html %]</a></th>
|
||
<th colspan="3">[% row.description | html %]</th>
|
||
</tr>
|
||
|
||
[%- FOREACH row = CA %]
|
||
[%- IF row.heading %]
|
||
<tr class="listheading">
|
||
<td><a href="[% row.link_edit_account %]">[% row.accno | html %]</a></td>
|
||
<td colspan="5">[% row.description | html %]</td>
|
||
</tr>
|
||
[% ELSE %]
|
||
<tr class="listrow[% loop.count % 2 %]">
|
||
<td><b><a href="[% row.link_edit_account %]">[% row.accno | html %]</a></b></td>
|
||
<td colspan="3" onclick="account_details([% row.id %])">[% row.description | html %]</td>
|
||
<td class='numeric'>[% row.debit | html %]</td>
|
||
<td class='numeric'>[% row.credit | html %]</td>
|
||
[% ELSE %]
|
||
<tr>
|
||
<td class="numeric"><a href="[% row.link_edit_account %]">[% row.accno | html %]</a></td>
|
||
<td onclick="account_details([% row.id %])">[% row.description | html %]</td>
|
||
<td class="numeric">[% row.debit | html %]</td>
|
||
<td class="numeric">[% row.credit | html %]</td>
|
||
</tr>
|
||
|
||
<tr id="ajaxrow[% row.id %]" style="display:none", onclick="$(this).toggle()">
|
||
<td colspan="6" width="100%"><div id="ajaxcontent[% row.id %]"></div></td>
|
||
<tr id="ajaxrow[% row.id %]" style="display:none" onclick="$(this).toggle()" class="ajax-account-details">
|
||
<td></td>
|
||
<td colspan="3" id="ajaxcontent[% row.id %]"></td>
|
||
</tr>
|
||
[% END %]
|
||
[% END %]
|
||
[% END %]
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
</table>
|
||
|
||
<script type='text/javascript'>
|
||
function account_details(id) {
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/am/list_accounts.html