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