1 [% USE HTML %][% USE L %][% USE LxERP %]
 
   2 <h1>[% FORM.title %]</h1>
 
   4  <form method="post" action="controller.pl">
 
   6 [%- INCLUDE 'common/flash.html' %]
 
  10     <td>[%- LxERP.t8('Description') %]</td>
 
  11     <td>[% L.input_tag("business.description", SELF.business.description, "size", 30) %]</td>
 
  15     <td>[%- LxERP.t8('Discount') %]</td>
 
  16     <td>[% L.input_tag("business.discount_as_percent", SELF.business.discount_as_percent, "size", 5) %]%</td>
 
  20     <td>[%- LxERP.t8('Customernumberinit') %]</td>
 
  21     <td>[% L.input_tag("business.customernumberinit", SELF.business.customernumberinit, "size", 10) %]</td>
 
  24    [%- IF LXCONFIG.features.vertreter %]
 
  26      <td>[%- LxERP.t8('Representative') %]</td>
 
  27      <td>[% L.checkbox_tag("business.salesman", "value", 1, "checked", SELF.business.salesman) %]</td>
 
  33    [% L.hidden_tag("id", SELF.business.id) %]
 
  34    [% L.hidden_tag("action", "Business/dispatch") %]
 
  35    [% L.submit_tag("action_" _  (SELF.business.id ? "update" : "create"), LxERP.t8('Save')) %]
 
  36    [%- IF SELF.business.id %]
 
  37     [% L.submit_tag("action_destroy", LxERP.t8("Delete"), "confirm", LxERP.t8("Are you sure you want to delete this business?")) %]
 
  39    <a href="[% SELF.url_for(action => 'list') %]">[%- LxERP.t8('Abort') %]</a>