Koha/koha-tmpl/intranet-tmpl/prog/en/modules/reports
Kyle M Hall 94cee66ec7
Bug 34136: Add ability to render a report using a notice template
Sometimes it is useful to display the results of a report in a non-table format. We should be able to create notice templates to render reports.

Test Plan:
1) Apply this patch
2) Restart all the things!
3) Create a new notice template using the new "Report" option from the
   "New notice" pulldown.
4) In the "Print" area, paste the following template:

[% FOREACH b IN data %]
<div class="panel panel-default">
  <div class="panel-heading">[% b.surname %], [% b.firstname %]</div>
  <div class="panel-body">Expiration: [% b.dateexpiry %]</div>
  <div class="panel-footer">ID: [% b.borrowernumber %]</div>
</div>
[% END %]

5) Create a report with the query: SELECT * FROM borrowers
6) Once the report is saved, use the new "Run with template" option to
   select the template you just created.
7) Note that instead of the results being a paged table, you instead
   see the results rendered as cards!

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
2023-10-27 16:46:22 -03:00
..
csv
acquisitions_stats.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
bor_issues_top.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
borrowers_out.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
borrowers_stats.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
cash_register_stats.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
cat_issues_top.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
catalogue_out.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
catalogue_stats.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
convert_report.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
dictionary.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
guided_reports_start.tt Bug 34136: Add ability to render a report using a notice template 2023-10-27 16:46:22 -03:00
issues_avg_stats.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
issues_stats.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
itemslost.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
itemtypes.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
orders_by_budget.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
reports-home.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00
reserves_stats.tt Bug 23059: (QA follow-up) Put status strings in a span 2023-10-20 14:44:07 -03:00
serials_stats.tt Bug 33923: Improve translation of title tags: Reports 2023-09-01 11:23:19 -03:00