2 [% USE HTML %]<div class="listtop">[% 'Step 2 of 3: Services' | $T8 %]</div>
4 <form name="Form" method="post" action="login.pl">
6 <input type="hidden" name="unit_type" value="service">
7 <input type="hidden" name="action" value="login">
8 <input type="hidden" name="action2" value="">
10 [% IF saved_message %]
11 <p>[% saved_message %]</p>
14 <div class="subsubheading">[% 'Add unit' | $T8 %]</div>
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 "smaller" one. A factor may not be less than 1. Therefore you may define "kg" with the base unit "g" and a factor of "1", but not the other way round.' | $T8 %]
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 %]
29 <th align="right">[% 'Unit' | $T8 %]</th>
30 <td><input name="new_name" size="20" maxlength="20"></td>
33 <th align="right">[% 'Base unit' | $T8 %]</th>
35 <select name="new_base_unit">
36 [% FOREACH row = NEW_BASE_UNIT_DDBOX %]<option [% row.selected %]>[% row.name %]</option>[% END %]
41 <th align="right">[% 'Factor' | $T8 %]</th>
42 <td><input name="new_factor"></td>
46 <input type="submit" onclick="document.Form.action2.value = 'add_unit'; document.Form.submit();" name="dummy" value="[% 'Add unit' | $T8 %]">
50 <div class="subsubheading">[% 'Assign new units' | $T8 %]</div>
53 [% 'The following units are unknown.' | $T8 %]
54 [% 'You have to chose which unit to save for each of them.' | $T8 %]
59 <th class="listheading">[% 'Current unit' | $T8 %]</th>
60 <th class="listheading">[% 'New unit' | $T8 %]</th>
63 [% FOREACH row = UNKNOWN_PART_UNITS %]
64 <tr class="listrow[% loop.count % 2 %]">
66 [% HTML.escape(row.name) %]
67 <input type="hidden" name="old_unit_[% loop.count %]" value="[% HTML.escape(row.name) %]">
70 <select name="new_unit_[% loop.count %]">
71 [% FOREACH row_new = row.NEW_UNITS %]<option>[% HTML.escape(row_new.name) %]</option>[% END %]
74 [% IF loop.last %]<input type="hidden" name="rowcount" value="[% loop.count %]">[% END %]
78 <input type="submit" onclick="document.Form.action2.value = 'assign_units'; document.Form.submit();" name="dummy" value="[% 'Assign units' | $T8 %]">