1 [% USE HTML %]<div class="listtop"><translate>Step 1 of 3: Parts</translate></div>
3 <form name="Form" method="post" action="login.pl">
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="dimension">
8 <input type="hidden" name="action" value="login">
9 <input type="hidden" name="action2" value="">
11 [% IF saved_message %]
12 <p>[% saved_message %]</p>
15 <div class="subsubheading"><translate>Add unit</translate></div>
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 "smaller" one. A
22 factor may not be less than 1. Therefore you may define
23 "kg" with the base unit "g" and a factor of
24 "1", but not the other way round.</translate>
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 %]
36 <th align="right"><translate>Unit</translate></th>
37 <td><input name="new_name" size="20" maxlength="20"></td>
40 <th align="right"><translate>Base unit</translate></th>
42 <select name="new_base_unit">
43 [% FOREACH row = NEW_BASE_UNIT_DDBOX %]<option [% row.selected %]>[% row.name %]</option>[% END %]
48 <th align="right"><translate>Factor</translate></th>
49 <td><input name="new_factor"></td>
53 <input type="submit" onclick="document.Form.action2.value = 'add_unit'; document.Form.submit();" name="dummy" value="<translate>Add unit</translate>">
57 <div class="subsubheading"><translate>Assign new units</translate></div>
60 <translate>The following units are unknown.</translate>
61 <translate>You have to chose which unit to save for each of them.</translate>
66 <th class="listheading"><translate>Current unit</translate></th>
67 <th class="listheading"><translate>New unit</translate></th>
70 [% FOREACH row = UNKNOWN_PART_UNITS %]
71 <tr class="listrow[% loop.count % 2 %]">
73 [% HTML.escape(row.name) %]
74 <input type="hidden" name="old_unit_[% loop.count %]" value="[% HTML.escape(row.name) %]">
77 <select name="new_unit_[% loop.count %]">
78 [% FOREACH row_new = row.NEW_UNITS %]<option>[% HTML.escape(row_new.name) %]</option>[% END %]
81 [% IF loop.last %]<input type="hidden" name="rowcount" value="[% loop.count %]">[% END %]
85 <input type="submit" onclick="document.Form.action2.value = 'assign_units'; document.Form.submit();" name="dummy" value="<translate>Assign units</translate>">