Templates werden nicht mehr übersetzt gespeichert.
[kivitendo-erp.git] / templates / webpages / am / edit_units_master.html
1 [%- USE T8 %]
2 [% USE HTML %]<body>
3
4  [% IF saved_message %]
5   <p>[% saved_message %]</p>
6
7   <hr>
8  [% END %]
9
10  <form method="post" action="[% HTML.escape(script) %]">
11
12  <input type="hidden" name="type" value="unit">
13
14  <table width="100%">
15   <tr>
16    <th class="listtop" colspan="2">[% title %]</th>
17   </tr>
18   <tr height="5"></tr>
19  </table>
20
21  <p>
22   Einheiten haben entweder keine oder genau eine Basiseinheit, von der sie ein Vielfaches sind. Wenn Sie eine Basiseinheit ausw&auml;hlen, dann m&uuml;ssen Sie auch einen Faktor eingeben. Sie m&uuml;ssen Einheiten als ein Vielfaches einer kleineren Einheit eingeben. So ist die Definition von &quot;kg&quot; mit der Basiseinheit &quot;g&quot; und dem Faktor 1000 zul&auml;ssig, die Definition von &quot;g&quot; mit der Basiseinheit &quot;kg&quot; und dem Faktor &quot;0,001&quot; hingegen nicht.
23  </p>
24
25  <hr>
26
27  <table width="100%">
28   <tr><th class="listtop">[% 'Add unit' | $T8 %]</th></tr>
29  </table>
30
31  <table>
32   <tr>
33    <th align="right">[% 'Unit' | $T8 %]</th>
34    <td><input name="new_name" size="20" maxlength="20"></td>
35   </tr>
36   <tr>
37    <th align="right">[% 'Base unit' | $T8 %]</th>
38    <td>
39     <select name="new_base_unit">
40      [% FOREACH row = NEW_BASE_UNIT_DDBOX %]<option [% row.selected %]>[% row.name %]</option>[% END %]
41     </select>
42    </td>
43   </tr>
44   <tr>
45    <th align="right">[% 'Factor' | $T8 %]</th>
46    <td><input name="new_factor"></td>
47   </tr>
48
49   [% FOREACH language = LANGUAGES %]
50    <tr>
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>
55    </tr>
56   [% END %]
57  </table>
58
59  <input type="submit" class="submit" name="action" value="[% 'Add' | $T8 %]">
60
61  <hr>
62
63  <table width="100%">
64   <tr><th class="listtop">[% 'Edit units' | $T8 %]</th></tr>
65  </table>
66
67  <p>
68   [% 'Units that have already been used (e.g. for parts and services or in invoices or warehouse transactions) cannot be changed.' | $T8 %]
69  </p>
70
71  <p>
72   [% 'Units marked for deletion will be deleted upon saving.' | $T8 %]
73  </p>
74
75  <p>
76   [% 'You can declare different translations for singular and plural for each unit (e.g. &quot;day&quot; and &quot;days).' | $T8 %]
77  </p>
78
79  <table>
80   <tr>
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>
88    [% END %]
89   </tr>
90
91   [% FOREACH row = UNITS %]
92    <tr>
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>
94     [% IF row.in_use %]
95      <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) %]">
98      </td>
99
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>
103
104      [% ELSE %]
105
106      <td align="center"><input type="checkbox" name="delete_[% loop.count %]"></td>
107      <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) %]">
110      </td>
111      <td>
112       <select name="base_unit_[% loop.count %]">
113        [% FOREACH option = row.BASE_UNIT_DDBOX %]<option [% option.selected %]>[% HTML.escape(option.name) %]</option>[% END %]
114       </select>
115      </td>
116      <td><input name="factor_[% loop.count %]" size="8" value="[% row.factor %]"></td>
117     [% END %]
118
119     [% FOREACH language = row.UNITLANGUAGES %]
120      <td>
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">
125      </td>
126     [% END %]
127    </tr>
128
129    [% IF loop.last %]<input type="hidden" name="rowcount" value="[% loop.count %]">[% END %]
130   [% END %]
131  </table>
132
133  <input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]">
134
135  </form>
136
137 </body>
138 </html>