Revision a4420618
Von Tamino Steinert vor 3 Monaten hinzugefügt
templates/design40_webpages/variant_property/variant_property_value_form.html | ||
---|---|---|
1 | 1 |
[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %][%- USE P -%] |
2 | 2 |
[% USE Dumper %] |
3 | 3 |
<h1>[% FORM.title %]</h1> |
4 |
[%- INCLUDE 'common/flash.html' %]
|
|
4 |
[%- INCLUDE 'common/flash.html' %] |
|
5 | 5 |
|
6 | 6 |
<form id="variant_property_value_form"> |
7 |
[% P.hidden_tag("variant_property_id", SELF.variant_property.id) %] |
|
8 |
[% P.input_tag("h_variant_property_id", SELF.variant_property.id) %] |
|
9 |
Name:[% SELF.variant_property.name %] |
|
7 |
[% P.hidden_tag("variant_property_value.id", variant_property_value.id) %] |
|
10 | 8 |
<div class="wrapper"> |
11 | 9 |
<table class="tbl-horizontal"> |
12 | 10 |
<caption> [% LxERP.t8("Value") %] </caption> |
... | ... | |
14 | 12 |
<tbody> |
15 | 13 |
<tr> |
16 | 14 |
<td> [%- 'Value' | $T8 %] </td> |
17 |
<td> [% P.input_tag("variant_property_value.value", SELF.variant_property_value.value, "data-validate"="required", "data-title"=LxERP.t8("Value")) %] </td> |
|
15 |
<td> |
|
16 |
[% P.input_tag( |
|
17 |
"variant_property_value.value", |
|
18 |
variant_property_value.value, |
|
19 |
"data-validate"="required", |
|
20 |
"data-title"=LxERP.t8("Value") |
|
21 |
) %] |
|
22 |
</td> |
|
18 | 23 |
</tr> |
19 |
<tr>
|
|
24 |
<tr> |
|
20 | 25 |
<td> [%- 'Abbreviation' | $T8 %] </td> |
21 |
<td> [% P.input_tag("variant_property_value.abbreviation", SELF.variant_property_value.abbreviation, "data-validate"="required", "data-title"=LxERP.t8("Abbreviation")) %] </td> |
|
26 |
<td> |
|
27 |
[% P.input_tag( |
|
28 |
"variant_property_value.abbreviation", |
|
29 |
variant_property_value.abbreviation, |
|
30 |
"data-validate"="required", |
|
31 |
"data-title"=LxERP.t8("Abbreviation"), |
|
32 |
) %] |
|
33 |
</td> |
|
22 | 34 |
</tr> |
23 | 35 |
</tbody> |
24 | 36 |
</table> |
... | ... | |
28 | 40 |
<table class="tbl-horizontal"> |
29 | 41 |
<caption> [%- 'Translation' | $T8 %] </caption> |
30 | 42 |
<tbody> |
31 |
[%- FOREACH language = SELF.languages %]
|
|
43 |
[%- FOREACH language = SELF.languages %] |
|
32 | 44 |
<tr><th class="caption" colspan="2">[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</th></tr> |
33 | 45 |
<tr> |
34 | 46 |
<td> [%- 'Value' | $T8 %] </td> |
35 |
<input type="text" name="translation_[% language.id %]" value="[%- HTML.escape(SELF.variant_property_value.translated_attribute('description_long', language, 1)) %]" size="60">
|
|
36 |
<td> [% P.input_tag("variant_property_value.value", SELF.variant_property_value.value, "data-validate"="required", "data-title"=LxERP.t8("value")) %] </td>
|
|
47 |
<input type="text" name="translation_[% language.id %]" value="[%- HTML.escape(variant_property_value.translated_attribute('description_long', language, 1)) %]" size="60"> |
|
48 |
<td> [% P.input_tag("variant_property_value.value", variant_property_value.value, "data-validate"="required", "data-title"=LxERP.t8("value")) %] </td> |
|
37 | 49 |
</tr> |
38 | 50 |
<tr> |
39 | 51 |
<td> [%- 'Abbreviation' | $T8 %] </td> |
40 |
<input type="text" name="translation_invoice_[% language.id %]" value="[%- HTML.escape(SELF.variant_property_value.translated_attribute('description_long_invoice', language, 1)) %]" size="60">
|
|
41 |
<td> [% P.input_tag("variant_property_value.description", SELF.variant_property_value.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %] </td>
|
|
52 |
<input type="text" name="translation_invoice_[% language.id %]" value="[%- HTML.escape(variant_property_value.translated_attribute('description_long_invoice', language, 1)) %]" size="60"> |
|
53 |
<td> [% P.input_tag("variant_property_value.description", variant_property_value.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %] </td> |
|
42 | 54 |
</tr> |
43 |
[%- END %]
|
|
55 |
[%- END %] |
|
44 | 56 |
</tbody> |
45 | 57 |
</table> |
46 |
[% P.hidden_tag("variant_property_value_id", SELF.variant_property_value.id) %] |
|
47 | 58 |
</div> |
48 | 59 |
</form> |
49 | 60 |
|
50 | 61 |
<div class="buttons"> |
51 |
[% L.button_tag("kivi.VariantProperty.save_variant_value()", LxERP.t8("Save")) %] |
|
62 |
[% L.button_tag("kivi.VariantProperty.save_variant_property_value()", LxERP.t8("Save")) %]
|
|
52 | 63 |
</div> |
53 | 64 |
|
Auch abrufbar als: Unified diff
Varianten: Bearbeiten von Varianten Eigenschaften und Ausprägungen