From 5dc98f23a495b8450f6e7f0677c2492a51d1d9e1 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 11 Oct 2021 14:57:17 +0000 Subject: [PATCH] Bug 29876: Style report id in report results heading This patch makes minor changes to the template and adds some CSS to style the report id portion of the page heading. To test, apply the patch and go to Reports -> Saved SQL reports. - Run any report. - On the results page, confirm that the report id portion of the page heading is styled and labeled "Report number." Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/css/reports.css | 26 ++++++++++++++++++- .../modules/reports/guided_reports_start.tt | 2 +- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/reports.css b/koha-tmpl/intranet-tmpl/prog/css/reports.css index ef60a95adc..86e79a764c 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/reports.css +++ b/koha-tmpl/intranet-tmpl/prog/css/reports.css @@ -95,4 +95,28 @@ fieldset.rows .chart-column-conf label { #makechart select { max-width: 12em; -} \ No newline at end of file +} + +.report_heading_id { + background-color: #F3F3F3; + border: 1px solid #DDD; + border-radius: 5px; + display: inline-block; + font-size: 1.2rem; + font-weight: normal; + margin-left: .5em; + white-space: nowrap; +} + +.report_heading_id .report_label { + display: inline-block; + padding: .5em; + padding-right: 0; +} + +.report_heading_id .report_number { + display: inline-block; + font-weight: bold; + padding: .5em; + padding-left: 0; +} diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 18bea35dba..84e2f1c458 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -899,7 +899,7 @@ [% END # /IF ( enter_params ) %] [% IF ( execute ) %] -

[% name | html %] ([% id | html %])

+

[% name | html %] Report number: [% id | html %]

[% IF ( notes ) %]

Notes: [% notes | html %]

[% END %] -- 2.20.1