3 [% USE AuthorisedValues %]
6 [% PROCESS 'i18n.inc' %]
7 [% PROCESS 'patron-search.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
11 <title>[% FILTER collapse %]
12 [% IF op == 'add_form' %]
13 [% IF ( budget_id ) %]
14 [% IF ( budget_name ) %]
15 [% tx("Modify fund '{fund_name}'", { fund_name = budget_name }) | html %]
17 [% t("Modify fund") | html %]
20 [% IF ( budget_parent_name ) %]
21 [% tx("Add fund to '{fund_parent}'", {fund_parent = budget_parent_name}) %]
23 [% t("New fund") | html %]
27 [% IF op == 'list' || op == 'add_form' %]
28 [% IF budget_period_id %]
29 [% tx("Funds for budget '{budget}'", { budget = budget_period_description }) %]
31 [% t("Funds") | html %]
34 [% IF op == 'delete_confirm' %]
35 [% tx("Confirm deletion of fund '{fund}'", {fund = budget_name}) %] ›
37 [% t("Funds") | html %] ›
38 [% t("Budgets") | html %] ›
39 [% t("Administration") | html %] ›
40 [% t("Koha") | html %]
42 [% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") | $raw %]
43 [% INCLUDE 'doc-head-close.inc' %]
46 <body id="admin_aqbudgets" class="admin">
47 [% WRAPPER 'header.inc' %]
48 [% INCLUDE 'budgets-admin-search.inc' %]
51 [% WRAPPER 'sub-header.inc' %]
52 [% WRAPPER breadcrumbs %]
53 [% WRAPPER breadcrumb_item %]
54 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
56 [% WRAPPER breadcrumb_item %]
57 <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a>
61 [% IF budget_period_id %]
62 [% WRAPPER breadcrumb_item %]
63 <a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a>
65 [% WRAPPER breadcrumb_item bc_active= 1 %]
66 [% tx("Funds for budget '{budget}'", { budget = budget_period_description }) %]
69 [% WRAPPER breadcrumb_item bc_active= 1 %]
75 [% IF op == 'add_form' %]
76 [% WRAPPER breadcrumb_item %]
77 <a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a>
79 [% IF ( budget_period_id ) %]
80 [% WRAPPER breadcrumb_item %]
81 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | uri %]">[% tx("Funds for '{budget}'", { budget = budget_period_description }) %]</a>
84 [% IF ( budget_id ) %]
85 [% WRAPPER breadcrumb_item bc_active= 1 %]
86 [% IF ( budget_name ) %]
87 [% tx("Modify fund '{fund_name}'", { fund_name = budget_name }) | html %]
89 <span>Modify fund</span>
93 [% WRAPPER breadcrumb_item bc_active= 1 %]
94 [% IF ( budget_parent_name ) %]
95 [% tx("Add fund to '{fund_parent}'", {fund_parent = budget_parent_name}) %]
103 [% IF op == 'delete_confirm' %]
104 [% WRAPPER breadcrumb_item %]
105 <a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a>
107 [% WRAPPER breadcrumb_item bc_active= 1 %]
108 [% tx("Confirm deletion of fund '{fund}'", {fund = budget_name}) %]
111 [% END #/ WRAPPER breadcrumbs %]
112 [% END #/ WRAPPER sub-header.inc %]
114 <div class="main container-fluid">
116 <div class="col-sm-10 col-sm-push-2">
118 [% INCLUDE 'messages.inc' %]
120 [% UNLESS op == 'delete_confirm' %][% INCLUDE 'budgets-admin-toolbar.inc' %][% END %]
122 [% IF (error_not_authorised_to_modify) %]
123 <div class="dialog alert">
124 <p>You are not authorized to modify this fund</p>
128 [% IF op == 'list' %]
131 [% IF budget_period_id %]
132 [% tx("Funds for budget '{budget}'", {budget = budget_period_description}) %]
138 [% INCLUDE 'budgets-active-currency.inc' %]
142 [% UNLESS budget_period_id %]
143 <div class="toolbar btn-toolbar">
144 <span class="actions">
145 <a href="#" id="expand_all">Expand all</a> |
146 <a href="#" id="collapse_all">Collapse all</a> |
147 <a href="#" id="hide_inactive">Hide inactive budgets</a> |
148 <a href="#" id="show_inactive">Show inactive budgets</a>
152 <div class="page-section">
153 <table id="budgeth" class="group">
157 <th>Budget period description</th>
160 <th>Base-level allocated</th>
161 <th>Base-level ordered</th>
162 <th>Total ordered</th>
163 <th>Base-level spent</th>
165 <th>Base-level available</th>
166 <th>Total available</th>
167 <th class="noExport">Actions</th>
174 <th colspan="2" style="text-align: left;" nowrap="nowrap">Period allocated [% IF budget_period_total %][% budget_period_total | $Price %][% END %] </th>
175 <th nowrap="nowrap" class="data"> [% period_alloc_total | $Price %]</th>
177 <th class="data">[% ordered_total | $Price %]</th>
179 <th class="data">[% spent_total | $Price %]</th>
181 <th class="data">[% available_total | $Price %]</th>
186 [% FOREACH budget IN budgets %]
187 [% IF budget.budget_parent_id %]
188 <tr data-tt-id="[% budget.budget_id | html %]" data-tt-parent-id="[% budget.budget_parent_id | html %]">
190 <tr data-tt-id="[% budget.budget_id | html %]">
192 <td>[% budget.budget_period_active | html %]</td>
193 <td>Budget [% budget.budget_period_description | html %] [id=[% budget.budget_period_id | html %]][% UNLESS budget.budget_period_active %] (inactive)[% END %]</td>
194 <td>[% budget.budget_code | html %]</td>
195 <td>[% budget.budget_name | html %]</td>
197 <span class="total_amount" data-parent_id="[% budget.budget_parent_id | html %]" data-self_id="[% budget.budget_id | html %]">[% budget.budget_amount | $Price %]</span>
200 [% IF budget.budget_parent_id %]
201 <span class="child_fund_amount">[% budget.budget_ordered | $Price %]</span>
203 <span class="total_amount">[% budget.budget_ordered | $Price %]</span>
207 [% IF budget.budget_parent_id %]
208 <span class="child_fund_amount">[% budget.total_ordered | $Price %]</span>
210 <span class="total_amount">[% budget.total_ordered | $Price %]</span>
214 [% IF budget.budget_parent_id %]
215 <span class="child_fund_amount">[% budget.budget_spent | $Price %]</span>
217 <span class="total_amount">[% budget.budget_spent | $Price %]</span>
221 [% IF budget.budget_parent_id %]
222 <span class="child_fund_amount">[% budget.total_spent | $Price %]</span>
224 <span class="total_amount">[% budget.total_spent | $Price %]</span>
229 [% BLOCK colorcellvalue %]
231 <span class="total_amount" data-parent_id="[% budget.budget_parent_id | html %]" data-self_id="[% budget.budget_id | html %]" style="color: green;">
232 [% ELSIF (value < 0) %]
233 <span class="total_amount" data-parent_id="[% budget.budget_parent_id | html %]" data-self_id="[% budget.budget_id | html %]" style="color: red;">
235 <span class="totalamount">
241 [% INCLUDE colorcellvalue value=budget.budget_remaining parent=budget.budget_parent_id %]
244 [% INCLUDE colorcellvalue value=budget.total_remaining parent=budget.budget_parent_id %]
246 [% IF ( budget.budget_lock ) %]
247 <td> <span></span> </td>
250 <div class="btn-group dropup">
251 <a class="btn btn-default btn-xs dropdown-toggle" id="budgetactions[% budget.budget_id | html %]_[% budget.budget_period_id | html %]" role="button" data-toggle="dropdown" href="#">
252 Actions <b class="caret"></b>
254 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetactions[% budget.budget_id | html %]_[% budget.budget_period_id | html %]">
255 <li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a></li>
256 [% IF budget.budget_has_children %]
257 <li class="disabled"><a href="#" class="deletefund-disabled" data-toggle="tooltip" data-placement="left" title="This fund has sub funds."><i class="fa fa-trash-can"></i> Delete</a></li>
259 <li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=delete_confirm&budget_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a></li>
261 <li><a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_parent_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-plus"></i> Add sub fund</a></li>
270 </div> <!-- /.page-section -->
273 <div class="dialog message">No fund found</div>
276 [% END %] <!-- list -->
278 <!-- ********************************************************************************************** -->
279 <!-- create add/mod entry form -->
280 [% IF op == 'add_form' && !error_not_authorised_to_modify %]
281 <form action="/cgi-bin/koha/admin/aqbudgets.pl" id="edit_fund" name="Aform" method="post">
282 [% INCLUDE 'csrf-token.inc' %]
284 [% IF ( budget_id ) %]
285 [% IF ( budget_period_description ) %]
286 [% tx("Modify fund '{fund_name}' for budget '{budget}'", { fund_name = budget_name, budget = budget_period_description }) | html %]
288 [% tx("Modify fund '{fund_name}'", { fund_name = budget_name }) | html %]
291 [% IF ( budget_parent_name ) %]
292 [% tx("Add fund to '{fund_parent}'", {fund_parent = budget_parent_name}) %]
294 [% t("New fund") | html %]
298 <fieldset class="rows">
299 <legend class="sr-only">Fund details</legend>
301 <input type="hidden" name="op" value="cud-add_validate" />
302 <input type="hidden" name="checked" value="0" />
304 [% IF ( budget_parent_id ) %]
306 <span class="label">Fund parent: </span>
307 [% budget_parent_name | html %]
308 [% budget_parent_id | html %] - [% budget_parent_name | html %]
309 <input type="hidden" name="budget_parent_id" value="[% budget_parent_id | html %]" />
313 <label class="required" for="budget_code">Fund code: </label>
314 <input type="text" name="budget_code" id="budget_code" class="focus" value="[% budget_code | html %]" size="30" />
318 <label class="required" for="budget_name">Fund name: </label>
319 <input type="text" name="budget_name" id="budget_name" value="[% budget_name | html %]" size="60" />
323 <label for="budget_amount" class="required">Amount: </label>
324 <input type="text" name="budget_amount" id="budget_amount" value="[% budget_amount | $Price on_editing => 1 %]" size="8" />
328 <label for="budget_encumb">Warning at (%): </label>
329 <input type="text" name="budget_encumb" id="budget_encumb" value="[% budget_encumb | html %]" size="10" />
330 <span class="hint">0 to disable</span>
334 <label for="budget_expend">Warning at (amount): </label>
335 <input type="text" name="budget_expend" id="budget_expend" value="[% budget_expend | $Price on_editing => 1 %]" size="10" />
336 <span class="hint">0 to disable</span>
340 <span class="label">Owner: </span>
341 [% IF budget_owner %]
342 <span id="budget_owner_name">
343 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% budget_owner.borrowernumber | uri %]">
344 [% budget_owner.firstname | html %] [% budget_owner.surname | html %]
348 <span id="budget_owner_name"></span>
350 <a id="edit_owner" href="#patron_search_modal_owner" data-toggle="modal"><i class="fa fa-search"></i> Select owner</a>
351 <a id="remove_owner" href="#"><i class="fa fa-trash-can"></i> Remove owner</a>
352 <input type="hidden" name="budget_owner_id" id="budget_owner_id"
353 value="[% budget_owner.borrowernumber | html %]" />
357 [% IF budget_has_children %]
360 <input type="checkbox" id="set_owner_to_children" name="set_owner_to_children" value="1" />
361 <span>Update all sub funds with this owner</span>
363 <span class="hint">Selecting this option will overwrite existing fund owners, if any</span>
368 <span class="label">Users:</span>
369 <ul style="float:left;" id="budget_users">
370 [% FOREACH user IN budget_users %]
371 <li id="user_[% user.borrowernumber | html %]">
372 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% user.borrowernumber | uri %]">
373 [% user.firstname | html %] [% user.surname | html %]
375 • <a href="#" class="del_user" data-borrowernumber="[% user.borrowernumber | html %]"><i class="fa fa-trash-can"></i> Remove</a>
378 <li><a href="#patron_search_modal_users" id="add_user_button" data-toggle="modal"><i class="fa fa-plus"></i> Add users</a></li>
380 <input type="hidden" name="budget_users_ids" id="budget_users_id" value="[% budget_users_ids | html %]" />
383 <label for="budget_branchcode">Library: </label>
384 <select name="budget_branchcode" id="budget_branchcode">
385 <option value=""></option>
386 [% PROCESS options_for_libraries libraries => Branches.all( selected => budget_branchcode, unfiltered => 1 ) %]
391 <label for="budget_permission">Restrict access to: </label>
392 <select name="budget_permission" id="budget_permission">
393 [% IF ( budget_perm_0 ) %]
394 <option value="0" selected="selected">
401 [% IF ( budget_perm_1 ) %]
402 <option value="1" selected="selected">
409 [% IF ( budget_perm_3) %]
410 <option value="3" selected="selected">
417 [% IF ( budget_perm_2 ) %]
418 <option value="2" selected="selected">
422 Owner, users and library
428 <label for="budget_notes">Notes: </label>
429 <textarea name="budget_notes" id="budget_notes" cols="80" rows="6">[% budget_notes | html %]</textarea>
433 <label for="authorised_value_category1">Statistic 1 done on: </label>
434 <select name="sort1_authcat" id="authorised_value_category1">
435 <option value=""></option>
436 [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => sort1_authcat ) %]
440 <label for="authorised_value_category2">Statistic 2 done on: </label>
441 <select name="sort2_authcat" id="authorised_value_category2">
442 <option value=""></option>
443 [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => sort2_authcat ) %]
448 [% IF ( budget_id ) %]
449 <input type="hidden" name="budget_id" value="[% budget_id | html %]" />
453 <fieldset class="action">
454 <input type="submit" class="btn btn-primary" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/aqbudgets.pl">Cancel</a>
455 <input type="hidden" name="budget_period_id" value="[% budget_period_id | html %]" />
459 [% END %] <!-- add_form -->
461 [% IF op == 'delete_confirm' %]
462 <div class="dialog alert">
463 <h1>[% tx("Confirm deletion of fund '{fund}'?", {fund = budget_name}) %]</h1>
464 <p>If you delete this fund, all orders linked to this fund will be deleted!</p>
467 <th scope="row">Fund amount:</th>
468 <td>[% budget_amount | $Price %]</td>
472 <form action="/cgi-bin/koha/admin/aqbudgets.pl" method="post">
473 [% INCLUDE 'csrf-token.inc' %]
474 <input type="hidden" name="op" value="cud-delete_confirmed" />
475 <input type="hidden" name="budget_id" value="[% budget_id | html %]" />
476 <input type="hidden" name="budget_period_id" value="[% budget_period_id | html %]" />
477 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this fund</button>
479 <form action="/cgi-bin/koha/admin/aqbudgets.pl" method="get">
480 <button type="submit" class="deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button>
486 </div> <!-- /.col-sm-10.col-sm-push-2 -->
488 <div class="col-sm-2 col-sm-pull-10">
491 [% IF op == 'list' %]
492 <form action="/cgi-bin/koha/admin/aqbudgets.pl" method="get">
493 <fieldset class="brief" id="fundfilters">
494 <h4>Fund filters</h4>
497 <label for="filter_budgetbranch2">Library: </label>
498 <select name="filter_budgetbranch" id="filter_budgetbranch2">
499 <option value=""></option>
500 [% PROCESS options_for_libraries libraries => Branches.all( selected => selected_branchcode, unfiltered => 1 ) %]
506 <label for="periods">Budget:</label>
507 <select id="periods" name="budget_period_id">
508 <option value="">All budgets</option>
509 [% FOR period IN periods %]
510 [% IF budget_period_id && period.budget_period_id == budget_period_id %]
511 <option value="[% period.budget_period_id | html %]" selected="selected">[% period.budget_period_description | html %]</option>
513 <option value="[% period.budget_period_id | html %]">[% period.budget_period_description | html %]</option>
521 <label for="show_mine">Show my funds only:</label>
522 [% IF ( show_mine ) %]
523 <input type="checkbox" id="show_mine" name="show_mine" value="1" checked="checked" />
525 <input type="checkbox" id="show_mine" name="show_mine" value="1" />
530 <fieldset class="action">
531 <input type="hidden" name="op" value="list" />
532 <input type="submit" class="submit" name="filter" value="Go" />
536 [% INCLUDE 'acquisitions-menu.inc' %]
538 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
539 </div> <!-- /.row -->
541 [% MACRO jsinclude BLOCK %]
542 [% Asset.js("js/acq.js") | $raw %]
543 [% IF op == 'add_form' %]
544 [% INCLUDE 'js-patron-format.inc' %]
548 function select_user(borrowernumber, borrower) {
550 if (borrowernumber) {
551 var ownerlink = $patron_to_html( borrower, { display_cardnumber: false, url: true } );
552 $('#budget_owner_name').html(ownerlink);
553 $('#budget_owner_id').val(borrowernumber);
557 function ownerRemove() {
558 $('#budget_owner_name').empty();
559 $('#budget_owner_id').val('');
562 function add_user(borrowernumber, borrowername) {
563 var ids = $("#budget_users_id").val().split(':');
564 if(borrowernumber && ids.indexOf(borrowernumber.toString()) == -1) {
565 var li = '<li id="user_' + borrowernumber + '">'
566 + '<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber='
567 + borrowernumber + '">' + borrowername + '</a> '
568 + ' • <a data-borrowernumber="' + borrowernumber + '" class="del_user" href="#"><i class="fa fa-trash-can"></i> '+_("Remove")+'</a> '
570 $("#budget_users").prepend(li);
571 ids.push(borrowernumber);
572 $("#budget_users_id").val(ids.join(':'));
579 function del_user(borrowernumber) {
580 var ids = $("#budget_users_id").val().split(':');
581 if (borrowernumber) {
582 var idx = ids.indexOf(borrowernumber+'');
585 $("#budget_users_id").val(ids.join(':'));
586 $("li#user_" + borrowernumber).remove();
596 if (!(isNotNull(f.budget_code,1))) {
597 _alertString += _("- Budget code cannot be blank") + "\n";
600 if (!(isNotNull(f.budget_name,1))) {
601 _alertString += _("- Budget name cannot be blank") + "\n";
604 if (!(isNotNull(f.budget_amount,1))) {
605 _alertString += _("- Budget amount cannot be blank") + "\n";
609 if (typeof(f.budget_id ) != "undefined") {
610 budgetId = f.budget_id.value
615 // hack to test if selected parent_id in scrolling-list...
616 // if value == 'undef' its got a selected_parent :/
617 if(f.budget_parent_id){
618 var chkAdd = f.budget_parent_id.value ;
619 if ( typeof(chkAdd ) != "undefined") {
620 newBudgetParent = f.budget_parent_id.value
622 newBudgetParent = f.budget_parent_id.item(0).value
625 if (budgetId > 0) { ; //its a mod ...
626 // if parent == curent-budget, fail...
627 if ( newBudgetParent == budgetId ) {
628 _alertString += _("- Budget parent is current budget") + "\n";
631 else if (newBudgetParent) {
632 var result = checkBudgetParent( budgetId , newBudgetParent );
634 _alertString += result;
641 var budgetTotal = Math.abs(f.budget_amount.value);
642 var result = budgetExceedsParent (budgetTotal, budgetId, newBudgetParent, f.budget_period_id.value)
644 _alertString += result;
647 if (_alertString.length==0) {
648 document.Aform.submit();
650 alertString2 = _("Form not submitted because of the following problem(s)");
651 alertString2 += "\n------------------------------------------------------------------------------------\n\n";
652 alertString2 += _alertString;
656 $(document).ready(function(){
657 $("#remove_owner").on("click",function(e){
661 $("body").on("click",".del_user",function(e){
663 var borrowernumber = $(this).data("borrowernumber");
664 del_user(borrowernumber);
666 $("#edit_fund").on("submit",function(e){
674 [% INCLUDE 'select2.inc' %]
675 [% SET columns = ['cardnumber','name','category','branch','action'] %]
676 [% SET filter = 'funds_users' %]
677 [% PROCESS patron_search_modal columns => columns, modal_title => t("Add users"), patron_search_modal_id => 'patron_search_modal_users', table_id => 'patron_search_modal_users_table' %]
678 [% PROCESS patron_search_js columns => columns, actions => ["add"], preview_on_name_click => 1, table_id => 'patron_search_modal_users_table' %]
679 [% SET filter = 'funds_owners' %]
680 [% PROCESS patron_search_modal columns => columns, modal_title => t("Select owner"), patron_search_modal_id => 'patron_search_modal_owner', table_id => 'patron_search_modal_owner_table' %]
681 [% PROCESS patron_search_js columns => columns, actions => ["select"], preview_on_name_click => 1, table_id => 'patron_search_modal_owner_table' %]
683 [% ELSIF op == 'list' %]
684 [% INCLUDE 'datatables.inc' %]
685 [% INCLUDE 'columns_settings.inc' %]
686 [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
689 $(document).ready(function() {
691 var oTable = KohaTable("budgeth", {
692 "drawCallback": function ( oSettings ) {
693 if ( oSettings.aiDisplay.length == 0 )
698 var nTrs = $('#budgeth tbody tr');
699 var iColspan = nTrs[0].getElementsByTagName('td').length;
701 for ( var i=0 ; i<nTrs.length ; i++ )
703 var iDisplayIndex = oSettings._iDisplayStart + i;
704 var sGroup = oSettings.aoData[ oSettings.aiDisplay[iDisplayIndex] ]._aData[1];
705 if ( sGroup != sLastGroup )
707 var nGroup = document.createElement( 'tr' );
708 var nCell = document.createElement( 'td' );
709 nCell.colSpan = iColspan;
710 nCell.className = "group";
711 nCell.innerHTML = sGroup;
712 nGroup.appendChild( nCell );
713 nTrs[i].parentNode.insertBefore( nGroup, nTrs[i] );
718 "footerCallback": function ( row, data, start, end, display ) {
719 var api = this.api(), data;
720 footer_column_sum( api, [ 4, 6, 8, 10 ], 2 );
723 { "visible": false, "targets": [ 0, 1 ] },
724 { "orderable": false, "targets": ["_all"] }
727 "orderFixed": [[ 1, 'asc' ]],
732 $(oTable).treetable({
735 $(oTable).treetable('expandAll');
736 $("#expand_all").click(function(e){
738 $(oTable).treetable('expandAll');
740 $("#collapse_all").click(function(e){
742 $(oTable).treetable('collapseAll');
745 [% UNLESS budget_period_id %]
746 $("#hide_inactive").click(function(e){
748 oTable.fnFilter( 1, 0 ); // Show only active=1
750 $("#show_inactive").click(function(e){
752 oTable.fnFilter( '', 0 );
754 $("#hide_inactive").click();
756 oTable.fnAddFilters("filter", 750);
759 $(".deletefund-disabled").tooltip().on("click", function(e){
761 alert(_("This fund has sub funds. It cannot be deleted."));
764 $('[data-toggle="tooltip"]').tooltip();
769 [% INCLUDE 'intranet-bottom.inc' %]