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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt (-3 / +7 lines)
Lines 235-246 Link Here
235
                        >
235
                        >
236
                    </li>
236
                    </li>
237
                    <li
237
                    <li
238
                        ><label for="branches">Library limitation: </label>
238
                        ><label for="library_limitation">Library limitation: </label>
239
                        <select id="branches" name="branches" multiple size="10">
239
                        <select id="library_limitation" name="branches" multiple size="10">
240
                            <option value="">All libraries</option>
240
                            <option value="">All libraries</option>
241
                            [% PROCESS options_for_libraries libraries => Branches.all( selected => attribute_type.library_limits ) %]
241
                            [% PROCESS options_for_libraries libraries => Branches.all( selected => attribute_type.library_limits ) %]
242
                        </select>
242
                        </select>
243
                        <div class="hint">Select "All libraries" if this attribute type should always be displayed. Otherwise select libraries you want to associate with this value. </div>
243
                        <div class="hint">Limits the use of this attribute to the selected libraries. </div>
244
                    </li>
244
                    </li>
245
                    <li>
245
                    <li>
246
                        <label for="category">Category: </label>
246
                        <label for="category">Category: </label>
Lines 406-411 Link Here
406
[% MACRO jsinclude BLOCK %]
406
[% MACRO jsinclude BLOCK %]
407
    [% Asset.js("js/admin-menu.js") | $raw %]
407
    [% Asset.js("js/admin-menu.js") | $raw %]
408
    [% INCLUDE 'datatables.inc' %]
408
    [% INCLUDE 'datatables.inc' %]
409
    [% INCLUDE 'select2.inc' %]
409
    <script>
410
    <script>
410
        $(document).ready(function () {
411
        $(document).ready(function () {
411
            function toggle_search_default() {
412
            function toggle_search_default() {
Lines 466-471 Link Here
466
                    null
467
                    null
467
                );
468
                );
468
            });
469
            });
470
471
            $("#library_limitation")[0].style.minWidth = "450px";
472
            $("#library_limitation").select2();
469
        });
473
        });
470
    </script>
474
    </script>
471
[% END %]
475
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt (-2 / +5 lines)
Lines 87-93 Link Here
87
                <legend>Checkout criteria:</legend>
87
                <legend>Checkout criteria:</legend>
88
                <ol>
88
                <ol>
89
                    <li>
89
                    <li>
90
                        <label for="categorycodes">Patrons' categories: </label>
90
                        <label for="categorycodes">Patrons categories: </label>
91
                        [% SET categories = Categories.all() %]
91
                        [% SET categories = Categories.all() %]
92
                        <select id="categorycodes" name="categorycodes" multiple="multiple">
92
                        <select id="categorycodes" name="categorycodes" multiple="multiple">
93
                            [% FOREACH cat IN categories %]
93
                            [% FOREACH cat IN categories %]
Lines 248-253 Link Here
248
    [% Asset.js("js/tools-menu.js") | $raw %]
248
    [% Asset.js("js/tools-menu.js") | $raw %]
249
    [% INCLUDE 'calendar.inc' %]
249
    [% INCLUDE 'calendar.inc' %]
250
    [% INCLUDE 'datatables.inc' %]
250
    [% INCLUDE 'datatables.inc' %]
251
    [% INCLUDE 'select2.inc' %]
251
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
252
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
252
    <script>
253
    <script>
253
        $(document).ready(function () {
254
        $(document).ready(function () {
Lines 297-302 Link Here
297
                }
298
                }
298
                return true;
299
                return true;
299
            });
300
            });
301
302
            $("#extend_due_dates_form select[multiple]").css("minWidth", "450px");
303
            $("#extend_due_dates_form select[multiple]").select2();
300
        });
304
        });
301
    </script>
305
    </script>
302
[% END %]
306
[% END %]
303
- 

Return to bug 39843