|
Lines 160-171
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
| 160 |
} |
160 |
} |
| 161 |
|
161 |
|
| 162 |
var nTrs = $('#budgeth tbody tr'); |
162 |
var nTrs = $('#budgeth tbody tr'); |
| 163 |
var iColspan = nTrs[0].getElementsByTagName('td').length; |
163 |
var iColspan = nTrs[1].getElementsByTagName('td').length; |
| 164 |
var sLastGroup = ""; |
164 |
var sLastGroup = ""; |
| 165 |
for ( var i=0 ; i<nTrs.length ; i++ ) |
165 |
for ( var i=0 ; i<nTrs.length ; i++ ) |
| 166 |
{ |
166 |
{ |
| 167 |
var iDisplayIndex = oSettings._iDisplayStart + i; |
167 |
var iDisplayIndex = oSettings._iDisplayStart + i; |
| 168 |
var sGroup = oSettings.aoData[ oSettings.aiDisplay[iDisplayIndex] ]._aData[0]; |
168 |
var sGroup = oSettings.aoData[ oSettings.aiDisplay[iDisplayIndex] ]._aData[1]; |
| 169 |
if ( sGroup != sLastGroup ) |
169 |
if ( sGroup != sLastGroup ) |
| 170 |
{ |
170 |
{ |
| 171 |
var nGroup = document.createElement( 'tr' ); |
171 |
var nGroup = document.createElement( 'tr' ); |
|
Lines 180-189
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
| 180 |
} |
180 |
} |
| 181 |
}, |
181 |
}, |
| 182 |
"aoColumnDefs": [ |
182 |
"aoColumnDefs": [ |
| 183 |
{ "bVisible": false, "aTargets": [ 0 ] } |
183 |
{ "bVisible": false, "aTargets": [ 0, 1 ] } |
| 184 |
], |
184 |
], |
| 185 |
"aaSortingFixed": [[ 0, 'asc' ]], |
185 |
"aaSortingFixed": [[ 1, 'asc' ]], |
| 186 |
"aaSorting": [[ 1, 'asc' ]], |
186 |
"aaSorting": [[ 2, 'asc' ]], |
| 187 |
'bSort': false, |
187 |
'bSort': false, |
| 188 |
'bPaginate': false, |
188 |
'bPaginate': false, |
| 189 |
"bAutoWidth": false |
189 |
"bAutoWidth": false |
|
Lines 202-210
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
| 202 |
$(oTable).treetable('collapseAll'); |
202 |
$(oTable).treetable('collapseAll'); |
| 203 |
}); |
203 |
}); |
| 204 |
|
204 |
|
|
|
205 |
$("#hide_inactive").click(function(e){ |
| 206 |
e.preventDefault(); |
| 207 |
oTable.fnFilter( 0, 0 ); // Hide active=0 |
| 208 |
}); |
| 209 |
$("#show_inactive").click(function(e){ |
| 210 |
e.preventDefault(); |
| 211 |
oTable.fnFilter( '', 0 ); |
| 212 |
}); |
| 213 |
|
| 205 |
$("#filterbutton").click(function() { |
214 |
$("#filterbutton").click(function() { |
| 206 |
$("#fundfilters").slideToggle(0); |
215 |
$("#fundfilters").slideToggle(0); |
| 207 |
}); |
216 |
}); |
|
|
217 |
$("#hide_inactive").click(); |
| 208 |
}); |
218 |
}); |
| 209 |
//]]> |
219 |
//]]> |
| 210 |
</script> |
220 |
</script> |
|
Lines 256-265
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
| 256 |
<table id="budgeth"> |
266 |
<table id="budgeth"> |
| 257 |
<caption> |
267 |
<caption> |
| 258 |
<span class="actions"><a href="#" id="expand_all">Expand all</a> |
268 |
<span class="actions"><a href="#" id="expand_all">Expand all</a> |
| 259 |
| <a href="#" id="collapse_all">Collapse all</a></span> |
269 |
| <a href="#" id="collapse_all">Collapse all</a> |
|
|
270 |
| <a href="#" id="hide_inactive">Hide inactive budgets</a> |
| 271 |
| <a href="#" id="show_inactive">Show inactive budgets</a></span> |
| 260 |
</caption> |
272 |
</caption> |
| 261 |
<thead> |
273 |
<thead> |
| 262 |
<tr> |
274 |
<tr> |
|
|
275 |
<th>Active</th> |
| 263 |
<th>Budget period description</th> |
276 |
<th>Budget period description</th> |
| 264 |
<th>Fund code</th> |
277 |
<th>Fund code</th> |
| 265 |
<th>Fund name</th> |
278 |
<th>Fund name</th> |
|
Lines 274-279
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
| 274 |
<tfoot> |
287 |
<tfoot> |
| 275 |
<tr> |
288 |
<tr> |
| 276 |
<th></th> |
289 |
<th></th> |
|
|
290 |
<th></th> |
| 277 |
<th colspan="2" style="text-align: left;" nowrap="nowrap">Period allocated [% IF ( budget_period_total ) %][% budget_period_total %][% END %] </th> |
291 |
<th colspan="2" style="text-align: left;" nowrap="nowrap">Period allocated [% IF ( budget_period_total ) %][% budget_period_total %][% END %] </th> |
| 278 |
<th nowrap="nowrap" class="data"> [% period_alloc_total %]</th> |
292 |
<th nowrap="nowrap" class="data"> [% period_alloc_total %]</th> |
| 279 |
<th nowrap="nowrap" class="data"> [% base_alloc_total %]</th> |
293 |
<th nowrap="nowrap" class="data"> [% base_alloc_total %]</th> |
|
Lines 287-292
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
| 287 |
[% FOREACH budget IN budgets %] |
301 |
[% FOREACH budget IN budgets %] |
| 288 |
|
302 |
|
| 289 |
<tr data-tt-id="[% budget.budget_id %]" [% IF ( budget.budget_parent_id ) %]data-tt-parent-id="[% budget.budget_parent_id %]"[% END %]> |
303 |
<tr data-tt-id="[% budget.budget_id %]" [% IF ( budget.budget_parent_id ) %]data-tt-parent-id="[% budget.budget_parent_id %]"[% END %]> |
|
|
304 |
<td>[% budget.budget_period_active %]</td> |
| 290 |
<td>Budget [% budget.budget_period_description %]</td> |
305 |
<td>Budget [% budget.budget_period_description %]</td> |
| 291 |
<td>[% budget.budget_code_indent %]</td> |
306 |
<td>[% budget.budget_code_indent %]</td> |
| 292 |
<td>[% budget.budget_name %]</td> |
307 |
<td>[% budget.budget_name %]</td> |
| 293 |
- |
|
|