Kyle M Hall
94cee66ec7
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> |
||
---|---|---|
.. | ||
acquisitions_stats.pl | ||
bor_issues_top.pl | ||
borrowers_out.pl | ||
borrowers_stats.pl | ||
cash_register_stats.pl | ||
cat_issues_top.pl | ||
catalogue_out.pl | ||
catalogue_stats.pl | ||
dictionary.pl | ||
guided_reports.pl | ||
issues_avg_stats.pl | ||
issues_stats.pl | ||
itemslost.pl | ||
itemtypes.plugin | ||
manager.pl | ||
orders_by_fund.pl | ||
reports-home.pl | ||
reserves_stats.pl | ||
serials_stats.pl |