@@ -, +, @@ runtime parameters - Go to Reports -> Use saved. - Create or edit a report. - You should see a menu button above the SQL editor field, "Insert runtime parameter." - The menu should contain the options "Authorized value," "Date," "Item types," "Libraries," "Patron categories," and "Text field." - Test each option. Each should trigger the display of a modal dialog with a heading which corresponds to your choice. - In all cases except the "Authorized value" choice you should see a single form field for "label." - Enter text in the label field and click the "Insert parameter" button. - The correct runtime parameter should be inserted into the SQL editor. - If you placed a cursor somewhere in the SQL editor first, your parameter should be inserted in that location in the editor. - If you selected some text in the editor before selecting a parameter, the paramter should replace the selected text. - In the case of the "Authorized value" selection, the modal dialog should include both a label field and a field for choosing an authorized value category. - Try submitting the form without selecting an authorized value. It should warn you that the field is required. - After testing the authorized value selection, try inserting another parameter to confirm that the authorized value selection (now hidden) is no longer required. --- .../intranet-tmpl/prog/css/src/staff-global.scss | 18 +++ .../en/modules/reports/guided_reports_start.tt | 148 ++++++++++++++++++++- 2 files changed, 163 insertions(+), 3 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -951,6 +951,12 @@ fieldset { width: unset; } } + + .dropdown-menu { + li { + padding-bottom: 0; + } + } } } @@ -1709,6 +1715,18 @@ i { white-space: nowrap; } +.form-group { + label { + display: block; + margin-bottom: 5px; + } + + div { + &.hint { + margin: 5px 0; + } + } +} .blocker { color: #990000; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -1,5 +1,6 @@ [% USE raw %] [% USE Asset %] +[% USE AuthorisedValues %] [% USE KohaDates %] [% USE Koha %] [% USE TablesSettings %] @@ -1211,10 +1212,21 @@