Bug 37752: Add missing class to navigation tab links

To test:
1. Go to  Administration > MARC bibliographic frameworks > Default framework Tag 942 > subfield structure
2. Notice the tabs at the top have no style.
3. APPLY PATCH
4. 1 -3 again, tabs should look right.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Lucas Gass 2024-08-27 20:11:23 +00:00 committed by Katrin Fischer
parent 24687367b8
commit a297a0cd99
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 2 additions and 2 deletions

View File

@ -115,9 +115,9 @@
[% FOREACH loo IN loop %]
<li id="tab_subfield_[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="tab-item" role="presentation">
[% IF ( loo.new_subfield ) %]
<a href="#sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" aria-controls="sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" role="tab" data-bs-toggle="tab" title="[% loo.liblibrarian | html_entity %]">New</a>
<a href="#sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" class="nav-link" aria-controls="sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" role="tab" data-bs-toggle="tab" title="[% loo.liblibrarian | html_entity %]">New</a>
[% ELSE %]
<a href="#sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" aria-controls="sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" role="tab" data-bs-toggle="tab" title="[% loo.liblibrarian | html_entity %]">
<a href="#sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" class="nav-link" aria-controls="sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" role="tab" data-bs-toggle="tab" title="[% loo.liblibrarian | html_entity %]">
[% loo.subfieldcode | html %]
</a>
[% END %]