Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a33e4de3

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

  • ID a33e4de355969ba7cdf62b5a78fe29be21252101
  • Vorgänger 6ee34d21
  • Nachfolger b56f90b2

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

Unterschiede anzeigen:

templates/webpages/am/edit_bins.html
1 1
[%- USE HTML -%][%- USE T8 -%]
2 2

  
3 3
<h1>[% title %]</h1>
4

  
4
<div class="wrapper">
5 5
[% UNLESS BINS.size %]
6 6
 <p>[% 'No bins have been added to this warehouse yet.' | $T8 %]</p>
7 7

  
......
18 18
  <input type="hidden" name="type" value="bin">
19 19
  <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
20 20

  
21
  <table border="0">
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>
22 24
   <tr>
23
    <th class="listheading">[% 'Delete' | $T8 %]</th><th class="listheading">[% 'Description' | $T8 %]</th>
24
    <th class="listheading">[% 'Delete' | $T8 %]</th><th class="listheading">[% 'Description' | $T8 %]</th>
25
    <th>[% 'Delete' | $T8 %]</th><th>[% 'Description' | $T8 %]</th>
26
    <!-- <th>[% #'Delete' | $T8 %]</th><th>[% #'Description' | $T8 %]</th> -->
25 27
   </tr>
28
   </thead>
29
   <tbody>
26 30
   [%- SET row_odd = '1' %]
27 31
   [%- USE bin_it = Iterator(BINS) %]
28 32
   [%- FOREACH bin = bin_it %]
29
   [%- IF row_odd %]
33
   [%- #IF row_odd %]
30 34
   <tr>
31
    [%- END %]
35
    [%- #END %]
32 36

  
33
    <td>[% IF bin.in_use %]&nbsp;[% ELSE %]<input type="checkbox" name="delete_[% bin_it.count %]" value="1">[% END %]</td>
37
    <td class="center">[% IF bin.in_use %]&nbsp;[% ELSE %]<input type="checkbox" name="delete_[% bin_it.count %]" value="1">[% END %]</td>
34 38
    <td>
35 39
     <input type="hidden" name="id_[% bin_it.count %]" value="[% HTML.escape(bin.id) %]">
36
     <input name="description_[% bin_it.count %]" value="[% HTML.escape(bin.description) %]">
40
     <input name="description_[% bin_it.count %]" value="[% HTML.escape(bin.description) %]" type="text" class="wi-wide">
37 41
    </td>
38 42

  
39
    [%- SET end_tr = '0' %]
40
    [%- UNLESS row_odd %][%- SET end_tr = '1' %][%- END %]
41
    [%- IF bin_it.last %][%- SET end_tr = '1' %][%- END %]
42
    [%- IF end_tr %]
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 %]
43 47
   </tr>
44
   [%- END %]
48
   [%- #END %]
45 49

  
46
   [%- IF row_odd %][% SET row_odd = '0' %][% ELSE %][% SET row_odd = '1' %][% END %]
50
   [%- #IF row_odd %][% #SET row_odd = '0' %][% #ELSE %][% #SET row_odd = '1' %][% #END %]
47 51
   [%- END %]
52
   </tbody>
48 53
  </table>
49 54

  
50 55
  <input type="hidden" name="rowcount" value="[% BINS.size %]">
51 56
 </form>
52

  
57
</div>
53 58
[% END %]

Auch abrufbar als: Unified diff