Bug 32028: (follow-up) Fix headings levels

This patch corrects the headings levels on cash_registers,
patron-attr-types and restrictions admin pages.

We also move the h2 headings inside the page-section div as appropriate.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-11-09 13:23:39 +00:00 committed by Tomas Cohen Arazi
parent 6edcd586df
commit 2c24682fa0
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
3 changed files with 17 additions and 15 deletions

View File

@ -159,14 +159,14 @@ Cash registers &rsaquo; Administration &rsaquo; Koha
</div>
<h1>Cash registers</h1>
<h3>Cash registers for <select id="branch_filter" name="branch_filter">
<option value=""></option>
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %]
</select>
</h3>
[% IF cash_registers.count %]
<div class="page-section">
<h2>Cash registers for <select id="branch_filter" name="branch_filter">
<option value=""></option>
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode, unfiltered => 1, ) %]
</select>
</h2>
[% IF cash_registers.count %]
<table id="table_cash_registers">
<thead>
<th>Name</th>
@ -205,10 +205,10 @@ Cash registers &rsaquo; Administration &rsaquo; Koha
[% END %]
</tbody>
</table>
</div><!-- /.page-section -->
[% ELSE %]
<div class="dialog message">There are no cash registers defined. <a href="/cgi-bin/koha/admin/cash_registers.pl?op=add_form">Start adding cash registers</a>.</div>
[% END # /cash_register.count %]
[% ELSE %]
<div class="dialog message">There are no cash registers defined. <a href="/cgi-bin/koha/admin/cash_registers.pl?op=add_form">Start adding cash registers</a>.</div>
[% END # /cash_register.count %]
</div>
[% END # /op == 'list' %]
</main>
</div> <!-- /.col-sm-10.col-sm-push-2 -->

View File

@ -292,10 +292,12 @@ Patron attribute types &rsaquo; Administration &rsaquo; Koha
[% END %]
[% IF ( available_attribute_types ) %]
[% FOREACH attribute IN available_attribute_types %]
[% IF attribute.class %]
<h4>[% attribute.lib | html %]</h4>
[% END %]
<div class="page-section">
[% IF attribute.class %]
<h2>[% attribute.lib | html %]</h2>
[% ELSE %]
<h2>Unclassified types</h2>
[% END %]
<table class="patron_attributes_types" id="patron_attr[% attribute.class | html %]">
<thead>
<tr>

View File

@ -160,7 +160,7 @@
<a class="btn btn-default" id="newrestriction" href="/cgi-bin/koha/admin/restrictions.pl?op=add_form"><i class="fa fa-plus"></i> New restriction</a>
</div>
<h2>Patron restrictions</h2>
<h1>Patron restrictions</h1>
[% IF searchfield %]
You Searched for [% searchfield | html %]</span>
[% END %]