PriceRule: Kontextinfo in Kunden
[kivitendo-erp.git] / templates / webpages / customer_vendor / form.html
index ad2da05..356bb1f 100644 (file)
@@ -1,11 +1,13 @@
 [%- USE T8 %]
 [%- USE LxERP %]
 [%- USE L %]
+<h1>[% FORM.title %]</h1>
+
+[% L.hidden_tag('_cti_enabled', !!LXCONFIG.cti.dial_command) %]
 
 [% cv_cvars = SELF.cv.cvars_by_config %]
 
 <form method="post" action="controller.pl">
-  <div class="listtop">[% FORM.title %]</div>
 
   [% L.hidden_tag('db', FORM.db) %]
   [% L.hidden_tag('callback', FORM.callback) %]
@@ -27,6 +29,9 @@
       [% IF ( cv_cvars.size ) %]
         <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
       [% END %]
+      [% IF SELF.cv.id %]
+        <li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li>
+      [% END %]
     </ul>
 
     [% PROCESS "customer_vendor/tabs/billing.html" %]
@@ -40,6 +45,9 @@
     [% IF ( cv_cvars.size ) %]
       [% PROCESS "customer_vendor/tabs/custom_variables.html" %]
     [% END %]
+    [% IF SELF.cv.id %]
+      [% PROCESS "customer_vendor/tabs/price_rules.html" %]
+    [% END %]
   </div>
 
   <br>