Koha/koha-tmpl/intranet-tmpl/prog/en/includes/desks-admin-search.inc
Owen Leonard 9a39c181df
Bug 35205: Fix duplicate id attribute in desks search form
This patch updates the header search form for desks administration so
that it doesn't contain an HTML id attribute which duplicates one on the
desks entry form.

To test, apply the patch and make sure the "UseCirculationDesks" system
preference is enabled.

- Go to Administration -> Circulation desks -> New desk.
- Click the "Desk" label in the entry form. Cursor focus should move to
  the adjacent input field.
- Click the "Search desks" label in the header search form to confirm
  that your cursor moves to the header search form.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-11-06 08:42:47 -03:00

43 lines
2.3 KiB
HTML

[% USE Koha %]
<!-- desks-admin-search.inc -->
<div id="header_search" role="tablist">
<div class="tab-content">
<div id="desk_search" role="tabpanel" class="tab-pane active">
<form action="[% script_name|html %]" method="post">
<div class="form-title">
<label class="control-label" for="search_desk_name"><span class="control-text">Search desks</span> <i class="fa fa-fw fa-desktop" aria-hidden="true"></i></label>
</div>
<div class="form-content">
<input class="head-searchbox form-control" type="text" name="desk_name" placeholder="Search desks" id="search_desk_name" value="[% searchfield|html %]" size="40" />
</div>
<button type="submit" aria-label="Search"><i class="fa fa-arrow-right"></i></button>
</form>
</div>
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
[% INCLUDE 'patron-search-box.inc' %]
[% END %]
[% IF ( CAN_user_catalogue ) %]
[% INCLUDE 'catalogue-search-box.inc' %]
[% END %]
</div><!-- /.tab-content -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active">
<a title="Search desks" href="#desk_search" aria-controls="desk_search" role="tab" aria-expanded="true" data-toggle="tab" class="keep_text"><i class="fa fa-fw fa-desktop" aria-hidden="true"></i> <span class="tab-title">Search desks</span></a>
</li>
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
<li role="presentation">
<a title="Check out" href="#circ_search" aria-controls="circ_search" role="tab" data-toggle="tab" class="keep_text"><i class="fa fa-fw fa-upload" aria-hidden="true"></i> <span class="tab-title">Check out</span></a>
</li>
[% END %]
[% IF ( CAN_user_catalogue ) %]
<li role="presentation">
<a title="Search catalog" href="#catalog_search" aria-controls="catalog_search" role="tab" data-toggle="tab" class="keep_text"><i class="fa fa-fw fa-search" aria-hidden="true"></i> <span class="tab-title">Search catalog</span></a>
</li>
[% END %]
</ul>
</div><!-- /#header_search -->
<!-- /desks-admin-search.inc -->