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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss (-3 / +12 lines)
Lines 263-278 fieldset { Link Here
263
            div.ms-drop {
263
            div.ms-drop {
264
                label {
264
                label {
265
                    text-align: left;
265
                    text-align: left;
266
                    width:auto;
266
                    width: auto;
267
                    span{
267
268
                    span {
268
                        margin-left:5px;
269
                        margin-left:5px;
269
                        width:auto;
270
                        width:auto;
270
                    }
271
                    }
271
                }
272
                }
272
273
273
                ul>li.hide-radio.selected {
274
                ul>li.hide-radio.selected {
274
                    color: initial;
275
                    background-color: initial;
275
                    background-color: initial;
276
                    color: initial;
277
                }
278
            }
279
280
            .select2 {
281
                li {
282
                    clear: none;
283
                    display: inline-block;
284
                    width: unset;
276
                }
285
                }
277
            }
286
            }
278
        }
287
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-4 / +6 lines)
Lines 196-204 Link Here
196
                            <input type="text" name="lib_opac" id="lib_opac" value="[% av.lib_opac | html %]" maxlength="200" />
196
                            <input type="text" name="lib_opac" id="lib_opac" value="[% av.lib_opac | html %]" maxlength="200" />
197
                        </li>
197
                        </li>
198
                        <li
198
                        <li
199
                            ><label for="branches">Library limitations: </label>
199
                            ><label for="library_limitation">Library limitations: </label>
200
                            <select id="branches" name="branches" multiple size="10">
200
                            <select id="library_limitation" name="branches" multiple size="10">
201
                                <option value="">All libraries</option>
202
                                [% FOREACH branch IN branches_loop %]
201
                                [% FOREACH branch IN branches_loop %]
203
                                    [% IF ( branch.selected ) %]
202
                                    [% IF ( branch.selected ) %]
204
                                        <option selected="selected" value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
203
                                        <option selected="selected" value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
Lines 207-213 Link Here
207
                                    [% END %]
206
                                    [% END %]
208
                                [% END %]
207
                                [% END %]
209
                            </select>
208
                            </select>
210
                            <div class="hint">Select 'All libraries' if this authorized value must be displayed all the time. Otherwise select libraries you want to associate with this value.</div>
209
                            <div class="hint">Select libraries you want to associate with this value.</div>
211
                        </li>
210
                        </li>
212
                    </ol>
211
                    </ol>
213
212
Lines 403-408 Link Here
403
[% MACRO jsinclude BLOCK %]
402
[% MACRO jsinclude BLOCK %]
404
    [% Asset.js("js/admin-menu.js") | $raw %]
403
    [% Asset.js("js/admin-menu.js") | $raw %]
405
    [% INCLUDE 'datatables.inc' %]
404
    [% INCLUDE 'datatables.inc' %]
405
    [% INCLUDE 'select2.inc' %]
406
    <script>
406
    <script>
407
        $(document).ready(function () {
407
        $(document).ready(function () {
408
            $("#categoriest").kohaTable({
408
            $("#categoriest").kohaTable({
Lines 439-444 Link Here
439
                }
439
                }
440
                return true;
440
                return true;
441
            });
441
            });
442
            $("#library_limitation")[0].style.minWidth = "450px";
443
            $("#library_limitation").select2();
442
        });
444
        });
443
    </script>
445
    </script>
444
[% END %]
446
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt (-4 / +4 lines)
Lines 234-245 Link Here
234
                        </select>
234
                        </select>
235
                    </li>
235
                    </li>
236
                    <li
236
                    <li
237
                        ><label for="branches">Library limitations: </label>
237
                        ><label for="library_limitation">Library limitations: </label>
238
                        <select id="branches" name="branches" multiple size="10">
238
                        <select id="library_limitation" name="branches" multiple size="10">
239
                            <option value="">All libraries</option>
240
                            [% PROCESS options_for_libraries libraries => Branches.all( selected => category.get_library_limits, unfiltered => 1, do_not_select_my_library => 1 ) %]
239
                            [% PROCESS options_for_libraries libraries => Branches.all( selected => category.get_library_limits, unfiltered => 1, do_not_select_my_library => 1 ) %]
241
                        </select>
240
                        </select>
242
                        <div class="hint">Select <em>All libraries</em> if this category type must to be displayed all the time. Otherwise select libraries you want to associate with this value. </div>
241
                        <div class="hint">Select libraries you want to associate with this value.</div>
243
                    </li>
242
                    </li>
244
                    <li>
243
                    <li>
245
                        <label for="reset_password">Password reset in OPAC: </label>
244
                        <label for="reset_password">Password reset in OPAC: </label>
Lines 857-862 Link Here
857
    [% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %]
856
    [% Asset.js("lib/jquery/plugins/multiple-select/multiple-select.min.js") | $raw %]
858
    [% INCLUDE 'calendar.inc' %]
857
    [% INCLUDE 'calendar.inc' %]
859
    [% INCLUDE 'datatables.inc' %]
858
    [% INCLUDE 'datatables.inc' %]
859
    [% INCLUDE 'select2.inc' %]
860
    <script>
860
    <script>
861
        var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'categories', 'patron_categories', 'json' ) | $raw %];
861
        var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'categories', 'patron_categories', 'json' ) | $raw %];
862
    </script>
862
    </script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-4 / +6 lines)
Lines 345-356 Link Here
345
                        </select>
345
                        </select>
346
                    </li>
346
                    </li>
347
                    <li
347
                    <li
348
                        ><label for="branches">Library limitation: </label>
348
                        ><label for="library_limitation">Library limitation: </label>
349
                        <select id="branches" name="branches" multiple size="10">
349
                        <select id="library_limitation" name="branches" multiple size="10">
350
                            <option value="">All libraries</option>
351
                            [% PROCESS options_for_libraries libraries => Branches.all( selected => itemtype.get_library_limits, unfiltered => 1, do_not_select_my_library => 1 ) %]
350
                            [% PROCESS options_for_libraries libraries => Branches.all( selected => itemtype.get_library_limits, unfiltered => 1, do_not_select_my_library => 1 ) %]
352
                        </select>
351
                        </select>
353
                        <div class="hint">Select 'All libraries' if all libraries use this item type. Otherwise, select the specific libraries that use this item type.</div>
352
                        <div class="hint">Select libraries you want to associate with this item type.</div>
354
                    </li>
353
                    </li>
355
                    <li>
354
                    <li>
356
                        <label for="summary">Summary: </label>
355
                        <label for="summary">Summary: </label>
Lines 535-540 Link Here
535
    [% Asset.js("js/admin-menu.js") | $raw %]
534
    [% Asset.js("js/admin-menu.js") | $raw %]
536
    [% INCLUDE 'greybox.inc' %]
535
    [% INCLUDE 'greybox.inc' %]
537
    [% INCLUDE 'datatables.inc' %]
536
    [% INCLUDE 'datatables.inc' %]
537
    [% INCLUDE 'select2.inc' %]
538
    <script>
538
    <script>
539
        $(document).ready(function() {
539
        $(document).ready(function() {
540
           var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %];
540
           var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %];
Lines 567-572 Link Here
567
           if( $("#icons .tab-pane.active").length < 1 ){
567
           if( $("#icons .tab-pane.active").length < 1 ){
568
               $("#icons a:first").tab("show");
568
               $("#icons a:first").tab("show");
569
           }
569
           }
570
            $("#library_limitation")[0].style.minWidth = '450px';
571
            $("#library_limitation").select2();
570
        });
572
        });
571
    </script>
573
    </script>
572
[% END %]
574
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/categories.js (-4 / +2 lines)
Lines 52-60 $(document).ready(function () { Link Here
52
        table_settings
52
        table_settings
53
    );
53
    );
54
54
55
    if ($("#branches option:selected").length < 1) {
55
    $("#library_limitation")[0].style.minWidth = "450px";
56
        $("#branches option:first").attr("selected", "selected");
56
    $("#library_limitation").select2();
57
    }
58
57
59
    $("#categorycode").on("blur", function () {
58
    $("#categorycode").on("blur", function () {
60
        toUC(this);
59
        toUC(this);
61
- 

Return to bug 39099