Revision 883a82b3
Von Werner Hahn vor 2 Monaten hinzugefügt
templates/design40_webpages/shop_part/edit.html | ||
---|---|---|
[% USE L %]
|
||
[% USE P %]
|
||
[% USE LxERP %]
|
||
[% USE Dumper %]
|
||
|
||
<form action="controller.pl" method="post">
|
||
|
||
[% Dumper.dump_html(SELF) %]
|
||
<div class="wrapper">
|
||
|
||
<p>
|
templates/design40_webpages/variant_property/variant_property_form.html | ||
---|---|---|
[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %][%- USE P -%]
|
||
[% USE Dumper %]
|
||
<h1>[% FORM.title %]</h1>
|
||
|
||
|
||
[% #Dumper.dump_html(SELF.variant_property.property_values) %]
|
||
<div class="wrapper">
|
||
<form method="post" action="controller.pl" id="form">
|
||
[%- INCLUDE 'common/flash.html' %]
|
||
<div class="wrapper">
|
||
|
||
<table class="tbl-horizontal">
|
||
<caption> [% LxERP.t8("Variant Property") %] </caption>
|
||
... | ... | |
</table>
|
||
[% P.hidden_tag("id", SELF.variant_property.id) %]
|
||
|
||
</div>
|
||
|
||
</form>
|
||
|
||
[% IF !SELF.variant_property.property_values.size %]
|
||
<p>
|
||
[%- 'No Variantpropertyvalues has been created yet.' | $T8 %]
|
||
</p>
|
||
[%- ELSE %]
|
||
[% PROCESS "variant_property/variant_property_value_list.html" %]
|
||
[% END %]
|
||
|
||
[% L.button_tag('kivi.VariantProperty.add_or_edit_variant_value(' _ SELF.variant_property.id _ ')', LxERP.t8("Add")) %]
|
||
</div>
|
templates/design40_webpages/variant_property/variant_property_value_form.html | ||
---|---|---|
[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %][%- USE P -%]
|
||
[% USE Dumper %]
|
||
<h1>[% FORM.title %]</h1>
|
||
[%- INCLUDE 'common/flash.html' %]
|
||
|
||
|
||
<form method="post" action="controller.pl" id="form">
|
||
[%- INCLUDE 'common/flash.html' %]
|
||
<div class="wrapper">
|
||
<form id="variant_property_value_form">
|
||
[% P.hidden_tag("variant_property_id", SELF.variant_property.id) %]
|
||
[% P.input_tag("h_variant_property_id", SELF.variant_property.id) %]
|
||
Name:[% SELF.variant_property.name %]
|
||
<div class="wrapper">
|
||
<table class="tbl-horizontal">
|
||
<caption> [% LxERP.t8("Value") %] </caption>
|
||
<colgroup><col class="wi-mediumsmall"><col></colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td> [%- 'Value' | $T8 %] </td>
|
||
<td> [% P.input_tag("variant_property_value.value", SELF.variant_property_value.value, "data-validate"="required", "data-title"=LxERP.t8("Value")) %] </td>
|
||
</tr>
|
||
<tr>
|
||
<td> [%- 'Abbreviation' | $T8 %] </td>
|
||
<td> [% P.input_tag("variant_property_value.abbreviation", SELF.variant_property_value.abbreviation, "data-validate"="required", "data-title"=LxERP.t8("Abbreviation")) %] </td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<table class="tbl-horizontal">
|
||
<caption> [% LxERP.t8("Value") %] </caption>
|
||
<colgroup><col class="wi-mediumsmall"><col></colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td> [%- 'Value' | $T8 %] </td>
|
||
<td> [% P.input_tag("variant_property_value.value", SELF.variant_property_value.value, "data-validate"="required", "data-title"=LxERP.t8("Value")) %] </td>
|
||
</tr>
|
||
<tr>
|
||
<td> [%- 'Abbreviation' | $T8 %] </td>
|
||
<td> [% P.input_tag("variant_property_value.abbreviation", SELF.variant_property_value.abbreviation, "data-validate"="required", "data-title"=LxERP.t8("Abbreviation")) %] </td>
|
||
</tr>
|
||
[% IF SELF.variant_property_value.id %]
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
<div class="wrapper">
|
||
<table class="tbl-horizontal">
|
||
<caption> [%- 'Translation' | $T8 %] </caption>
|
||
<tbody>
|
||
[%- FOREACH language = SELF.languages %]
|
||
<tr><th class="caption" colspan="2">[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</th></tr>
|
||
<tr>
|
||
<td> [%- 'Value' | $T8 %] </td>
|
||
<input type="text" name="translation_[% language.id %]" value="[%- HTML.escape(SELF.variant_property_value.translated_attribute('description_long', language, 1)) %]" size="60">
|
||
<td> [% P.input_tag("variant_property_value.value", SELF.variant_property_value.value, "data-validate"="required", "data-title"=LxERP.t8("value")) %] </td>
|
||
</tr>
|
||
<tr>
|
||
<td> [%- 'Abbreviation' | $T8 %] </td>
|
||
<input type="text" name="translation_invoice_[% language.id %]" value="[%- HTML.escape(SELF.variant_property_value.translated_attribute('description_long_invoice', language, 1)) %]" size="60">
|
||
<td> [% P.input_tag("variant_property_value.description", SELF.variant_property_value.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %] </td>
|
||
</tr>
|
||
[%- END %]
|
||
</tbody>
|
||
</table>
|
||
[% P.hidden_tag("variant_property_value_id", SELF.variant_property_value.id) %]
|
||
</div>
|
||
</form>
|
||
|
||
|
||
<table class="tbl-horizontal">
|
||
<caption> [%- 'Translation' | $T8 %] </caption>
|
||
<tbody>
|
||
[%- FOREACH language = SELF.languages %]
|
||
<tr><th class="caption" colspan="2">[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</th></tr>
|
||
<tr>
|
||
<td> [%- 'Value' | $T8 %] </td>
|
||
<td> [% P.input_tag("variant_property_value.value", SELF.variant_property_value.value, "data-validate"="required", "data-title"=LxERP.t8("value")) %] </td>
|
||
</tr>
|
||
<tr>
|
||
<td> [%- 'Abbreviation' | $T8 %] </td>
|
||
<td> [% P.input_tag("variant_property_value.description", SELF.variant_property_value.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %] </td>
|
||
</tr>
|
||
<tr>
|
||
<th> [% LxERP.t8("Texts for quotations & orders") %] </th>
|
||
<td>
|
||
<input type="text" name="translation_[% language.id %]" value="[%- HTML.escape(SELF.variant_property_value.translated_attribute('description_long', language, 1)) %]" size="60">
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th> [% LxERP.t8("Texts for invoices") %] </th>
|
||
<td>
|
||
<input type="text" name="translation_invoice_[% language.id %]" value="[%- HTML.escape(SELF.variant_property_value.translated_attribute('description_long_invoice', language, 1)) %]" size="60">
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
</tbody>
|
||
</table>
|
||
[% P.hidden_tag("id", SELF.variant_property_value.id) %]
|
||
|
||
<div class="buttons">
|
||
[% L.button_tag("kivi.VariantProperty.save_variant_value()", LxERP.t8("Save")) %]
|
||
</div>
|
||
|
||
</form>
|
templates/design40_webpages/variant_property/variant_property_value_list.html | ||
---|---|---|
[% USE HTML %]
|
||
[% USE L %]
|
||
[% USE LxERP %]
|
||
[% USE date %]
|
||
|
||
<div id="variant_property_value">
|
||
|
||
<div class="wrapper">
|
||
|
||
<table class="tbl-list width-moderate">
|
||
<caption>[% 'Value' | $T8 %]</caption>
|
||
<thead>
|
||
<tr>
|
||
<th>[% 'Value' | $T8 %]</th>
|
||
<th>[% 'Abbreviation' | $T8 %]</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
[% FOREACH row = SELF.VARIANTPROPERTYVALUES %]
|
||
<table class="tbl-list width-moderate" id="variant_property_values">
|
||
<caption>[% 'Value' | $T8 %]</caption>
|
||
<thead>
|
||
<tr>
|
||
<td>[% row.value | html %]</td>
|
||
<td>[% row.abbreviation | html %]</td>
|
||
<th><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]"></th>
|
||
<th>[% 'Value' | $T8 %]</th>
|
||
<th>[% 'Abbreviation' | $T8 %]</th>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
</thead>
|
||
<tbody>
|
||
[% FOREACH value = SELF.variant_property.property_values %]
|
||
<tr id="variant_property_value_id_[% variant_property_value.id %]">
|
||
<td class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
|
||
<td><a href="#" onclick="kivi.VariantProperty.add_or_edit_variant_value('[% value.id %]');">[% value.value | html %]</a></td>
|
||
<td>[% value.abbreviation | html %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
[% L.sortable_element('#variant_property_values tbody', url =>
|
||
SELF.url_for(action='reorder_variant_property_values'), with => 'variant_property_value_id') %]
|
Auch abrufbar als: Unified diff
Variantenkonfiguration Templatedatein