epic-ts
[kivitendo-erp.git] / templates / webpages / business / list.html
1 [% USE HTML %][% USE L %][% USE LxERP %]
2 <h1>[% FORM.title %]</h1>
3
4 [%- INCLUDE 'common/flash.html' %]
5
6  <form method="post" action="controller.pl">
7   [% IF !BUSINESSS.size %]
8    <p>
9     [%- LxERP.t8('No business has been created yet.') %]
10    </p>
11
12   [%- ELSE %]
13    <table id="business_list" width="100%">
14     <thead>
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>
21      [%- END %]
22     </tr>
23     </thead>
24
25     <tbody>
26     [%- FOREACH business = BUSINESSS %]
27     <tr class="listrow[% loop.count % 2 %]" id="business_id_[% business.id %]">
28      <td>
29       <a href="[% SELF.url_for(action => 'edit', id => business.id) %]">
30        [%- HTML.escape(business.description) %]
31       </a>
32      </td>
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>
37      [%- END %]
38     </tr>
39     [%- END %]
40     </tbody>
41    </table>
42   [%- END %]
43
44   <hr size="3" noshade>
45
46   <p>
47    <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create new business') %]</a>
48   </p>
49  </form>