5 <p>[% saved_message %]</p>
10 <form method="post" action="[% HTML.escape(script) %]">
12 <input type="hidden" name="type" value="unit">
16 <th class="listtop" colspan="2">[% title %]</th>
22 Einheiten haben entweder keine oder genau eine Basiseinheit, von der sie ein Vielfaches sind. Wenn Sie eine Basiseinheit auswählen, dann müssen Sie auch einen Faktor eingeben. Sie müssen Einheiten als ein Vielfaches einer kleineren Einheit eingeben. So ist die Definition von "kg" mit der Basiseinheit "g" und dem Faktor 1000 zulässig, die Definition von "g" mit der Basiseinheit "kg" und dem Faktor "0,001" hingegen nicht.
28 <tr><th class="listtop">[% 'Add unit' | $T8 %]</th></tr>
33 <th align="right">[% 'Unit' | $T8 %]</th>
34 <td><input name="new_name" size="20" maxlength="20"></td>
37 <th align="right">[% 'Base unit' | $T8 %]</th>
39 <select name="new_base_unit">
40 [% FOREACH row = NEW_BASE_UNIT_DDBOX %]<option [% row.selected %]>[% row.name %]</option>[% END %]
45 <th align="right">[% 'Factor' | $T8 %]</th>
46 <td><input name="new_factor"></td>
49 [% FOREACH language = LANGUAGES %]
51 <th align="right">[% language.description %]</th>
52 <td><input name="new_localized_[% language.id %]" size="20" maxlength="20"></td>
53 <th align="right">[% 'Plural' | $T8 %]</th>
54 <td><input name="new_localized_plural_[% language.id %]" size="20" maxlength="20"></td>
59 <input type="submit" class="submit" name="action" value="[% 'Add' | $T8 %]">
64 <tr><th class="listtop">[% 'Edit units' | $T8 %]</th></tr>
68 [% 'Units that have already been used (e.g. for parts and services or in invoices or warehouse transactions) cannot be changed.' | $T8 %]
72 [% 'Units marked for deletion will be deleted upon saving.' | $T8 %]
76 [% 'You can declare different translations for singular and plural for each unit (e.g. "day" and "days).' | $T8 %]
81 <th class="listheading" width="32" align="center" valign="center"><img alt="[% 'up' | $T8 %]" src="image/up.png"><img alt="[% 'down' | $T8 %]" src="image/down.png"></th>
82 <th class="listheading">[% 'Delete' | $T8 %]</th>
83 <th class="listheading">[% 'Unit' | $T8 %]</th>
84 <th class="listheading">[% 'Base unit' | $T8 %]</th>
85 <th class="listheading">[% 'Factor' | $T8 %]</th>
86 [% FOREACH language = LANGUAGES %]
87 <th class="listheading">[% language.description %]</th>
91 [% FOREACH row = UNITS %]
93 <td width="32" align="center" valign="center">[% IF loop.first %]<img src="image/transparent16x16.gif">[% ELSE %]<a href="[% updownlink %]&dir=up&name=[% HTML.url(row.name) %]"><img alt="[% 'up' | $T8 %]" src="image/up.png" border="0"></a>[% END %][% IF loop.last %]<img src="image/transparent16x16.gif">[% ELSE %]<a href="[% updownlink %]&dir=down&name=[% HTML.url(row.name) %]"><img alt="[% 'down' | $T8 %]" src="image/down.png" border="0"></a>[% END %]</td>
96 <input type="hidden" name="unchangeable_[% loop.count %]" value="1">
97 <input type="hidden" name="old_name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
100 <td>[% HTML.escape(row.name) %]</td>
101 <td>[% IF row.base_unit %][% HTML.escape(row.base_unit) %][% ELSE %]---[% END %]</td>
102 <td>[% IF row.base_unit %][% HTML.escape(row.factor) %][% ELSE %]---[% END %]</td>
106 <td align="center"><input type="checkbox" name="delete_[% loop.count %]"></td>
108 <input type="hidden" name="old_name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
109 <input name="name_[% loop.count %]" size="10" maxlength="20" value="[% HTML.escape(row.name) %]">
112 <select name="base_unit_[% loop.count %]">
113 [% FOREACH option = row.BASE_UNIT_DDBOX %]<option [% option.selected %]>[% HTML.escape(option.name) %]</option>[% END %]
116 <td><input name="factor_[% loop.count %]" size="8" value="[% row.factor %]"></td>
119 [% FOREACH language = row.UNITLANGUAGES %]
121 [% 'singular first char' | $T8 %]:
122 <input name="localized_[% language.idx %]_[% language.language_id %]" value="[% HTML.escape(language.localized) %]" size="6" maxlength="20">
123 [% 'plural first char' | $T8 %]:
124 <input name="localized_plural_[% language.idx %]_[% language.language_id %]" value="[% HTML.escape(language.localized_plural) %]" size="6" maxlength="20">
129 [% IF loop.last %]<input type="hidden" name="rowcount" value="[% loop.count %]">[% END %]
133 <input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]">