Bug 31939: Add page-section to branches template

This patch adds the page-section class to the appropriate blocks in the Libraries administration area.

Test plan
1) Confirm that Administration > Libraries correctly displays the table
   inside a page-section card
2) Confirm that Administration > Libraries > 'A library' correctly
   displays a card for the main information at the top and a separate
   card for OPAC Information if added.
3) Confirm that the 'Add' and 'Edit' library forms still look good.

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

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-10-24 12:19:07 +01:00 committed by Tomas Cohen Arazi
parent 5f3c28b0ef
commit d1d5b51cee
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -329,6 +329,7 @@ Libraries &rsaquo; Administration &rsaquo; Koha
[% IF op == 'list' %]
<h1>Libraries</h1>
[% IF libraries_count > 0 %]
<div class="page-section">
<table id="libraries">
<thead>
<tr>
@ -344,6 +345,7 @@ Libraries &rsaquo; Administration &rsaquo; Koha
</tr>
</thead>
</table>
</div>
[% ELSE %]
<div class="dialog message">There are no libraries defined. <a href="/cgi-bin/koha/admin/branches.pl?op=add_form">Start defining libraries</a>.</div>
[% END %]
@ -351,7 +353,7 @@ Libraries &rsaquo; Administration &rsaquo; Koha
[% IF op == 'view' && library %]
<h1>[% library.branchname | html %]</h1>
<div class="row">
<div class="row page-section">
<div class="col-sm-6">
<div class="rows">
<ol>
@ -474,8 +476,7 @@ Libraries &rsaquo; Administration &rsaquo; Koha
</div> <!-- /.col-sm-6 -->
</div> <!-- /.row -->
[% IF OpacLibraryInfo %]<!-- opac_info -->
<hr />
<div class="row">
<div class="row page-section">
<div class="col-sm-12">
<h2>OPAC information</h2>
<div>[% OpacLibraryInfo.content | $raw %]</div>