Lines 6-11
Link Here
|
6 |
<title>Koha › Administration › Budgets › Funds › Planning for [% budget_period_description | html %] by [% authcat | html %]</title> |
6 |
<title>Koha › Administration › Budgets › Funds › Planning for [% budget_period_description | html %] by [% authcat | html %]</title> |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
8 |
<style>td.locked { background-image: url('[% interface | html %]/[% theme | html %]/img/locked.png'); padding-left : 20px; background-repeat: no-repeat; background-position: 5px 5px; } a.control { font-size:85%;text-decoration:none; } .plan_entry { text-align: right; width:90%; }</style> |
8 |
<style>td.locked { background-image: url('[% interface | html %]/[% theme | html %]/img/locked.png'); padding-left : 20px; background-repeat: no-repeat; background-position: 5px 5px; } a.control { font-size:85%;text-decoration:none; } .plan_entry { text-align: right; width:90%; }</style> |
|
|
9 |
<script> |
10 |
</script> |
9 |
</head> |
11 |
</head> |
10 |
|
12 |
|
11 |
<body id="admin_aqplan" class="admin"> |
13 |
<body id="admin_aqplan" class="admin"> |
Lines 63-75
Link Here
|
63 |
[% authvals_ro.code | html %]</th> |
65 |
[% authvals_ro.code | html %]</th> |
64 |
[% END %] |
66 |
[% END %] |
65 |
|
67 |
|
66 |
<th class="remaining">Fund remaining</th><th> </th> |
68 |
<th class="remaining">Fund remaining</th> |
|
|
69 |
<th>Actions</th> |
67 |
</tr> |
70 |
</tr> |
68 |
</thead> |
71 |
</thead> |
69 |
|
72 |
|
70 |
<tbody> |
73 |
<tbody> |
71 |
[% FOREACH budget_line IN budget_lines %] |
74 |
[% FOREACH budget_line IN budget_lines %] |
72 |
<tr> |
75 |
<tr id="[% budget_line.budget_id | html %]"> |
73 |
[% IF ( budget_line.budget_lock ) %] |
76 |
[% IF ( budget_line.budget_lock ) %] |
74 |
<td class="locked" title="Fund locked"> |
77 |
<td class="locked" title="Fund locked"> |
75 |
[% ELSE %] |
78 |
[% ELSE %] |
Lines 135-143
Link Here
|
135 |
</table> |
138 |
</table> |
136 |
</td> |
139 |
</td> |
137 |
|
140 |
|
138 |
<td> |
141 |
<td class="actions"> |
139 |
[% UNLESS ( budget_line.budget_lock ) %] |
142 |
[% UNLESS ( budget_line.budget_lock ) %] |
140 |
<input type="button" class="auto_fill_row" data-budget-id="[% budget_line.budget_id | html %]" value="Auto-fill row"/> |
143 |
<input type="button" class="auto_fill_row" data-budget-id="[% budget_line.budget_id | html %]" value="Auto-fill row"/> |
|
|
144 |
<input type="button" class="clear_fields" data-budget-id="[% budget_line.budget_id | html %]" value="Clear"> |
141 |
[% ELSE %] |
145 |
[% ELSE %] |
142 |
<div style="color:red;">not owned</div> |
146 |
<div style="color:red;">not owned</div> |
143 |
[% END %] |
147 |
[% END %] |
Lines 305-310
Link Here
|
305 |
var budget_id = $(this).data("budget-id"); |
309 |
var budget_id = $(this).data("budget-id"); |
306 |
autoFillRow( budget_id ); |
310 |
autoFillRow( budget_id ); |
307 |
}); |
311 |
}); |
|
|
312 |
$(".clear_fields").on("click",function(){ |
313 |
var budget_id = $(this).data("budget-id"); |
314 |
var edit_row = $("#"+budget_id); |
315 |
$(edit_row).find("input").each(function(){ |
316 |
var type = $(this).attr("type"); |
317 |
if (type != "button" && type != "submit" ) { |
318 |
$(this).val(""); |
319 |
$(this).prop('disabled', false); |
320 |
} |
321 |
if ( type == "checkbox" ) { |
322 |
$(this).prop('checked', false); |
323 |
} |
324 |
}); |
325 |
$("#budget_est_"+budget_id).text($("#budget_tot_"+budget_id).prev().text()); |
326 |
$("#budget_est_"+budget_id).css("color","green"); |
327 |
}); |
308 |
}); |
328 |
}); |
309 |
</script> |
329 |
</script> |
310 |
[% END %] |
330 |
[% END %] |
311 |
- |
|
|