Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / custom_data_export_designer / list.html
diff --git a/templates/webpages/custom_data_export_designer/list.html b/templates/webpages/custom_data_export_designer/list.html
new file mode 100644 (file)
index 0000000..734ecc7
--- /dev/null
@@ -0,0 +1,30 @@
+[% USE HTML %][% USE L %][% USE LxERP %]
+
+<h1>[% FORM.title %]</h1>
+
+[%- INCLUDE 'common/flash.html' %]
+
+[% IF !SELF.queries.size %]
+ <p>
+  [%- LxERP.t8("No custom data exports have been created yet.") %]
+ </p>
+
+[%- ELSE %]
+ <table width="100%">
+  <thead>
+   <tr class="listheading">
+    <th>[% LxERP.t8("Name") %]</th>
+    <th>[% LxERP.t8("Description") %]</th>
+   </tr>
+  </thead>
+
+  <tbody>
+   [%- FOREACH query = SELF.queries %]
+    <tr class="listrow">
+     <td>[% L.link(SELF.url_for(action="edit", id=query.id), query.name) %]</td>
+     <td>[% IF query.description %][% L.link(SELF.url_for(action="edit", id=query.id), query.description) %][% END %]</td>
+    </tr>
+   [%- END %]
+  </tbody>
+ </table>
+[%- END %]