]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/part/form.html
WebshopApi: Shop-Tab in Partcontroller eingebaut
[mfinanz.git] / templates / webpages / part / form.html
index b33d5b07ee20b6932b5c8565ae724d09e811f210..733fb13bc9049268c69f698f258d7b5874058783 100644 (file)
@@ -41,6 +41,9 @@
     [%- 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 %]
    [%- END %]
 
    [%- IF CUSTOM_VARIABLES.size %]