</body> entfernt
[kivitendo-erp.git] / templates / webpages / business / list.html
1 [% USE HTML %][% USE L %][% USE LxERP %]
2
3 <body>
4  <div class="listtop">[% FORM.title %]</div>
5
6 [%- INCLUDE 'common/flash.html' %]
7
8  <form method="post" action="controller.pl">
9   [% IF !BUSINESSS.size %]
10    <p>
11     [%- LxERP.t8('No business has been created yet.') %]
12    </p>
13
14   [%- ELSE %]
15    <table id="business_list" width="100%">
16     <thead>
17     <tr class="listheading">
18      <th width="80%">[%- LxERP.t8('Description') %]</th>
19      <th>[%- LxERP.t8('Discount') %]</th>
20      <th>[%- LxERP.t8('Customernumberinit') %]</th>
21      [%- IF LXCONFIG.features.vertreter %]
22       <th>[%- LxERP.t8('Representative') %]</th>
23      [%- END %]
24     </tr>
25     </thead>
26
27     <tbody>
28     [%- FOREACH business = BUSINESSS %]
29     <tr class="listrow[% loop.count % 2 %]" id="business_id_[% business.id %]">
30      <td>
31       <a href="[% SELF.url_for(action => 'edit', id => business.id) %]">
32        [%- HTML.escape(business.description) %]
33       </a>
34      </td>
35      <td align="right">[% LxERP.format_amount(business.discount * 100) %] %</td>
36      <td align="right">[%- HTML.escape(business.customernumberinit) %]</td>
37      [%- IF LXCONFIG.features.vertreter %]
38       <td>[%- IF business.salesman %][%- LxERP.t8('Yes') %][%- ELSE %][%- LxERP.t8('No') %][%- END %]</td>
39      [%- END %]
40     </tr>
41     [%- END %]
42     </tbody>
43    </table>
44   [%- END %]
45
46   <hr size="3" noshade>
47
48   <p>
49    <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create new business') %]</a>
50   </p>
51  </form>