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="path" value="<TMPL_VAR path ESCAPE=HTML>">
6 <input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
7 <input type="hidden" name="hashed_password" value="<TMPL_VAR password ESCAPE=HTML>">
8 <input type="hidden" name="unit_type" value="service">
9 <input type="hidden" name="action" value="login">
10 <input type="hidden" name="action2" value="">
12 <TMPL_IF saved_message>
13 <p><TMPL_VAR saved_message></p>
16 <div class="subsubheading"><translate>Add unit</translate></div>
19 <translate>For each unit there's either no or exactly one base
20 unit. If you chose a base unit then you also have to chose a
21 factor. That way the new unit will be defined as a multiple of the
22 base unit. The base unit must be the "smaller" one. A
23 factor may not be less than 1. Therefore you may define
24 "kg" with the base unit "g" and a factor of
25 "1", but not the other way round.</translate>
29 <translate>The following units exist already:</translate>
30 <TMPL_LOOP NEW_BASE_UNIT_DDBOX><TMPL_IF name><TMPL_VAR name ESCAPE=HTML><TMPL_UNLESS __last__>; </TMPL_UNLESS></TMPL_IF></TMPL_LOOP>
37 <th align="right"><translate>Unit</translate></th>
38 <td><input name="new_name" size="20" maxlength="20"></td>
41 <th align="right"><translate>Base unit</translate></th>
43 <select name="new_base_unit">
44 <TMPL_LOOP NEW_BASE_UNIT_DDBOX><option <TMPL_VAR selected>><TMPL_VAR name></option></TMPL_LOOP>
49 <th align="right"><translate>Factor</translate></th>
50 <td><input name="new_factor"></td>
54 <input type="submit" onclick="document.Form.action2.value = 'add_unit'; document.Form.submit();" name="dummy" value="<translate>Add unit</translate>">
58 <div class="subsubheading"><translate>Assign new units</translate></div>
61 <translate>The following units are unknown.</translate>
62 <translate>You have to chose which unit to save for each of them.</translate>
67 <th class="listheading"><translate>Current unit</translate></th>
68 <th class="listheading"><translate>New unit</translate></th>
71 <TMPL_LOOP UNKNOWN_PART_UNITS>
72 <tr class="listrow<TMPL_IF __odd__>1<TMPL_ELSE>0</TMPL_IF>">
74 <TMPL_VAR name ESCAPE=HTML>
75 <input type="hidden" name="old_unit_<TMPL_VAR __counter__>" value="<TMPL_VAR name ESCAPE=HTML>">
78 <select name="new_unit_<TMPL_VAR __counter__>">
79 <TMPL_LOOP NEW_UNITS><option><TMPL_VAR name ESCAPE=HTML></option></TMPL_LOOP>
82 <TMPL_IF __last__><input type="hidden" name="rowcount" value="<TMPL_VAR __counter__>"></TMPL_IF>
86 <input type="submit" onclick="document.Form.action2.value = 'assign_units'; document.Form.submit();" name="dummy" value="<translate>Assign units</translate>">