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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt (-4 / +7 lines)
Lines 124-135 Link Here
124
                        <span class="hint">Enable automatic generation of credit number (see <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=AutoCreditNumber">AutoCreditNumber</a>)</span>
124
                        <span class="hint">Enable automatic generation of credit number (see <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=AutoCreditNumber">AutoCreditNumber</a>)</span>
125
                    </li>
125
                    </li>
126
                    <li>
126
                    <li>
127
                        <label for="branches">Libraries limitation: </label>
127
                        <label for="library_limitation">Libraries limitation: </label>
128
                        [% IF credit_type && credit_type.is_system %]
128
                        [% IF credit_type && credit_type.is_system %]
129
                            <span>No library limitation</span>
129
                            <span>No library limitation</span>
130
                        [% ELSE %]
130
                        [% ELSE %]
131
                            <select id="branches" name="branches" multiple size="10">
131
                            <select id="library_limitation" name="branches" multiple size="10">
132
                                <option value="">All libraries</option>
133
                                [% FOREACH branch IN branches_loop %]
132
                                [% FOREACH branch IN branches_loop %]
134
                                    [% IF ( branch.selected ) %]
133
                                    [% IF ( branch.selected ) %]
135
                                        <option selected="selected" value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
134
                                        <option selected="selected" value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
Lines 138-144 Link Here
138
                                    [% END %]
137
                                    [% END %]
139
                                [% END %]
138
                                [% END %]
140
                            </select>
139
                            </select>
141
                            <div class="hint">Select 'All libraries' if this credit type should be available at all libraries. Otherwise select libraries you want to associate credit type with.</div>
140
                            <div class="hint">Limit the use of this credit type to the selected libraries.</div>
142
                        [% END %]
141
                        [% END %]
143
                    </li>
142
                    </li>
144
                </ol>
143
                </ol>
Lines 237-242 Link Here
237
[% MACRO jsinclude BLOCK %]
236
[% MACRO jsinclude BLOCK %]
238
    [% Asset.js("js/admin-menu.js") | $raw %]
237
    [% Asset.js("js/admin-menu.js") | $raw %]
239
    [% INCLUDE 'datatables.inc' %]
238
    [% INCLUDE 'datatables.inc' %]
239
    [% INCLUDE 'select2.inc' %]
240
    <script>
240
    <script>
241
        $(document).ready(function () {
241
        $(document).ready(function () {
242
            var txtActivefilter = _("Filter system credit types");
242
            var txtActivefilter = _("Filter system credit types");
Lines 271-276 Link Here
271
271
272
            //Start filtered
272
            //Start filtered
273
            $("#filter_system").click();
273
            $("#filter_system").click();
274
275
            $("#library_limitation")[0].style.minWidth = "450px";
276
            $("#library_limitation").select2();
274
        });
277
        });
275
    </script>
278
    </script>
276
[% END %]
279
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt (-4 / +7 lines)
Lines 131-138 Link Here
131
                        [% END %]
131
                        [% END %]
132
                    </li>
132
                    </li>
133
                    <li>
133
                    <li>
134
                        <label for="branches">Libraries limitation: </label>
134
                        <label for="library_limitation">Libraries limitation: </label>
135
                        <select id="branches" name="branches" multiple size="10">
135
                        <select id="library_limitation" name="branches" multiple size="10">
136
                            <option value="">All libraries</option>
136
                            <option value="">All libraries</option>
137
                            [% FOREACH branch IN branches_loop %]
137
                            [% FOREACH branch IN branches_loop %]
138
                                [% IF ( branch.selected ) %]
138
                                [% IF ( branch.selected ) %]
Lines 142-148 Link Here
142
                                [% END %]
142
                                [% END %]
143
                            [% END %]
143
                            [% END %]
144
                        </select>
144
                        </select>
145
                        <div class="hint">Select 'All libraries' if this debit type should be available at all libraries. Otherwise select libraries you want to associate debit type with.</div>
145
                        <div class="hint">Limit use of this debit type to the selected libraries.</div>
146
                    </li>
146
                    </li>
147
                </ol>
147
                </ol>
148
            </fieldset>
148
            </fieldset>
Lines 253-258 Link Here
253
[% MACRO jsinclude BLOCK %]
253
[% MACRO jsinclude BLOCK %]
254
    [% Asset.js("js/admin-menu.js") | $raw %]
254
    [% Asset.js("js/admin-menu.js") | $raw %]
255
    [% INCLUDE 'datatables.inc' %]
255
    [% INCLUDE 'datatables.inc' %]
256
    [% INCLUDE 'select2.inc' %]
256
    <script>
257
    <script>
257
        $(document).ready(function () {
258
        $(document).ready(function () {
258
            var txtActivefilter = _("Filter system debit types");
259
            var txtActivefilter = _("Filter system debit types");
Lines 287-292 Link Here
287
288
288
            //Start filtered
289
            //Start filtered
289
            $("#filter_system").click();
290
            $("#filter_system").click();
291
292
            $("#library_limitation")[0].style.minWidth = "450px";
293
            $("#library_limitation").select2();
290
        });
294
        });
291
    </script>
295
    </script>
292
[% END %]
296
[% END %]
293
- 

Return to bug 39810