|
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 536-541
Link Here
|
| 536 |
[% INCLUDE 'greybox.inc' %] |
535 |
[% INCLUDE 'greybox.inc' %] |
| 537 |
[% INCLUDE 'datatables.inc' %] |
536 |
[% INCLUDE 'datatables.inc' %] |
| 538 |
[% INCLUDE 'columns_settings.inc' %] |
537 |
[% INCLUDE 'columns_settings.inc' %] |
|
|
538 |
[% INCLUDE 'select2.inc' %] |
| 539 |
<script> |
539 |
<script> |
| 540 |
$(document).ready(function() { |
540 |
$(document).ready(function() { |
| 541 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %]; |
541 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %]; |
|
Lines 565-570
Link Here
|
| 565 |
if( $("#icons .tab-pane.active").length < 1 ){ |
565 |
if( $("#icons .tab-pane.active").length < 1 ){ |
| 566 |
$("#icons a:first").tab("show"); |
566 |
$("#icons a:first").tab("show"); |
| 567 |
} |
567 |
} |
|
|
568 |
$("#library_limitation")[0].style.minWidth = '450px'; |
| 569 |
$("#library_limitation").select2(); |
| 568 |
}); |
570 |
}); |
| 569 |
</script> |
571 |
</script> |
| 570 |
[% END %] |
572 |
[% END %] |