Warengruppen Umstellung auf Controller - Templatefile vergessen
authorG. Richardson <information@kivitendo-premium.de>
Wed, 7 Dec 2016 11:07:16 +0000 (12:07 +0100)
committerG. Richardson <information@kivitendo-premium.de>
Wed, 7 Dec 2016 11:07:16 +0000 (12:07 +0100)
templates/webpages/partsgroup/list.html [new file with mode: 0644]

diff --git a/templates/webpages/partsgroup/list.html b/templates/webpages/partsgroup/list.html
new file mode 100644 (file)
index 0000000..7289393
--- /dev/null
@@ -0,0 +1,33 @@
+[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%][%- INCLUDE 'common/flash.html' %]
+
+<h1>[% title %]</h1>
+
+<p>
+ <table width="100%" id="partsgroup_list">
+  <thead>
+   <tr class="listheading">
+    <th align="center" width="1%"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></th>
+    <th>[% 'Description' | $T8 %]</th>
+    <th>[% 'Obsolete'    | $T8 %]</th>
+   </tr>
+  </thead>
+
+  <tbody>
+   [%- FOREACH partsgroup = SELF.all_partsgroups %]
+    <tr class="listrow" id="partsgroup_id_[% partsgroup.id %]">
+     <td align="center" class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
+     <td><a href="[% SELF.url_for(action='edit', id=partsgroup.id) %]">[% HTML.escape(partsgroup.partsgroup) %]</a></td>
+     <td>[% HTML.escape(partsgroup.obsolete) %]</a></td>
+    </tr>
+   [%- END %]
+  </tbody>
+ </table>
+</p>
+
+<hr height="3">
+
+[% L.sortable_element('#partsgroup_list tbody', url=SELF.url_for(action='reorder'), with='partsgroup_id') %]
+
+<p>
+ <a href="[% SELF.url_for(action='new') %]">[%- 'Add' | $T8 %]</a>
+</p>