X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fpart%2F_basic_data.html;h=c9a2d69d4828b454ae3a5973a538175b9e9667a1;hb=8817139d57b9a916933a2b210cd2135a90d0ebef;hp=0fb2b3bf64dbb919dba3441cae043e00e9d1825b;hpb=c364e43efab3ac6f0f0c20cd6f8f89a85ab45280;p=kivitendo-erp.git diff --git a/templates/webpages/part/_basic_data.html b/templates/webpages/part/_basic_data.html index 0fb2b3bf6..c9a2d69d4 100644 --- a/templates/webpages/part/_basic_data.html +++ b/templates/webpages/part/_basic_data.html @@ -20,9 +20,13 @@ [% 'Part Number' | $T8 %] [% SET readonly = 1 %] - [% UNLESS SELF.part.id %][% readonly = 0 %][% END %] + [%- 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") %] + + [% 'Part Classification' | $T8 %] + [% P.select_classification('part.classification_id', default => SELF.part.classification_id) %] + [% 'Part Description' | $T8 %] @@ -39,7 +43,7 @@ [%- IF SELF.all_partsgroups.size %] - [% 'Group' | $T8 %] + [% 'Partsgroup' | $T8 %] [%- L.select_tag('part.partsgroup_id', SELF.all_partsgroups, default=SELF.part.partsgroup_id, title_key='partsgroup', value_key='id', with_empty=1 style='width: 200px') %] [% END %]