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) %]
15 [% L.hidden_tag('callback' , FORM.callback) %]
17 <div id="ic_tabs" class="tabwidget">
19 <li><a href="#basic_data">[% 'Basic Data' | $T8 %]</a></li>
20 [%- IF SELF.part.is_assortment %]
21 <li><a href="#assortment_tab">[% 'Assortment items' | $T8 %]</a></li>
23 [%- IF SELF.part.is_assembly %]
24 <li><a href="#assembly_tab">[% 'Assembly items' | $T8 %]</a></li>
26 [%- IF SELF.part.id %]
27 [%- IF INSTANCE_CONF.get_doc_storage %]
28 <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=part&object_id=[% SELF.part.id %]">[% 'Attachments' | $T8 %]</a></li>
29 <li><a href="controller.pl?action=File/list&file_type=image&object_type=part&object_id=[% SELF.part.id %]">[% 'Images' | $T8 %]</a></li>
32 [% IF SELF.all_languages.size %]
33 <li><a href="#translations_tab">[% 'Translations' | $T8 %]</a></li>
35 [%- IF SELF.part.id %]
36 <li><a href="#sales_price_information">[% 'Price information' | $T8 %]</a></li>
38 [%- IF SELF.part.id %]
39 <li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li>
41 [%- IF (AUTH.assert('warehouse_contents', 1) AND SELF.part.id AND NOT SELF.part.is_service) %]
42 <li><a href="#inventory">[% 'Inventories' | $T8 %]</a></li>
44 [%- IF CUSTOM_VARIABLES.size %]
45 <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
47 [% IF AUTH.assert('shop_part_edit', 1) && SELF.part.id && SELF.part.shop %]
48 <li><a href="#shop_variables">[% 'Shop variables' | $T8 %]</a></li>
53 [%- PROCESS 'part/_basic_data.html' %]
56 [%- IF SELF.part.is_assortment %]
57 <div id="assortment_tab">
58 [% PROCESS 'part/_assortment.html' id=part.id assortment_id=SELF.part.id %]
62 [%- IF SELF.part.is_assembly %]
63 <div id="assembly_tab">
64 [% PROCESS 'part/_assembly.html' id=part.id assembly_id=SELF.part.id %]
68 [%- IF SELF.all_languages.size %]
69 [% PROCESS 'part/_edit_translations.html' %]
72 [%- IF SELF.part.id %]
73 <div id="sales_price_information">
74 [% PROCESS part/_sales_price_information.html id=SELF.part.id %]
76 [% IF AUTH.assert('shop_part_edit', 1) && SELF.part.id %]
77 <div id="shop_variables">
78 [% PROCESS 'part/_shop.html' %]
82 [%- IF AUTH.assert('warehouse_contents', 1) AND SELF.part.id AND NOT SELF.part.is_service %]
84 [% PROCESS 'part/_inventory.html' %]
90 [%- IF CUSTOM_VARIABLES.size %]
91 <div id="custom_variables">
92 [%- PROCESS 'part/_cvars.html' %]
96 [%- IF SELF.part.id %]
97 <div id='price_rules'>
98 <div id='price_rules_customer_report'></div>
99 <div id='price_rules_vendor_report'></div>