|
Lines 7-63
Link Here
|
| 7 |
[% USE AuthorisedValues %] |
7 |
[% USE AuthorisedValues %] |
| 8 |
[% Asset.css("css/humanmsg.css") | $raw %] |
8 |
[% Asset.css("css/humanmsg.css") | $raw %] |
| 9 |
|
9 |
|
| 10 |
<span style="display:none;" id="all_fund_dropdown"> |
|
|
| 11 |
[% FOREACH budget IN budgets %] |
| 12 |
[% IF ( budget.b_active ) %] |
| 13 |
<option value="[% budget.b_id | html %]" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]">[% budget.b_txt | html %]</option> |
| 14 |
[% ELSE %] |
| 15 |
<option value="[% budget.b_id | html %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat |html %]">[% budget.b_txt | html %] (inactive)</option> |
| 16 |
[% END %] |
| 17 |
[% END %] |
| 18 |
</span> |
| 19 |
[% BLOCK fund_dropdown %] |
10 |
[% BLOCK fund_dropdown %] |
| 20 |
<span> |
|
|
| 21 |
<label for="[% form_name | html %]">Fund: </label> |
11 |
<label for="[% form_name | html %]">Fund: </label> |
| 22 |
<select id="[% form_id | html %]" name="[% form_name | html %]" class="fund_dropdown" data-selected="[% selected | html %]"> |
12 |
<select id="[% form_id | html %]" name="[% form_name | html %]" class="fund_dropdown" data-selected="[% selected | html %]"> |
| 23 |
</select> |
13 |
</select> |
| 24 |
<label for="showallfunds" style="float:none;width:auto;"> Show inactive:</label> |
14 |
<label for="showallfunds"> Show inactive:</label> |
| 25 |
<input type="checkbox" class="showallfunds" /> |
15 |
<input type="checkbox" class="showallfunds" /> |
| 26 |
</span> |
|
|
| 27 |
[% END %] |
16 |
[% END %] |
| 28 |
|
17 |
|
| 29 |
<div id="updateFund" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="updateReceivedFund" aria-hidden="true"> |
|
|
| 30 |
<div class="modal-dialog"> |
| 31 |
<div class="modal-content"> |
| 32 |
<div class="modal-header"> |
| 33 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 34 |
<h3 id="updateReceivedFund">Update received fund</h3> |
| 35 |
</div> |
| 36 |
<div class="modal-body"> |
| 37 |
<p>Updating the fund may change available statistics for the order, please check values before submitting.</p> |
| 38 |
<fieldset class="rows"> |
| 39 |
<ol> |
| 40 |
<li>[% PROCESS fund_dropdown form_id => 'modify_budget_id' form_name => 'modify_budget_id' selected => "" %]</li> |
| 41 |
<li> |
| 42 |
<label for="sort1">Statistic 1: </label> |
| 43 |
<input type="text" name="sort1" /> |
| 44 |
</li> |
| 45 |
<li> |
| 46 |
<label for="sort2">Statistic 2: </label> |
| 47 |
<input type="text" name="sort2" /> |
| 48 |
</li> |
| 49 |
</ol> |
| 50 |
</fieldset> |
| 51 |
<a id="update_fund" class="btn btn-default">Update fund</a> |
| 52 |
</div> |
| 53 |
<div class="modal-footer"> |
| 54 |
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button> |
| 55 |
</div> |
| 56 |
</div> |
| 57 |
</div> |
| 58 |
</div> |
| 59 |
|
| 60 |
|
| 61 |
[% INCLUDE 'doc-head-open.inc' %] |
18 |
[% INCLUDE 'doc-head-open.inc' %] |
| 62 |
<title>Invoice › Acquisitions › Koha</title> |
19 |
<title>Invoice › Acquisitions › Koha</title> |
| 63 |
[% INCLUDE 'doc-head-close.inc' %] |
20 |
[% INCLUDE 'doc-head-close.inc' %] |
|
Lines 206-212
Link Here
|
| 206 |
<th>Note</th> |
163 |
<th>Note</th> |
| 207 |
<th>Fund</th> |
164 |
<th>Fund</th> |
| 208 |
<th>Encumber while invoice open</th> |
165 |
<th>Encumber while invoice open</th> |
| 209 |
[% UNLESS readonly %]<th> </th>[% END %] |
166 |
[% UNLESS readonly %]<th> </th>[% END %] |
| 210 |
</tr> |
167 |
</tr> |
| 211 |
[% total_adj = 0 %] |
168 |
[% total_adj = 0 %] |
| 212 |
[% FOREACH adjustment IN adjustments %] |
169 |
[% FOREACH adjustment IN adjustments %] |
|
Lines 486-491
Link Here
|
| 486 |
</aside> |
443 |
</aside> |
| 487 |
</div> <!-- /.row --> |
444 |
</div> <!-- /.row --> |
| 488 |
|
445 |
|
|
|
446 |
<div id="updateFund" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="updateReceivedFund" aria-hidden="true"> |
| 447 |
<div class="modal-dialog"> |
| 448 |
<div class="modal-content"> |
| 449 |
<div class="modal-header"> |
| 450 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 451 |
<h3 id="updateReceivedFund">Update received fund</h3> |
| 452 |
</div> |
| 453 |
<div class="modal-body"> |
| 454 |
<p>Updating the fund may change available statistics for the order, please check values before submitting.</p> |
| 455 |
<fieldset class="rows"> |
| 456 |
<ol> |
| 457 |
<li>[% PROCESS fund_dropdown form_id => 'modify_budget_id' form_name => 'modify_budget_id' selected => "" %]</li> |
| 458 |
<li> |
| 459 |
<label for="sort1">Statistic 1: </label> |
| 460 |
<input type="text" name="sort1" /> |
| 461 |
</li> |
| 462 |
<li> |
| 463 |
<label for="sort2">Statistic 2: </label> |
| 464 |
<input type="text" name="sort2" /> |
| 465 |
</li> |
| 466 |
</ol> |
| 467 |
</fieldset> |
| 468 |
<a id="update_fund" class="btn btn-default">Update fund</a> |
| 469 |
</div> |
| 470 |
<div class="modal-footer"> |
| 471 |
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button> |
| 472 |
</div> |
| 473 |
</div> |
| 474 |
</div> |
| 475 |
</div> |
| 476 |
|
| 477 |
<span style="display:none;" id="all_fund_dropdown"> |
| 478 |
[% FOREACH budget IN budgets %] |
| 479 |
[% IF ( budget.b_active ) %] |
| 480 |
<option value="[% budget.b_id | html %]" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]">[% budget.b_txt | html %]</option> |
| 481 |
[% ELSE %] |
| 482 |
<option value="[% budget.b_id | html %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat |html %]">[% budget.b_txt | html %] (inactive)</option> |
| 483 |
[% END %] |
| 484 |
[% END %] |
| 485 |
</span> |
| 486 |
|
| 489 |
[% MACRO jsinclude BLOCK %] |
487 |
[% MACRO jsinclude BLOCK %] |
| 490 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
488 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
| 491 |
[% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] |
489 |
[% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] |
|
Lines 552-558
Link Here
|
| 552 |
$('.b_inactive').remove(); |
550 |
$('.b_inactive').remove(); |
| 553 |
|
551 |
|
| 554 |
$('.showallfunds').click(function() { |
552 |
$('.showallfunds').click(function() { |
| 555 |
var the_dropdown = $(this).parent('span').find('.fund_dropdown'); |
553 |
var the_dropdown = $(this).siblings('.fund_dropdown'); |
| 556 |
var selected = the_dropdown.val(); |
554 |
var selected = the_dropdown.val(); |
| 557 |
if ($(this).is(":checked")) { |
555 |
if ($(this).is(":checked")) { |
| 558 |
the_dropdown.html(disabledBudgetsCopy).val(selected); |
556 |
the_dropdown.html(disabledBudgetsCopy).val(selected); |
| 559 |
- |
|
|