ActionBar: Verwendung bei Preisregeln
[kivitendo-erp.git] / templates / webpages / part / _basic_data.html
index 1131c20..c9a2d69 100644 (file)
@@ -20,7 +20,7 @@
              <tr>
               <th align="right">[% 'Part Number' | $T8 %]</th>
               [% SET readonly = 1 %]
-              [% UNLESS SELF.part.id %][% readonly = 0 %][% END %]
+              [%- IF !SELF.part.id or SELF.part.orphaned %][% readonly = 0 %][% END %]
               <td>[% L.input_tag("part.partnumber", SELF.part.partnumber, size=40, readonly=readonly class="initial_focus") %]</td>
              </tr>
              <tr>
@@ -43,7 +43,7 @@
              </tr>
              <tr>
               [%- IF SELF.all_partsgroups.size %]
-              <th align="right">[% 'Group' | $T8 %]</th>
+              <th align="right">[% 'Partsgroup' | $T8 %]</th>
               <td>[%- 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') %]</td>
               [% END %]
              </tr>