Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5efcb494

Von Moritz Bunkus vor etwa 7 Jahren hinzugefügt

  • ID 5efcb49405b1caa362cd214b52c9314b66d569da
  • Vorgänger 6e6e6849
  • Nachfolger 036d1ca4

ActionBar: Verwendung bei »System« → »Lager«

Unterschiede anzeigen:

templates/webpages/am/edit_warehouse.html
6 6
  <p>[% saved_message %]</p>
7 7
 [% END %]
8 8

  
9
 <form method="post" action="am.pl">
9
 <form method="post" action="am.pl" id="form">
10 10

  
11 11
  <input type="hidden" name="id" value="[% HTML.escape(id) %]">
12 12

  
......
37 37
    <td><input name="prefix" value="[% 'Bin' | $T8 %]"></td>
38 38
   </tr>
39 39
  </table>
40

  
41
  <p>
42
   <input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]">
43
   [%- IF id %][%- UNLESS in_use %]
44
   <input type="submit" class="submit" name="action" value="[% 'Delete' | $T8 %]">
45
   [%- END %][%- END %]
46
  </p>
47

  
48 40
 </form>
49

  
50
 [% IF id %]
51

  
52
 <hr height="3">
53

  
54
 <h2>[% 'Edit Bins' | $T8 %]</h2>
55

  
56
 [% UNLESS BINS.size %]
57
 <p>[% 'No bins have been added to this warehouse yet.' | $T8 %]</p>
58

  
59
 [% ELSE %]
60

  
61
 <p>
62
  [%- '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 %]
63
 </p>
64

  
65
 <form method="post" action="am.pl">
66

  
67
  <input type="hidden" name="warehouse_id" value="[% HTML.escape(id) %]">
68

  
69
  <input type="hidden" name="type" value="bin">
70
  <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
71

  
72
  <table border="0">
73
   <tr>
74
    <th class="listheading">[% 'Delete' | $T8 %]</th><th class="listheading">[% 'Description' | $T8 %]</th>
75
    <th class="listheading">[% 'Delete' | $T8 %]</th><th class="listheading">[% 'Description' | $T8 %]</th>
76
   </tr>
77
   [%- SET row_odd = '1' %]
78
   [%- USE bin_it = Iterator(BINS) %]
79
   [%- FOREACH bin = bin_it %]
80
   [%- IF row_odd %]
81
   <tr>
82
    [%- END %]
83

  
84
    <td>[% IF bin.in_use %]&nbsp;[% ELSE %]<input type="checkbox" name="delete_[% bin_it.count %]" value="1">[% END %]</td>
85
    <td>
86
     <input type="hidden" name="id_[% bin_it.count %]" value="[% HTML.escape(bin.id) %]">
87
     <input name="description_[% bin_it.count %]" value="[% HTML.escape(bin.description) %]">
88
    </td>
89

  
90
    [%- SET end_tr = '0' %]
91
    [%- UNLESS row_odd %][%- SET end_tr = '1' %][%- END %]
92
    [%- IF bin_it.last %][%- SET end_tr = '1' %][%- END %]
93
    [%- IF end_tr %]
94
   </tr>
95
   [%- END %]
96

  
97
   [%- IF row_odd %][% SET row_odd = '0' %][% ELSE %][% SET row_odd = '1' %][% END %]
98
   [%- END %]
99
  </table>
100

  
101
  <input type="hidden" name="rowcount" value="[% BINS.size %]">
102

  
103
  <p><input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]"></p>
104
 </form>
105

  
106
 [% END %]
107

  
108
 [% END %]

Auch abrufbar als: Unified diff