Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 867b69c4

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID 867b69c47468635e46ed40f34d8907a97258fa7f
  • Vorgänger 5b8ff438
  • Nachfolger 3fb30e00

Neues kivitendo Design Aenderungen in templates/webpages/dbupgrade/..

Unterschiede anzeigen:

templates/webpages/dbupgrade/default_bin_parts.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- USE LxERP %]
4
[%- USE JavaScript %]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4
[% USE JavaScript %]
5 5
<h1>[% '<b>Default Bins Migration !READ CAREFULLY!</b>' | $T8 %]</h1>
6 6

  
7 7
 <script type="text/javascript" src="js/common.js"></script>
8 8
 <script type="text/javascript">
9 9
  <!--
10 10
     warehouses = new Array();
11
     [%- USE WAREHOUSES_it = Iterator(WAREHOUSES) %][%- FOREACH warehouse = WAREHOUSES_it %]
11
     [% USE WAREHOUSES_it = Iterator(WAREHOUSES) %][% FOREACH warehouse = WAREHOUSES_it %]
12 12
      warehouses[[% WAREHOUSES_it.count - 1 %]] = new Array();
13 13
      warehouses[[% WAREHOUSES_it.count - 1 %]]['id'] = [% warehouse.id %];
14 14
      warehouses[[% WAREHOUSES_it.count - 1 %]]['bins'] = new Array();
......
92 92

  
93 93

  
94 94
<form name="Form" method="post" action="login.pl">
95
<input type="hidden" name="action" value="login">
96
<input type="hidden" name="continued" value="1">
95
  <input type="hidden" name="action" value="login">
96
  <input type="hidden" name="continued" value="1">
97 97

  
98

  
99

  
100
<p>[% 'There are Bins defined in your Inventory.' | $T8 %]</p>
101
<p>[% 'The Bins in Inventory were only a information text field.' | $T8 %]</p>
102
<p>[% 'This has been changed in this version, therefore please change the "old" bins to some real warehouse bins.' | $T8 %]</p>
103
<p>[% 'If your old bins match exactly Bins in the Warehouse CLICK on <b>AUTOMATICALLY MATCH BINS</b>.' | $T8 %]</p>
104
<p>[% 'Otherwise you can simply check create warehouse and bins and define a name for the warehouse (Bins will be created automatically) and then continue'  | $T8 %]</p>
105
<p>[% 'Empty selection for warehouse will not be added, even if the old bin is still visible (use back and forth to edit again).'  | $T8 %]</p>
98
  <p>[% 'There are Bins defined in your Inventory.' | $T8 %]</p>
99
  <p>[% 'The Bins in Inventory were only a information text field.' | $T8 %]</p>
100
  <p>[% 'This has been changed in this version, therefore please change the "old" bins to some real warehouse bins.' | $T8 %]</p>
101
  <p>[% 'If your old bins match exactly Bins in the Warehouse CLICK on <b>AUTOMATICALLY MATCH BINS</b>.' | $T8 %]</p>
102
  <p>[% 'Otherwise you can simply check create warehouse and bins and define a name for the warehouse (Bins will be created automatically) and then continue'  | $T8 %]</p>
103
  <p>[% 'Empty selection for warehouse will not be added, even if the old bin is still visible (use back and forth to edit again).'  | $T8 %]</p>
106 104

  
107 105
<table>
106
<thead>
108 107
  <tr>
109
    <th class="listheading">[% 'Partnumber' | $T8 %]</th>
110
    <th class="listheading">[% 'Description' | $T8 %]</th>
111
    <th class="listheading">[% 'Bin' | $T8 %]</th>
112
    <th class="listheading">[% 'Default Warehouse' | $T8 %]</th>
113
    <th class="listheading">[% 'Default Bin' | $T8 %]</th>
114
  </tr>
115

  
116
  [% SET row_odd = '1' %][% FOREACH row = PARTS %]
117
  <tr class="listrow[% IF row_odd %]1[% SET row_odd = '0' %][% ELSE %]0[% SET row_odd = '1' %][% END %]">
118
   <td align="left"> [% HTML.escape(row.partnumber) %]</a></td>
119
    <td align="left"> [% HTML.escape(row.description) %]</a></td>
120
    <td align="right">[% HTML.escape(row.bin) %]
121
    <input type="hidden" id="bin_[% loop.count %]" name="bin_[% loop.count %]" value="[% HTML.escape(row.bin) %]">
122
    </td>
123
    <td>
124
    <input type="hidden" name='partid_[% loop.count %]' value='[% HTML.escape(row.id) %]'>
125
     <select id="warehouse_id_[% loop.count %]" name="warehouse_id_[% loop.count %]" onchange="warehouse_selected(warehouses[this.selectedIndex]['id'], 0, [% loop.count %])">
126
             [%- FOREACH warehouse = WAREHOUSES %]
127
               <option value="[% HTML.escape(warehouse.id) %]"[% IF warehouse_id  == warehouse.id %] selected[% END %]>[% warehouse.description %]</option>
128
             [%- END %]
129
                <option value=""  [% IF warehouse_id  == 0 %] selected[% END %] ></option>
130
     </select>
131
    </td>
132
    <td><select id="bin_id_[% loop.count %]" name="bin_id_[% loop.count %]"></select></td>
108
    <th>[% 'Partnumber' | $T8 %]</th>
109
    <th>[% 'Description' | $T8 %]</th>
110
    <th>[% 'Bin' | $T8 %]</th>
111
    <th>[% 'Default Warehouse' | $T8 %]</th>
112
    <th>[% 'Default Bin' | $T8 %]</th>
133 113
  </tr>
134
  [% SET rowcount = loop.count %]
114
</thead>
115

  
116
  [% SET row_odd = '1' %]
117
  [% FOREACH row = PARTS %]
118
    <tr class="listrow[% IF row_odd %]1[% SET row_odd = '0' %][% ELSE %]0[% SET row_odd = '1' %][% END %]">
119
      <td> [% HTML.escape(row.partnumber) %]</a></td>
120
      <td> [% HTML.escape(row.description) %]</a></td>
121
      <td>
122
        [% HTML.escape(row.bin) %]
123
        <input type="hidden" id="bin_[% loop.count %]" name="bin_[% loop.count %]" value="[% HTML.escape(row.bin) %]">
124
      </td>
125
      <td>
126
        <input type="hidden" name='partid_[% loop.count %]' value='[% HTML.escape(row.id) %]'>
127
        <select id="warehouse_id_[% loop.count %]" name="warehouse_id_[% loop.count %]" onchange="warehouse_selected(warehouses[this.selectedIndex]['id'], 0, [% loop.count %])">
128
        [% FOREACH warehouse = WAREHOUSES %]
129
          <option value="[% HTML.escape(warehouse.id) %]"[% IF warehouse_id==warehouse.id %] selected[% END %]>[% warehouse.description %]</option>
130
        [% END %]
131
        <option value=""[% IF warehouse_id==0 %] selected[% END %]></option>
132
        </select>
133
      </td>
134
      <td><select id="bin_id_[% loop.count %]" name="bin_id_[% loop.count %]"></select></td>
135
    </tr>
136
    [% SET rowcount = loop.count %]
135 137
  [% END %]
136
  <input type="hidden" name="rowcount" value="[% rowcount %]">
137
  <tr><td colspan="5"><hr/></td></tr>
138
  <tr><td colspan="5">
139
         <input type="checkbox" name="create_new_bins"> [% '<b>Automatically create new bins</b> in the following warehouse if not selected in the list above' | $T8 %]
140
          <select id="warehouse_id_default" name="warehouse_id_default">
141
             [%- FOREACH warehouse = WAREHOUSES %]
142
               <option value="[% HTML.escape(warehouse.id) %]"[% IF warehouse_id  == warehouse.id %] selected[% END %]>[% warehouse.description %]</option>
143
             [%- END %]
144
                <option value=""  [% IF warehouse_id  == 0 %] selected[% END %] ></option>
145
         </select>
138
</table>
139
<input type="hidden" name="rowcount" value="[% rowcount %]">
140

  
141
<table class="tbl-horizontal">
142
  <caption>[% '' | $T8 %]</caption>
143
  <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
144
  <tbody>
145
    <tr>
146
      <th>[% '<b>Automatically create new bins</b> in the following warehouse if not selected in the list above' | $T8 %]</th>
147
      <td><<input type="checkbox" name="create_new_bins">/td>
148
    </tr>
149
    <tr>
150
      <th>[% '<b>Automatically create new bins</b> in the following warehouse if not selected in the list above' | $T8 %]</th>
151
      <td>
152
        <select id="warehouse_id_default" name="warehouse_id_default">
153
        [% FOREACH warehouse = WAREHOUSES %]
154
          <option value="[% HTML.escape(warehouse.id) %]"[% IF warehouse_id  == warehouse.id %] selected[% END %]>[% warehouse.description %]</option>
155
        [% END %]
156
        <option value=""[% IF warehouse_id  == 0 %] selected[% END %] ></option>
157
        </select>
146 158
      </td>
147
  </tr>
148

  
149
  <tr><td colspan="5"><hr/></td></tr>
150
 <tr><td><input type="button" class="submit" onclick="history.back()" value="[% 'Back' | $T8 %]"> </td><td colspan="3" align="center"><b><input style="background-color:#FFEE66" type="button" value="[% 'AUTOMATICALLY MATCH BINS' | $T8 %]"  onclick="bin_match([% rowcount %])"></b> </td><td><input type="submit" value="[% 'Continue' | $T8 %]"></td></tr>
159
    </tr>
160
  </tbody>
151 161
</table>
162

  
163
<div class="buttons">
164
  <input type="button" onclick="history.back()" value="[% 'Back' | $T8 %]">
165
  <input style="background-color:#FFEE66" type="button" value="[% 'AUTOMATICALLY MATCH BINS' | $T8 %]" onclick="bin_match([% rowcount %])">
166
  <input type="submit" value="[% 'Continue' | $T8 %]">
167
</div>
168

  
152 169
</form>

Auch abrufbar als: Unified diff