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