Verwaltung von Kunden-/Lieferantentypen auf Controller umgestellt
[kivitendo-erp.git] / templates / webpages / business / list.html
diff --git a/templates/webpages/business/list.html b/templates/webpages/business/list.html
new file mode 100644 (file)
index 0000000..80bfed7
--- /dev/null
@@ -0,0 +1,53 @@
+[% USE HTML %][% USE L %][% USE LxERP %]
+
+<body>
+ <div class="listtop">[% FORM.title %]</div>
+
+[%- INCLUDE 'common/flash.html' %]
+
+ <form method="post" action="controller.pl">
+  [% IF !BUSINESSS.size %]
+   <p>
+    [%- LxERP.t8('No business has been created yet.') %]
+   </p>
+
+  [%- ELSE %]
+   <table id="business_list" width="100%">
+    <thead>
+    <tr class="listheading">
+     <th width="80%">[%- LxERP.t8('Description') %]</th>
+     <th>[%- LxERP.t8('Discount') %]</th>
+     <th>[%- LxERP.t8('Customernumberinit') %]</th>
+     [%- IF LXCONFIG.features.vertreter %]
+      <th>[%- LxERP.t8('Representative') %]</th>
+     [%- END %]
+    </tr>
+    </thead>
+
+    <tbody>
+    [%- FOREACH business = BUSINESSS %]
+    <tr class="listrow[% loop.count % 2 %]" id="business_id_[% business.id %]">
+     <td>
+      <a href="[% SELF.url_for(action => 'edit', id => business.id) %]">
+       [%- HTML.escape(business.description) %]
+      </a>
+     </td>
+     <td align="right">[% LxERP.format_amount(business.discount * 100) %] %</td>
+     <td align="right">[%- HTML.escape(business.customernumberinit) %]</td>
+     [%- IF LXCONFIG.features.vertreter %]
+      <td>[%- IF business.salesman %][%- LxERP.t8('Yes') %][%- ELSE %][%- LxERP.t8('No') %][%- END %]</td>
+     [%- END %]
+    </tr>
+    [%- END %]
+    </tbody>
+   </table>
+  [%- END %]
+
+  <hr size="3" noshade>
+
+  <p>
+   <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create new business') %]</a>
+  </p>
+ </form>
+</body>
+</html>