1 [% USE HTML %][% USE L %][% USE LxERP %]
2 <h1>[% FORM.title %]</h1>
4 [%- INCLUDE 'common/flash.html' %]
6 <form method="post" action="controller.pl">
7 [% IF !BUSINESSS.size %]
9 [%- LxERP.t8('No business has been created yet.') %]
13 <table id="business_list" width="100%">
15 <tr class="listheading">
16 <th width="80%">[%- LxERP.t8('Description') %]</th>
17 <th>[%- LxERP.t8('Discount') %]</th>
18 <th>[%- LxERP.t8('Customernumberinit') %]</th>
19 [%- IF LXCONFIG.features.vertreter %]
20 <th>[%- LxERP.t8('Representative') %]</th>
26 [%- FOREACH business = BUSINESSS %]
27 <tr class="listrow[% loop.count % 2 %]" id="business_id_[% business.id %]">
29 <a href="[% SELF.url_for(action => 'edit', id => business.id) %]">
30 [%- HTML.escape(business.description) %]
33 <td align="right">[% LxERP.format_amount(business.discount * 100) %] %</td>
34 <td align="right">[%- HTML.escape(business.customernumberinit) %]</td>
35 [%- IF LXCONFIG.features.vertreter %]
36 <td>[%- IF business.salesman %][%- LxERP.t8('Yes') %][%- ELSE %][%- LxERP.t8('No') %][%- END %]</td>
47 <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create new business') %]</a>