Langtext-Dialog: Größe prozentual zum Hauptfenster einstellbar pro Benutzer
[kivitendo-erp.git] / templates / webpages / part / form.html
index 03433f3..05e73f3 100644 (file)
@@ -12,6 +12,7 @@
   [% L.hidden_tag('part.part_type'   , SELF.part.part_type) %]
   [% L.hidden_tag('part.id'          , SELF.part.id) %]
   [% L.hidden_tag('last_modification', SELF.part.last_modification) %]
+  [% L.hidden_tag('callback'         , FORM.callback) %]
 
   <div id="ic_tabs" class="tabwidget">
    <ul>
     [%- IF SELF.part.is_assembly %]
     <li><a href="#assembly_tab">[% 'Assembly items' | $T8 %]</a></li>
     [%- END %]
+    [%- IF SELF.part.id %]
+    [%- IF INSTANCE_CONF.get_doc_storage %]
+    <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=part&object_id=[% SELF.part.id %]">[% 'Attachments' | $T8 %]</a></li>
+    <li><a href="controller.pl?action=File/list&file_type=image&object_type=part&object_id=[% SELF.part.id %]">[% 'Images' | $T8 %]</a></li>
+    [%- END %]
+    [%- END %]
     [% IF SELF.all_languages.size %]
     <li><a href="#translations_tab">[% 'Translations' | $T8 %]</a></li>
     [% END %]
     [%- IF SELF.part.id  %]
     <li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li>
     [% END %]
+    [%- IF (AUTH.assert('warehouse_contents', 1) AND SELF.part.id AND NOT SELF.part.is_service) %]
+    <li><a href="#inventory">[% 'Inventories' | $T8 %]</a></li>
+    [%- END %]
     [%- IF CUSTOM_VARIABLES.size %]
     <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
     [%- END %]
+    [% IF AUTH.assert('shop_part_edit', 1) && SELF.part.id && SELF.part.shop %]
+    <li><a href="#shop_variables">[% 'Shop variables' | $T8 %]</a></li>
+    [% END %]
    </ul>
 
    <div id="basic_data">
    <div id="sales_price_information">
      [% PROCESS part/_sales_price_information.html id=SELF.part.id %]
    </div>
+   [% IF AUTH.assert('shop_part_edit', 1) && SELF.part.id %]
+   <div id="shop_variables">
+     [% PROCESS 'part/_shop.html' %]
+   </div>
+   [%- END %]
+
+   [%- IF AUTH.assert('warehouse_contents', 1) AND SELF.part.id AND NOT SELF.part.is_service %]
+   <div id="inventory">
+    [% PROCESS 'part/_inventory.html' %]
+   </div>
+   [%- END %]
+
    [%- END %]
 
    [%- IF CUSTOM_VARIABLES.size %]
    [%- END %]
 
 </div>
-
-  <p>
-  [% L.hidden_tag('action', 'Part/dispatch') %]
-
-  [% IF show_edit_buttons %]
-    [% L.button_tag('kivi.Part.save()', LxERP.t8('Save')) %]
-    [% IF SELF.part.id %]
-    [% L.button_tag('kivi.Part.use_as_new()', LxERP.t8('Use as new')) %]
-      [% IF SELF.part.orphaned %]
-        [% L.button_tag('kivi.Part.delete()', LxERP.t8('Delete')) %]
-      [% END %]
-    [% L.button_tag('kivi.Part.open_history_popup()', LxERP.t8('History')) %]
-    [% END %]
-  [% END %]
-  </p>
-
 </form>