]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/simple_system_setting/list.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / simple_system_setting / list.html
1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
2
3 <h1>[% HTML.escape(title) %]</h1>
4
5 [%- INCLUDE 'common/flash.html' %]
6 <div class="wrapper">
7
8 <table id="object_list" class="tbl-list wi-moderate">
9  <thead>
10   <tr>
11    [% IF SELF.supports_reordering %]
12     <th class="img center"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></th>
13    [% END %]
14    [% FOREACH attribute = SELF.list_attributes %]
15     <th[% IF attribute.align %] align="[% attribute.align %]"[% END %]>[% HTML.escape(attribute.title) %]</th>
16    [% END %]
17   </tr>
18  </thead>
19
20  <tbody>
21   [%- FOREACH object = SELF.all_objects %]
22    <tr id="object_id_[% object.id %]">
23    [% IF SELF.supports_reordering %]
24     <td class="img center dragdrop">[% L.img_tag(src="image/updown.png", alt=LxERP.t8("reorder item")) %]</td>
25    [% END %][%# IF SELF.supports_reordering %]
26    [% FOREACH attribute = SELF.list_attributes %]
27     <td[% IF attribute.align %] align="[% attribute.align %]"[% END %]>
28      [% IF loop.count == 1 %]
29       <a href="[% SELF.url_for(action='edit', type=SELF.type, id=object.id) %]">
30      [% END %][%# IF loop.count == 0 %]
31      [% SET method = attribute.method
32             value  = attribute.exists('formatter') ? attribute.formatter(object) : object.$method ;
33         HTML.escape(value) %]
34      [% IF loop.count == 1 %]
35       </a>
36      [% END %][%# IF loop.count == 0 %]
37     </td>
38    [% END %][%# FOREACH attribute… %]
39    </tr>
40   [%- END %][%# FOREACH object… %]
41  </tbody>
42 </table>
43
44 </div>
45
46 [% IF SELF.supports_reordering %]
47 [% L.sortable_element("#object_list tbody", url=SELF.url_for(action="reorder", type=SELF.type), with="object_id") %]
48 [% END %]