Revision a4420618
Von Tamino Steinert vor 3 Monaten hinzugefügt
templates/design40_webpages/variant_property/variant_property_form.html | ||
---|---|---|
1 | 1 |
[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %][%- USE P -%] |
2 | 2 |
[% USE Dumper %] |
3 |
|
|
3 | 4 |
<h1>[% FORM.title %]</h1> |
5 |
[%- INCLUDE 'common/flash.html' %] |
|
4 | 6 |
|
5 |
[% #Dumper.dump_html(SELF.variant_property.property_values) %] |
|
6 | 7 |
<div class="wrapper"> |
7 | 8 |
<form method="post" action="controller.pl" id="form"> |
8 |
[%- INCLUDE 'common/flash.html' %]
|
|
9 |
[% P.hidden_tag("id", SELF.variant_property.id) %]
|
|
9 | 10 |
|
10 | 11 |
<table class="tbl-horizontal"> |
11 | 12 |
<caption> [% LxERP.t8("Variant Property") %] </caption> |
... | ... | |
23 | 24 |
<td> [%- 'Abbreviation' | $T8 %] </td> |
24 | 25 |
<td> [% P.input_tag("variant_property.abbreviation", SELF.variant_property.abbreviation, "data-validate"="required", "data-title"=LxERP.t8("Abbreviation")) %] </td> |
25 | 26 |
</tr> |
26 |
[% IF SELF.variant_property.id %] |
|
27 |
[% END %] |
|
28 | 27 |
</tbody> |
29 | 28 |
</table> |
30 | 29 |
|
31 |
|
|
32 | 30 |
<table class="tbl-horizontal"> |
33 | 31 |
<caption> [%- 'Translation' | $T8 %] </caption> |
34 | 32 |
<tbody> |
35 |
[%- FOREACH language = SELF.languages %]
|
|
33 |
[%- FOREACH language = SELF.languages %] |
|
36 | 34 |
<tr><th class="caption" colspan="2">[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</th></tr> |
37 | 35 |
<tr> |
38 | 36 |
<td> [%- 'Name' | $T8 %] </td> |
... | ... | |
48 | 46 |
</tr> |
49 | 47 |
<tr> |
50 | 48 |
<th> [% LxERP.t8("Texts for quotations & orders") %] </th> |
51 |
<td>
|
|
49 |
<td> |
|
52 | 50 |
<input type="text" name="translation_[% language.id %]" value="[%- HTML.escape(SELF.variant_property.translated_attribute('description_long', language, 1)) %]" size="60"> |
53 | 51 |
</td> |
54 | 52 |
</tr> |
55 | 53 |
<tr> |
56 | 54 |
<th> [% LxERP.t8("Texts for invoices") %] </th> |
57 |
<td>
|
|
55 |
<td> |
|
58 | 56 |
<input type="text" name="translation_invoice_[% language.id %]" value="[%- HTML.escape(SELF.variant_property.translated_attribute('description_long_invoice', language, 1)) %]" size="60"> |
59 | 57 |
</td> |
60 | 58 |
</tr> |
61 |
[%- END %]
|
|
59 |
[%- END %] |
|
62 | 60 |
</tbody> |
63 | 61 |
</table> |
64 |
[% P.hidden_tag("id", SELF.variant_property.id) %] |
|
65 |
|
|
66 |
|
|
67 | 62 |
</form> |
68 | 63 |
|
69 |
[% IF !SELF.variant_property.property_values.size %] |
|
70 |
<p> |
|
71 |
[%- 'No Variantpropertyvalues has been created yet.' | $T8 %] |
|
72 |
</p> |
|
73 |
[%- ELSE %] |
|
74 |
[% PROCESS "variant_property/variant_property_value_list.html" %] |
|
75 |
[% END %] |
|
64 |
[% IF SELF.variant_property.id %] |
|
65 |
[% PROCESS "variant_property/variant_property_value_list.html" %] |
|
66 |
[% END %] |
|
76 | 67 |
|
77 |
[% L.button_tag('kivi.VariantProperty.add_or_edit_variant_value(' _ SELF.variant_property.id _ ')', LxERP.t8("Add")) %] |
|
78 | 68 |
</div> |
Auch abrufbar als: Unified diff
Varianten: Bearbeiten von Varianten Eigenschaften und Ausprägungen