]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/am/edit_bins.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / am / edit_bins.html
1 [%- USE HTML -%][%- USE T8 -%]
2
3 <h1>[% title %]</h1>
4 <div class="wrapper">
5 [% UNLESS BINS.size %]
6  <p>[% 'No bins have been added to this warehouse yet.' | $T8 %]</p>
7
8 [% ELSE %]
9
10  <p>
11   [%- 'Bins that have been used in the past cannot be deleted anymore. For these bins there\'s no checkbox in the &quot;Delete&quot; column.' | $T8 %]
12  </p>
13
14  <form method="post" action="am.pl" id="form">
15
16   <input type="hidden" name="warehouse_id" value="[% HTML.escape(id) %]">
17
18   <input type="hidden" name="type" value="bin">
19   <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
20
21   <!-- UPDATE: dieses unlustige Konstrukt mit einem echten Mehrspalter versehen, und das ab einer bestimmten Anzahl Plaetze-->
22   <table class="tbl-list width-moderate">
23     <thead>
24    <tr>
25     <th>[% 'Delete' | $T8 %]</th><th>[% 'Description' | $T8 %]</th>
26     <!-- <th>[% #'Delete' | $T8 %]</th><th>[% #'Description' | $T8 %]</th> -->
27    </tr>
28    </thead>
29    <tbody>
30    [%- SET row_odd = '1' %]
31    [%- USE bin_it = Iterator(BINS) %]
32    [%- FOREACH bin = bin_it %]
33    [%- #IF row_odd %]
34    <tr>
35     [%- #END %]
36
37     <td class="center">[% IF bin.in_use %]&nbsp;[% ELSE %]<input type="checkbox" name="delete_[% bin_it.count %]" value="1">[% END %]</td>
38     <td>
39      <input type="hidden" name="id_[% bin_it.count %]" value="[% HTML.escape(bin.id) %]">
40      <input name="description_[% bin_it.count %]" value="[% HTML.escape(bin.description) %]" type="text" class="wi-wide">
41     </td>
42
43     [%- #SET end_tr = '0' %]
44     [%- #UNLESS row_odd %][%- #SET end_tr = '1' %][%- #END %]
45     [%- #IF bin_it.last %][%- #SET end_tr = '1' %][%- #END %]
46     [%- #IF end_tr %]
47    </tr>
48    [%- #END %]
49
50    [%- #IF row_odd %][% #SET row_odd = '0' %][% #ELSE %][% #SET row_odd = '1' %][% #END %]
51    [%- END %]
52    </tbody>
53   </table>
54
55   <input type="hidden" name="rowcount" value="[% BINS.size %]">
56  </form>
57 </div>
58 [% END %]