X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/13fb6d811d39a8af7144451ada59f2f7d4eb491a..101b9705bda052abb1237c92d3920f6ddbf12d04:/templates/webpages/part/_basic_data.html 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 %]