1 [% USE HTML %]<div class="listtop"><translate>Step 2 of 3: Services</translate></div>
3 <form name="Form" method="post" action="login.pl">
5 <input type="hidden" name="unit_type" value="service">
6 <input type="hidden" name="action" value="login">
7 <input type="hidden" name="action2" value="">
10 <p>[% saved_message %]</p>
13 <div class="subsubheading"><translate>Add unit</translate></div>
16 <translate>For each unit there's either no or exactly one base
17 unit. If you chose a base unit then you also have to chose a
18 factor. That way the new unit will be defined as a multiple of the
19 base unit. The base unit must be the "smaller" one. A
20 factor may not be less than 1. Therefore you may define
21 "kg" with the base unit "g" and a factor of
22 "1", but not the other way round.</translate>
26 <translate>The following units exist already:</translate>
27 [% FOREACH row = NEW_BASE_UNIT_DDBOX %][% IF row.name %][% HTML.escape(row.name) %][% UNLESS loop.last %]; [% END %][% END %][% END %]
34 <th align="right"><translate>Unit</translate></th>
35 <td><input name="new_name" size="20" maxlength="20"></td>
38 <th align="right"><translate>Base unit</translate></th>
40 <select name="new_base_unit">
41 [% FOREACH row = NEW_BASE_UNIT_DDBOX %]<option [% row.selected %]>[% row.name %]</option>[% END %]
46 <th align="right"><translate>Factor</translate></th>
47 <td><input name="new_factor"></td>
51 <input type="submit" onclick="document.Form.action2.value = 'add_unit'; document.Form.submit();" name="dummy" value="<translate>Add unit</translate>">
55 <div class="subsubheading"><translate>Assign new units</translate></div>
58 <translate>The following units are unknown.</translate>
59 <translate>You have to chose which unit to save for each of them.</translate>
64 <th class="listheading"><translate>Current unit</translate></th>
65 <th class="listheading"><translate>New unit</translate></th>
68 [% FOREACH row = UNKNOWN_PART_UNITS %]
69 <tr class="listrow[% loop.count % 2 %]">
71 [% HTML.escape(row.name) %]
72 <input type="hidden" name="old_unit_[% loop.count %]" value="[% HTML.escape(row.name) %]">
75 <select name="new_unit_[% loop.count %]">
76 [% FOREACH row_new = row.NEW_UNITS %]<option>[% HTML.escape(row_new.name) %]</option>[% END %]
79 [% IF loop.last %]<input type="hidden" name="rowcount" value="[% loop.count %]">[% END %]
83 <input type="submit" onclick="document.Form.action2.value = 'assign_units'; document.Form.submit();" name="dummy" value="<translate>Assign units</translate>">