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