@@ -, +, @@
---
.../intranet-tmpl/prog/en/modules/admin/aqplan.tt | 26 +++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt
@@ -6,6 +6,8 @@
Koha › Administration › Budgets › Funds › Planning for [% budget_period_description | html %] by [% authcat | html %]
[% INCLUDE 'doc-head-close.inc' %]
+
@@ -63,13 +65,14 @@
[% authvals_ro.code | html %]
[% END %]
- Fund remaining
+ Fund remaining
+ Actions
[% FOREACH budget_line IN budget_lines %]
-
+
[% IF ( budget_line.budget_lock ) %]
[% ELSE %]
@@ -135,9 +138,10 @@
-
+
[% UNLESS ( budget_line.budget_lock ) %]
+
[% ELSE %]
not owned
[% END %]
@@ -305,6 +309,22 @@
var budget_id = $(this).data("budget-id");
autoFillRow( budget_id );
});
+ $(".clear_fields").on("click",function(){
+ var budget_id = $(this).data("budget-id");
+ var edit_row = $("#"+budget_id);
+ $(edit_row).find("input").each(function(){
+ var type = $(this).attr("type");
+ if (type != "button" && type != "submit" ) {
+ $(this).val("");
+ $(this).prop('disabled', false);
+ }
+ if ( type == "checkbox" ) {
+ $(this).prop('checked', false);
+ }
+ });
+ $("#budget_est_"+budget_id).text($("#budget_tot_"+budget_id).prev().text());
+ $("#budget_est_"+budget_id).css("color","green");
+ });
});
[% END %]
--