62371467307f6e239b27af23b5673d7d7a8c6c83
[kivitendo-erp.git] / templates / webpages / dbupgrade / units_services_master.html
1 [% USE HTML %]<div class="listtop"><translate>Step 2 of 3: Services</translate></div>
2
3 <form name="Form" method="post" action="login.pl">
4
5  <input type="hidden" name="login" value="[% HTML.escape(login) %]">
6  <input type="hidden" name="hashed_password" value="[% HTML.escape(password) %]">
7  <input type="hidden" name="unit_type" value="service">
8  <input type="hidden" name="action" value="login">
9  <input type="hidden" name="action2" value="">
10
11  [% IF saved_message %]
12   <p>[% saved_message %]</p>
13  [% END %]
14
15  <div class="subsubheading"><translate>Add unit</translate></div>
16
17  <p>
18   <translate>For each unit there's either no or exactly one base
19    unit. If you chose a base unit then you also have to chose a
20    factor. That way the new unit will be defined as a multiple of the
21    base unit. The base unit must be the &quot;smaller&quot; one. A
22    factor may not be less than 1. Therefore you may define
23    &quot;kg&quot; with the base unit &quot;g&quot; and a factor of
24    &quot;1&quot;, but not the other way round.</translate>
25  </p>
26
27  <p>
28   <translate>The following units exist already:</translate>
29   [% FOREACH row = NEW_BASE_UNIT_DDBOX %][% IF row.name %][% HTML.escape(row.name) %][% UNLESS loop.last %]; [% END %][% END %][% END %]
30  </p>
31
32  <hr>
33
34  <table>
35   <tr>
36    <th align="right"><translate>Unit</translate></th>
37    <td><input name="new_name" size="20" maxlength="20"></td>
38   </tr>
39   <tr>
40    <th align="right"><translate>Base unit</translate></th>
41    <td>
42     <select name="new_base_unit">
43      [% FOREACH row = NEW_BASE_UNIT_DDBOX %]<option [% row.selected %]>[% row.name %]</option>[% END %]
44     </select>
45    </td>
46   </tr>
47   <tr>
48    <th align="right"><translate>Factor</translate></th>
49    <td><input name="new_factor"></td>
50   </tr>
51  </table>
52
53  <input type="submit" onclick="document.Form.action2.value = 'add_unit'; document.Form.submit();" name="dummy" value="<translate>Add unit</translate>">
54
55  <hr>
56
57  <div class="subsubheading"><translate>Assign new units</translate></div>
58
59  <p>
60   <translate>The following units are unknown.</translate>
61   <translate>You have to chose which unit to save for each of them.</translate>
62  </p>
63
64  <table>
65   <tr>
66    <th class="listheading"><translate>Current unit</translate></th>
67    <th class="listheading"><translate>New unit</translate></th>
68   </tr>
69
70   [% FOREACH row = UNKNOWN_PART_UNITS %]
71    <tr class="listrow[% loop.count % 2 %]">
72     <td>
73      [% HTML.escape(row.name) %]
74      <input type="hidden" name="old_unit_[% loop.count %]" value="[% HTML.escape(row.name) %]">
75     </td>
76     <td>
77      <select name="new_unit_[% loop.count %]">
78       [% FOREACH row_new = row.NEW_UNITS %]<option>[% HTML.escape(row_new.name) %]</option>[% END %]
79      </select>
80     </td>
81     [% IF loop.last %]<input type="hidden" name="rowcount" value="[% loop.count %]">[% END %]
82   [% END %]
83  </table>
84
85  <input type="submit" onclick="document.Form.action2.value = 'assign_units'; document.Form.submit();" name="dummy" value="<translate>Assign units</translate>">
86
87 </form>
88