Koha/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc
Owen Leonard 248544e292
Bug 35850: Use template wrapper for tabs: Header search forms
This patch updates search header includes so that the tabs use WRAPPER
to build markup.

To test, apply the patch rebuild the staff interface CSS.

Test at least one page which uses each updated search include. Search
header tabs should look correct and work correctly.

- Acquisitions
  - Suggestions
- Administration
    - Budgets and funds
    - Cities
    - Currencies
    - Desks
    - Patron categories
    - System preferences
    - Z39.50
- Advanced search
- Authorities
- Bibliographic detail page
- Cataloging home page
- Check in
- Check out
- Acquisitions -> Vendor -> Contracts
- ERM
- Staff interface home page
- Serials
- Tool -> Notices

Signed-off-by: Martin AUBEUT <martin.aubeut@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-03-22 15:47:34 +01:00

36 lines
1.6 KiB
HTML

[% USE raw %]
[% USE Koha %]
[% PROCESS 'html_helpers.inc' %]
<!-- circ-search.inc -->
[% WRAPPER tabs id="header_search" %]
[% WRAPPER tab_panels %]
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
[% INCLUDE 'patron-search-box.inc' bs_tab_active= 1 %]
[% INCLUDE 'checkin-search-box.inc' %]
[% INCLUDE 'renew-search-box.inc' %]
[% END %]
[% IF ( CAN_user_catalogue ) %]
[% INCLUDE 'catalogue-search-box.inc' %]
[% END %]
[% END # /tab_panels %]
[% WRAPPER tabs_nav %]
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
[% WRAPPER tab_item tabname="circ_search" bt_active= 1 %]
<i class="fa fa-fw fa-upload" aria-hidden="true"></i> <span class="tab-title">Check out</span>
[% END %]
[% WRAPPER tab_item tabname= "checkin_search" %]
<i class="fa fa-fw fa-download" aria-hidden="true"></i> <span class="tab-title">Check in</span>
[% END %]
[% WRAPPER tab_item tabname= "renew_search" %]
<i class="fa fa-fw fa-retweet" aria-hidden="true"></i> <span class="tab-title">Renew</span>
[% END %]
[% END %]
[% IF ( CAN_user_catalogue ) %]
[% WRAPPER tab_item tabname= "catalog_search" %]
<i class="fa fa-fw fa-search" aria-hidden="true"></i> <span class="tab-title">Search catalog</span>
[% END %]
[% END %]
[% END # /tabs_nav %]
[% END # /WRAPPER tabs %]
<!-- /circ-search.inc -->