Bug 40080: Fix search position on course reserves page
This patch corrects the position of the table search box on the course reserves details pages by warpping the presented table in a 'rows' class div. We also update the search box dom configuration in the datatable itself to match that of other opac tables. Test plan 1) Add some course reserves to a course 2) View that course on the OPAC 3) Note that the search box for the table is aligned to the top of the main section of the page and over to the far right almost off screen. 4) Apply this patch 5) Confirm that the display of the search box is now nested just above the table in the same location as the course reserves list page Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit32242f438a) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> (cherry picked from commitd0dc3ffd71) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
25bcc23a3c
commit
88a23dfc20
|
|
@ -57,6 +57,7 @@
|
|||
</div>
|
||||
|
||||
[% IF ( course_reserves ) %]
|
||||
<div class="rows">
|
||||
<table id="course-items-table" class="table table-bordered table-striped table-condensed">
|
||||
<caption class="sr-only">Courses</caption>
|
||||
<thead>
|
||||
|
|
@ -109,6 +110,7 @@
|
|||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
[% ELSE %]
|
||||
<br style="clear:both;" />
|
||||
<div class="alert alert-info">
|
||||
|
|
@ -128,7 +130,7 @@
|
|||
$(document).ready(function() {
|
||||
table_settings = [% TablesSettings.GetTableSettings( 'opac', 'course_items', 'course-items-table', 'json' ) | $raw %];
|
||||
KohaTable("#course-items-table", {
|
||||
"dom": '<"top"<"table_controls"f>>t',
|
||||
"dom": '<"top"<"table_controls"f>>rt<"clear">',
|
||||
"sorting": [[ 1, "asc" ]],
|
||||
"language": {
|
||||
"search": "_INPUT_",
|
||||
|
|
|
|||
Loading…
Reference in New Issue