View | Details | Raw Unified | Return to bug 40498
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+8 lines)
Lines 1431-1436 dd { Link Here
1431
    display: inline-block;
1431
    display: inline-block;
1432
}
1432
}
1433
1433
1434
.patron_autocomplete {
1435
    border: 1px solid #C7C7CE;
1436
    border-radius: .3rem;
1437
    line-height: 1.5;
1438
    padding: .375rem .75rem;
1439
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
1440
}
1441
1434
#addColumn,
1442
#addColumn,
1435
#delColumn {
1443
#delColumn {
1436
    background-color: transparent;
1444
    background-color: transparent;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-10 / +1 lines)
Lines 30-44 Link Here
30
            display: flex;
30
            display: flex;
31
            gap: 0.5rem;
31
            gap: 0.5rem;
32
        }
32
        }
33
        #patron_checkout_search input[type="text"] {
34
            border: 1px solid #c7c7ce;
35
            border-radius: 0.3rem;
36
            line-height: 1.5;
37
            padding: 0.375rem 0.75rem;
38
            transition:
39
                border-color 0.15s ease-in-out,
40
                box-shadow 0.15s ease-in-out;
41
        }
42
    </style>
33
    </style>
43
[% END %]
34
[% END %]
44
</head>
35
</head>
Lines 1019-1025 Link Here
1019
    [% ELSE %]
1010
    [% ELSE %]
1020
        <form action="/cgi-bin/koha/circ/circulation.pl" id="patronsearch" method="get">
1011
        <form action="/cgi-bin/koha/circ/circulation.pl" id="patronsearch" method="get">
1021
            <fieldset id="patron_checkout_search">
1012
            <fieldset id="patron_checkout_search">
1022
                <input autocomplete="off" id="findborrower_main" name="findborrower" type="text" placeholder="Enter patron card number or partial name" size="40" />
1013
                <input autocomplete="off" id="findborrower_main" class="patron_autocomplete" name="findborrower" type="text" placeholder="Enter patron card number or partial name" size="40" />
1023
                [% IF ( stickyduedate ) %]
1014
                [% IF ( stickyduedate ) %]
1024
                    <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
1015
                    <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
1025
                    <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
1016
                    <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-47 / +43 lines)
Lines 27-37 Link Here
27
    [% END %]</title
27
    [% END %]</title
28
>
28
>
29
[% INCLUDE 'doc-head-close.inc' %]
29
[% INCLUDE 'doc-head-close.inc' %]
30
<style>
30
[% FILTER collapse %]
31
    textarea {
31
    ]
32
        width: 100%;
32
    <style>
33
    }
33
        textarea {
34
</style>
34
            width: 100%;
35
        }
36
    </style>
37
[% END %]
35
38
36
[% BLOCK list_permissions %]
39
[% BLOCK list_permissions %]
37
    <li>
40
    <li>
Lines 205-231 Link Here
205
208
206
        <form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="transferform" method="post">
209
        <form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="transferform" method="post">
207
            [% INCLUDE 'csrf-token.inc' %]
210
            [% INCLUDE 'csrf-token.inc' %]
208
            <fieldset>
211
            <fieldset class="rows">
212
                <legend class="visually-hidden">Transfer ownership</legend>
209
                <input type="hidden" name="op" value="cud-transfer" />
213
                <input type="hidden" name="op" value="cud-transfer" />
210
                <input type="hidden" name="public" value="1" />
214
                <input type="hidden" name="public" value="1" />
211
                <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
215
                <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
212
216
                <ol>
213
                <div>
217
                    <li>
214
                    <label for="find_patron">Search for new owner: </label>
218
                        <label for="find_patron">Search for new owner: </label>
215
                    <input autocomplete="off" id="find_patron" type="text" style="width:150px" class="noEnterSubmit" />
219
                        <input autocomplete="off" id="find_patron" type="text" size="40" class="patron_autocomplete noEnterSubmit" placeholder="Enter patron card number or partial name" />
216
                </div>
220
                    </li>
217
221
                    <li style="display:none">
218
                <br />
222
                        <label for="find_patron">New owner: </label>
219
                <div>
223
                        <span id="new_owner_name"></span>
220
                    <label for="find_patron">New owner: </label>
224
                    </li>
221
                    <span id="new_owner_name"></span>
225
                </ol>
222
                </div>
226
            </fieldset>
223
227
            <fieldset class="action">
224
                <br />
228
                <input type="submit" class="btn btn-primary" value="Transfer" />
225
                <fieldset class="action">
229
                <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&amp;public=1" class="cancel">Cancel</a>
226
                    <input type="submit" class="btn btn-primary" value="Transfer" />
227
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&amp;public=1" class="cancel">Cancel</a>
228
                </fieldset>
229
            </fieldset>
230
            </fieldset>
230
        </form>
231
        </form>
231
    [% END # /IF op == transfer %]
232
    [% END # /IF op == transfer %]
Lines 957-986 Link Here
957
             });
958
             });
958
959
959
        [% END %]
960
        [% END %]
960
    </script>
961
        [% IF op == 'transfer' %]
961
    [% IF op == 'transfer' %]
962
            patron_autocomplete($("#find_patron"), {
962
        <script>
963
                "on-select-add-to": {
963
            $(document).ready(function () {
964
                    container: $("#new_owner_name"),
964
                patron_autocomplete($("#find_patron"), {
965
                    input_name: "new_owner",
965
                    "on-select-add-to": {
966
                },
966
                        container: $("#new_owner_name"),
967
                "on-select-callback": function (event, ui) {
967
                        input_name: "new_owner",
968
                    $("#find_patron").val("").focus();
968
                    },
969
                    return false;
969
                    "on-select-callback": function (event, ui) {
970
                },
970
                        $("#find_patron").val("").focus();
971
            });
971
                        return false;
972
                    },
973
                });
974
972
975
                $("#transferform").submit(function () {
973
            $("#transferform").submit(function () {
976
                    if (!$('input[name="new_owner"]').val()) {
974
                if (!$('input[name="new_owner"]').val()) {
977
                        alert(_("Please select a new owner first"));
975
                    alert(_("Please select a new owner first"));
978
                        return false;
976
                    return false;
979
                    }
977
                }
980
                    return true;
978
                return true;
981
                });
982
            });
979
            });
983
        </script>
980
        [% END %]
984
    [% END %]
981
    </script>
985
[% END %]
982
[% END %]
986
[% INCLUDE 'intranet-bottom.inc' %]
983
[% INCLUDE 'intranet-bottom.inc' %]
987
- 

Return to bug 40498