From f0063b4b16642437c6c098f5129168ed918ea7df Mon Sep 17 00:00:00 2001 From: Aleisha Amohia <aleishaamohia@hotmail.com> Date: Wed, 12 Apr 2023 23:09:53 +0000 Subject: [PATCH] Bug 33260: Move patron search into main body of page This patch moves the patron search in the Notices management page to the main body of the page so that the patron search result table displays more nicely. This is a better place for it anyway, as using this search takes the user to a different page. In the sidebar, where it was previously, it implied it would have the same results display as the search filters. Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> --- .../prog/en/modules/tools/notices.tt | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/notices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/notices.tt index 5aa484bf01d..42c98d1c70e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/notices.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/notices.tt @@ -93,8 +93,17 @@ [% ELSE %] - <div> - Use the search form on the left to find sent notices. + Use the search form on the left to find sent notices, or go directly to a patron's notices. + <div id="notices_patronsearch" class="toptabs"> + <ul class="nav nav-tabs" role="tablist"> + <li role="presentation" class="active"><a href="#notices_patronsearch_pane" aria-controls="notices_patronsearch_pane" role="tab" data-toggle="tab">Patrons</a></li> + </ul> + <div class="tab-content"> + <div id="notice_patronsearch_pane" role="tabpanel" class="tab-pane active"> + [% PROCESS patron_search_filters_simple %] + [% PROCESS patron_search_table table_id => 'table_borrowers', open_on_row_click => 1 %] + </div> + </div> </div> [% IF notices && notices.count == 0 %] @@ -112,17 +121,6 @@ <div class="col-sm-2 col-sm-pull-10"> <aside> - <fieldset class="sidebar brief"> - <h3>Go to a patron's notices</h3> - <ol> - <li> - <div id="notices_patronsearch_pane" role="tabpanel" class="tab-pane active"> - [% PROCESS patron_search_filters_simple %] - [% PROCESS patron_search_table table_id => 'table_borrowers', open_on_row_click => 1 %] - </div> - </li> - </ol> - </fieldset> <fieldset class="sidebar brief"> <form id="notices-search" action="/cgi-bin/koha/tools/notices.pl" method="post"> <input type="hidden" name="op" value="search"> -- 2.30.2