Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / chart / report_configuration_overview.html
diff --git a/templates/webpages/chart/report_configuration_overview.html b/templates/webpages/chart/report_configuration_overview.html
new file mode 100644 (file)
index 0000000..5178ba6
--- /dev/null
@@ -0,0 +1,40 @@
+[%- USE HTML -%][%- USE LxERP -%][%- USE L -%]<h1>[% LxERP.t8("Chart configuration overview regarding reports") %]</h1>
+
+[% FOREACH data = DATA %]
+ [% UNLESS data.size == 1 %]
+  <div id="[% HTML.escape(data.type) %]">
+   [% LxERP.t8("Jump to") %]:
+   [% FOREACH jump = DATA %]
+    [% IF jump.type != data.type %]
+     [% L.link("#" _ jump.type, jump.heading) %]
+    [% END %]
+   [% END %]
+  </div>
+ [% END %]
+
+ <h2>[% HTML.escape(data.heading) %]</h2>
+
+ [% FOREACH pos = data.positions %]
+  [%- SET name = data.names.item(pos) %]
+  <h3>[% IF name %][% LxERP.t8("Position #1: #2", pos, name) %][% ELSE %][% LxERP.t8("Position #1", pos) %][% END %]</h3>
+
+  [%- SET charts = data.charts.$pos %]
+  <table>
+   <thead>
+    <tr class="listheading">
+     <th>[% LxERP.t8("Account") %]</th>
+     <th>[% LxERP.t8("Description") %]</th>
+    </tr>
+   </thead>
+
+   <tbody>
+    [% FOREACH chart = charts %]
+    <tr>
+     <td>[% L.link("am.pl?action=edit_account&id=" _ chart.id, chart.accno) %]</td>
+     <td>[% HTML.escape(chart.description) %]</td>
+    </tr>
+    [% END %]
+   </tbody>
+  </table>
+ [% END %]
+[% END %]