Bug 39141: (follow-up) Style input and add autocomplete
This patch adds some friendly styling to the new form and adds autocomplete functionality. Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
3dcc194ff5
commit
20f42661fc
|
|
@ -83,6 +83,9 @@
|
|||
if ( $("#findborrower").length ) {
|
||||
patron_autocomplete($("#findborrower"), { 'link-to': 'circ' });
|
||||
}
|
||||
if ( $("#findborrower_main").length ) {
|
||||
patron_autocomplete($("#findborrower_main"), { 'link-to': 'circ' });
|
||||
}
|
||||
[% END %]
|
||||
if ( $("#searchmember").length ) {
|
||||
patron_autocomplete($("#searchmember"), { 'link-to': 'patron' });
|
||||
|
|
|
|||
|
|
@ -25,6 +25,23 @@
|
|||
[% END %]</title
|
||||
>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
[% FILTER collapse %]
|
||||
<style>
|
||||
#patron_checkout_search {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
#patron_checkout_search input[type="text"] {
|
||||
border: 1px solid #c7c7ce;
|
||||
border-radius: 0.3rem;
|
||||
line-height: 1.5;
|
||||
padding: 0.375rem 0.75rem;
|
||||
transition:
|
||||
border-color 0.15s ease-in-out,
|
||||
box-shadow 0.15s ease-in-out;
|
||||
}
|
||||
</style>
|
||||
[% END %]
|
||||
</head>
|
||||
|
||||
<body id="circ_circulation" class="circ">
|
||||
|
|
@ -992,7 +1009,7 @@
|
|||
[% ELSE %]
|
||||
<form action="/cgi-bin/koha/circ/circulation.pl" id="patronsearch" method="get">
|
||||
<fieldset id="patron_checkout_search">
|
||||
<input autocomplete="off" id="findborrower" name="findborrower" type="text" placeholder="Enter patron card number or partial name" size="40" />
|
||||
<input autocomplete="off" id="findborrower_main" name="findborrower" type="text" placeholder="Enter patron card number or partial name" size="40" />
|
||||
[% IF ( stickyduedate ) %]
|
||||
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
|
||||
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue