4   <p>[% saved_message %]</p>
 
   9  <form method="post" action="[% HTML.escape(script) %]">
 
  11  <input type="hidden" name="type" value="unit">
 
  15    <th class="listtop" colspan="2">[% title %]</th>
 
  21   Einheiten haben entweder keine oder genau eine Basiseinheit, von der
 
  22   sie ein Vielfaches sind. Wenn Sie eine Basiseinheit auswählen,
 
  23   dann müssen Sie auch einen Faktor eingeben. Sie müssen
 
  24   Einheiten als ein Vielfaches einer kleineren Einheit eingeben. So
 
  25   ist die Definition von "kg" mit der Basiseinheit
 
  26   "g" und dem Faktor 1000 zulässig, die Definition von
 
  27   "g" mit der Basiseinheit "kg" und dem Faktor
 
  28   "0,001" hingegen nicht.
 
  34   <tr><th class="listtop">Add unit</th></tr>
 
  39    <th align="right">Unit</th>
 
  40    <td><input name="new_name" size="20" maxlength="20"></td>
 
  43    <th align="right">Base unit</th>
 
  45     <select name="new_base_unit">
 
  46      [% FOREACH row = NEW_BASE_UNIT_DDBOX %]<option [% row.selected %]>[% row.name %]</option>[% END %]
 
  51    <th align="right">Factor</th>
 
  52    <td><input name="new_factor"></td>
 
  55   [% FOREACH language = LANGUAGES %]
 
  57     <th align="right">[% language.description %]</th>
 
  58     <td><input name="new_localized_[% language.id %]" size="20" maxlength="20"></td>
 
  59     <th align="right">Plural</th>
 
  60     <td><input name="new_localized_plural_[% language.id %]" size="20" maxlength="20"></td>
 
  65  <input type="submit" class="submit" name="action" value="Add">
 
  70   <tr><th class="listtop">Edit units</th></tr>
 
  74   Units that have already been used (e.g. for parts and services or in invoices or warehouse transactions) cannot be changed.
 
  78   Units marked for deletion will be deleted upon saving.
 
  82   You can declare different translations for singular and plural for each unit (e.g. "day" and "days).
 
  87    <th class="listheading" width="32" align="center" valign="center"><img alt="up" src="image/up.png"><img alt="down" src="image/down.png"></th>
 
  88    <th class="listheading">Delete</th>
 
  89    <th class="listheading">Unit</th>
 
  90    <th class="listheading">Base unit</th>
 
  91    <th class="listheading">Factor</th>
 
  92    [% FOREACH language = LANGUAGES %]
 
  93     <th class="listheading">[% language.description %]</th>
 
  97   [% FOREACH row = UNITS %]
 
  99     <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" 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" src="image/down.png" border="0"></a>[% END %]</td>
 
 102       <input type="hidden" name="unchangeable_[% loop.count %]" value="1">
 
 103       <input type="hidden" name="old_name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
 
 106      <td>[% HTML.escape(row.name) %]</td>
 
 107      <td>[% IF row.base_unit %][% HTML.escape(row.base_unit) %][% ELSE %]---[% END %]</td>
 
 108      <td>[% IF row.base_unit %][% HTML.escape(row.factor) %][% ELSE %]---[% END %]</td>
 
 112      <td align="center"><input type="checkbox" name="delete_[% loop.count %]"></td>
 
 114       <input type="hidden" name="old_name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
 
 115       <input name="name_[% loop.count %]" size="10" maxlength="20" value="[% HTML.escape(row.name) %]">
 
 118       <select name="base_unit_[% loop.count %]">
 
 119        [% FOREACH option = row.BASE_UNIT_DDBOX %]<option [% option.selected %]>[% HTML.escape(option.name) %]</option>[% END %]
 
 122      <td><input name="factor_[% loop.count %]" size="8" value="[% row.factor %]"></td>
 
 125     [% FOREACH language = row.UNITLANGUAGES %]
 
 128       <input name="localized_[% language.idx %]_[% language.language_id %]" value="[% HTML.escape(language.localized) %]" size="6" maxlength="20">
 
 130       <input name="localized_plural_[% language.idx %]_[% language.language_id %]" value="[% HTML.escape(language.localized_plural) %]" size="6" maxlength="20">
 
 135    [% IF loop.last %]<input type="hidden" name="rowcount" value="[% loop.count %]">[% END %]
 
 139  <input type="submit" class="submit" name="action" value="Save">