1 <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="login" value="<TMPL_VAR login ESCAPE=HTML>">
6 <input type="hidden" name="hashed_password" value="<TMPL_VAR password ESCAPE=HTML>">
7 <input type="hidden" name="unit_type" value="service">
8 <input type="hidden" name="action" value="login">
9 <input type="hidden" name="action2" value="">
11 <TMPL_IF saved_message>
12 <p><TMPL_VAR 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 <TMPL_LOOP NEW_BASE_UNIT_DDBOX><TMPL_IF name><TMPL_VAR name ESCAPE=HTML><TMPL_UNLESS __last__>; </TMPL_UNLESS></TMPL_IF></TMPL_LOOP>
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 <TMPL_LOOP NEW_BASE_UNIT_DDBOX><option <TMPL_VAR selected>><TMPL_VAR name></option></TMPL_LOOP>
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 <TMPL_LOOP UNKNOWN_PART_UNITS>
71 <tr class="listrow<TMPL_IF __odd__>1<TMPL_ELSE>0</TMPL_IF>">
73 <TMPL_VAR name ESCAPE=HTML>
74 <input type="hidden" name="old_unit_<TMPL_VAR __counter__>" value="<TMPL_VAR name ESCAPE=HTML>">
77 <select name="new_unit_<TMPL_VAR __counter__>">
78 <TMPL_LOOP NEW_UNITS><option><TMPL_VAR name ESCAPE=HTML></option></TMPL_LOOP>
81 <TMPL_IF __last__><input type="hidden" name="rowcount" value="<TMPL_VAR __counter__>"></TMPL_IF>
85 <input type="submit" onclick="document.Form.action2.value = 'assign_units'; document.Form.submit();" name="dummy" value="<translate>Assign units</translate>">