X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fpart%2F_basic_data.html;h=a9fa531ca43e4632afdfb6c76b484aeddc3b4b47;hb=b36fb0f412d2d2b43b8d98d787743cbe1fbf2540;hp=c9a2d69d4828b454ae3a5973a538175b9e9667a1;hpb=e2ef75e554021d66214ad31b7c135243cc50765c;p=kivitendo-erp.git
diff --git a/templates/webpages/part/_basic_data.html b/templates/webpages/part/_basic_data.html
index c9a2d69d4..a9fa531ca 100644
--- a/templates/webpages/part/_basic_data.html
+++ b/templates/webpages/part/_basic_data.html
@@ -19,27 +19,21 @@
[% 'Part Number' | $T8 %] |
- [% SET readonly = 1 %]
- [%- IF !SELF.part.id or SELF.part.orphaned %][% readonly = 0 %][% END %]
- [% L.input_tag("part.partnumber", SELF.part.partnumber, size=40, readonly=readonly class="initial_focus") %] |
+ [% L.input_tag("part.partnumber", SELF.part.partnumber, size=40, class="initial_focus", "data-validate"="trimmed_whitespaces") %] |
[% 'Part Classification' | $T8 %] |
- [% P.select_classification('part.classification_id', default => SELF.part.classification_id) %] |
+ [% P.part.select_classification('part.classification_id', default => SELF.part.classification_id, type => SELF.parts_classification_filter ) %] |
[% 'Part Description' | $T8 %] |
- [%- IF description_area %]
-
- [%- ELSE %]
- [% L.input_tag("part.description", SELF.part.description, size=40) %] |
- [%- END %]
+ [% L.areainput_tag("part.description", SELF.part.description, size=40) %]
[% 'EAN-Code' | $T8 %] |
- [% L.input_tag("part.ean", SELF.part.ean, size=40) %] |
+ [% L.input_tag("part.ean", SELF.part.ean, size=40, "data-validate"="trimmed_whitespaces") %] |
[%- IF SELF.all_partsgroups.size %]
@@ -81,6 +75,18 @@
+ [% IF CUSTOM_VARIABLES_FIRST_TAB %]
+ [% 'Unchecked custom variables will not appear in orders and invoices.' | $T8 %] |
+ [%- FOREACH var = CUSTOM_VARIABLES_FIRST_TAB %]
+
+ [% var.VALID_BOX %]
+ [%- IF !var.partsgroup_filtered %]
+ [% HTML.escape(var.description) %]
+ [%- END %]
+ |
+ [% var.HTML_CODE %] |
+ [%- END %]
+ [% END %]
@@ -90,9 +96,9 @@
- [% 'Updated' | $T8 %] |
+ [% 'Price updated' | $T8 %] |
- [% SELF.part.priceupdate.to_kivitendo | html %]
+ [% SELF.part.last_price_update.valid_from.to_kivitendo | html %]
|
@@ -118,7 +124,7 @@
[% 'Price Factor' | $T8 %] |
- [%- L.select_tag('part.price_factor_id', SELF.all_price_factors, default=SELF.part.price_factor_id, title_key='description', value_key='id', with_empty=1) %] |
+ [%- L.select_tag('part.price_factor_id', SELF.all_price_factors, default=SELF.part.price_factor_id, title_key='description', value_key='id', with_empty=1) %]
[%- END %]
@@ -127,7 +133,7 @@
[% 'Unit' | $T8 %] |
[%- IF !SELF.part.id or SELF.part.orphaned # same logic as unit_changable %]
- [%- L.select_tag('part.unit', SELF.all_units, default=SELF.part.unit, title_key='name', value_key='name') %] |
+ [%- L.select_tag('part.unit', SELF.all_units, default=SELF.part.unit, title_key='name', value_key='name') %]
[%- ELSE %]
[% L.hidden_tag('part.unit', SELF.part.unit) %] [% HTML.escape(SELF.part.unit) %]
[%- END %]
@@ -139,7 +145,7 @@
[% 'Weight' | $T8 %] |
[%- IF SELF.part.is_assembly %]
- [% LxERP.format_amount(SELF.part.weight) %]
+ [% LxERP.format_amount(SELF.part.weight) %]
[% ELSE %]
[% L.input_tag('part.weight_as_number', SELF.part.weight_as_number, size=10, class='reformat_number numeric') %]
[% END %]
@@ -157,7 +163,7 @@
[% IF SELF.all_warehouses.size %]
|
[% 'Default Warehouse' | $T8 %] |
- [% L.select_tag('part.warehouse_id', SELF.all_warehouses, default=SELF.part.warehouse.id, title_key='description', with_empty=>1) %]
+ | [% L.select_tag('part.warehouse_id', SELF.all_warehouses, default=SELF.part.warehouse.id, title_key='description', with_empty=1) %]
|
[% END %]
@@ -213,30 +219,25 @@
[% 'Image' | $T8 %] |
- [% L.input_tag("part.image", SELF.part.image, size=40) %] |
+ [% L.input_tag("part.image", SELF.part.image, size=40, "data-validate"="trimmed_whitespaces") %] |
[% 'Microfiche' | $T8 %] |
- [% L.input_tag("part.microfiche", SELF.part.microfiche, size=20) %] |
+ [% L.input_tag("part.microfiche", SELF.part.microfiche, size=20, "data-validate"="trimmed_whitespaces") %] |
[% 'Drawing' | $T8 %] |
- [% L.input_tag("part.drawing", SELF.part.drawing, size=40) %] |
+ [% L.input_tag("part.drawing", SELF.part.drawing, size=40, "data-validate"="trimmed_whitespaces") %] |
-
[% PROCESS 'part/_pricegroup_prices.html' %]
-
-
+ [% PROCESS 'part/_customerprices.html' %]
[%- UNLESS SELF.part.is_assembly %]
-
[% PROCESS 'part/_makemodel.html' %]
-
[% END %]
|
-
|