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 %] |