6 <h1>[% FORM.title %] [% IF SELF.part.id %]: [% HTML.escape(SELF.part.displayable_name) %][% END %]</h1>
8 [% INCLUDE 'common/flash.html' %]
10 <form method="post" id="ic" name="ic" action="controller.pl">
12 [% L.hidden_tag('part.part_type' , SELF.part.part_type) %]
13 [% L.hidden_tag('part.id' , SELF.part.id) %]
14 [% L.hidden_tag('last_modification', SELF.part.last_modification) %]
16 <div id="ic_tabs" class="tabwidget">
18 <li><a href="#basic_data">[% 'Basic Data' | $T8 %]</a></li>
19 [%- IF SELF.part.is_assortment %]
20 <li><a href="#assortment_tab">[% 'Assortment items' | $T8 %]</a></li>
22 [%- IF SELF.part.is_assembly %]
23 <li><a href="#assembly_tab">[% 'Assembly items' | $T8 %]</a></li>
25 [%- IF INSTANCE_CONF.get_doc_storage %]
26 <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=part&object_id=[% SELF.part.id %]">[% 'Attachments' | $T8 %]</a></li>
27 <li><a href="controller.pl?action=File/list&file_type=image&object_type=part&object_id=[% SELF.part.id %]">[% 'Images' | $T8 %]</a></li>
29 [% IF SELF.all_languages.size %]
30 <li><a href="#translations_tab">[% 'Translations' | $T8 %]</a></li>
32 [%- IF SELF.part.id %]
33 <li><a href="#sales_price_information">[% 'Price information' | $T8 %]</a></li>
35 [%- IF SELF.part.id %]
36 <li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li>
38 [%- IF CUSTOM_VARIABLES.size %]
39 <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
44 [%- PROCESS 'part/_basic_data.html' %]
47 [%- IF SELF.part.is_assortment %]
48 <div id="assortment_tab">
49 [% PROCESS 'part/_assortment.html' id=part.id assortment_id=SELF.part.id %]
53 [%- IF SELF.part.is_assembly %]
54 <div id="assembly_tab">
55 [% PROCESS 'part/_assembly.html' id=part.id assembly_id=SELF.part.id %]
59 [%- IF SELF.all_languages.size %]
60 [% PROCESS 'part/_edit_translations.html' %]
63 [%- IF SELF.part.id %]
64 <div id="sales_price_information">
65 [% PROCESS part/_sales_price_information.html id=SELF.part.id %]
69 [%- IF CUSTOM_VARIABLES.size %]
70 <div id="custom_variables">
71 [%- PROCESS 'part/_cvars.html' %]
75 [%- IF SELF.part.id %]
76 <div id='price_rules'>
77 <div id='price_rules_customer_report'></div>
78 <div id='price_rules_vendor_report'></div>
85 [% IF show_edit_buttons %]
86 [% L.button_tag('kivi.Part.save()', LxERP.t8('Save')) %]
88 [% L.button_tag('kivi.Part.use_as_new()', LxERP.t8('Use as new')) %]
89 [% IF SELF.part.orphaned %]
90 [% L.button_tag('kivi.Part.delete()', LxERP.t8('Delete')) %]
92 [% L.button_tag('kivi.Part.open_history_popup()', LxERP.t8('History')) %]