Lines 72-102
Link Here
|
72 |
} |
72 |
} |
73 |
} |
73 |
} |
74 |
|
74 |
|
75 |
|
|
|
76 |
|
77 |
[% IF ( dateformat == 'metric' ) %] |
78 |
dt_add_type_uk_date(); |
79 |
[% END %] |
80 |
$(document).ready(function() { |
75 |
$(document).ready(function() { |
81 |
var tabs = $('#budgetsTabs').tabs(); |
76 |
var tabs = $('#budgetsTabs').tabs(); |
82 |
[% IF ( tab ) %] |
77 |
[% IF ( tab ) %] |
83 |
tabs.tabs('select', [% tab %]); |
78 |
tabs.tabs("option", "active", [% tab %]); |
84 |
[% END %] |
79 |
[% END %] |
85 |
$("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, { |
80 |
$("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, { |
|
|
81 |
"sDom": 't', |
82 |
"aaSorting": [], |
86 |
"aoColumnDefs": [ |
83 |
"aoColumnDefs": [ |
87 |
{ |
84 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
88 |
[% IF ( dateformat == 'metric' ) %] |
85 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
89 |
"aTargets": [ 1, 2 ], "sType": "uk_date", |
|
|
90 |
[% END %] |
91 |
"bSortable": false, 'aTargets':['_all'], |
92 |
}, |
93 |
], |
86 |
], |
94 |
"sPaginationType": "four_button", |
87 |
"bPaginate": false |
95 |
"sDom": 't', |
|
|
96 |
"bAutoWidth": false, |
97 |
"bPaginate": false, |
98 |
"bInfo": false, |
99 |
"bFilter": false, |
100 |
} ) ); |
88 |
} ) ); |
101 |
}); |
89 |
}); |
102 |
</script> |
90 |
</script> |
Lines 329-336
Link Here
|
329 |
<thead> |
317 |
<thead> |
330 |
<tr> |
318 |
<tr> |
331 |
<th>Budget name</th> |
319 |
<th>Budget name</th> |
332 |
<th>Start date</th> |
320 |
<th class="title-string">Start date</th> |
333 |
<th>End date</th> |
321 |
<th class="title-string">End date</th> |
334 |
<th>Locked</th> |
322 |
<th>Locked</th> |
335 |
<th>Total</th> |
323 |
<th>Total</th> |
336 |
<th>Actions</th> |
324 |
<th>Actions</th> |
Lines 340-353
Link Here
|
340 |
[% FOREACH period_active IN period_active_loop %] |
328 |
[% FOREACH period_active IN period_active_loop %] |
341 |
<tr> |
329 |
<tr> |
342 |
<td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_active.budget_period_id %]" title="View funds for [% period_active.budget_period_description %]">[% period_active.budget_period_description %]</a></td> |
330 |
<td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_active.budget_period_id %]" title="View funds for [% period_active.budget_period_description %]">[% period_active.budget_period_description %]</a></td> |
343 |
<td>[% period_active.budget_period_startdate | $KohaDates %]</td> |
331 |
<td><span title="[% period_active.budget_period_startdate %]">[% period_active.budget_period_startdate | $KohaDates %]</span></td> |
344 |
<td>[% period_active.budget_period_enddate | $KohaDates %]</td> |
332 |
<td><span title="[% period_active.budget_period_enddate %]">[% period_active.budget_period_enddate | $KohaDates %]</span></td> |
345 |
<td> |
333 |
<td> |
346 |
[% IF ( period_active.budget_period_locked ) %] |
334 |
[% IF ( period_active.budget_period_locked ) %] |
347 |
<span style="color:green;">Locked</span> |
335 |
<span style="color:green;">Locked</span> |
348 |
[% END %] |
336 |
[% END %] |
349 |
</td> |
337 |
</td> |
350 |
<td align='right'>[% period_active.budget_period_total %]</td> |
338 |
<td class="data">[% period_active.budget_period_total %]</td> |
351 |
<td> |
339 |
<td> |
352 |
<a href="[% script_name %]?op=add_form&budget_period_id=[% period_active.budget_period_id |html %]">Edit</a> |
340 |
<a href="[% script_name %]?op=add_form&budget_period_id=[% period_active.budget_period_id |html %]">Edit</a> |
353 |
<a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_active.budget_period_id %]">Delete</a> |
341 |
<a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_active.budget_period_id %]">Delete</a> |
Lines 368-375
Link Here
|
368 |
<thead> |
356 |
<thead> |
369 |
<tr> |
357 |
<tr> |
370 |
<th>Budget name</th> |
358 |
<th>Budget name</th> |
371 |
<th>Start date</th> |
359 |
<th class="title-string">Start date</th> |
372 |
<th>End date</th> |
360 |
<th class="title-string">End date</th> |
373 |
<th>Locked</th> |
361 |
<th>Locked</th> |
374 |
<th>Total</th> |
362 |
<th>Total</th> |
375 |
<th>Actions</th> |
363 |
<th>Actions</th> |
Lines 383-392
Link Here
|
383 |
<tr class="highlight"> |
371 |
<tr class="highlight"> |
384 |
[% END %] |
372 |
[% END %] |
385 |
<td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_loo.budget_period_id %]" title="View funds for [% period_loo.budget_period_description %]">[% period_loo.budget_period_description %]</a></td> |
373 |
<td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_loo.budget_period_id %]" title="View funds for [% period_loo.budget_period_description %]">[% period_loo.budget_period_description %]</a></td> |
386 |
<td>[% period_loo.budget_period_startdate | $KohaDates %]</td> |
374 |
<td><span title="[% period_loo.budget_period_startdate %]">[% period_loo.budget_period_startdate | $KohaDates %]</span></td> |
387 |
<td>[% period_loo.budget_period_enddate | $KohaDates %]</td> |
375 |
<td><span title="[% period_loo.budget_period_enddate %]">[% period_loo.budget_period_enddate | $KohaDates %]</span></td> |
388 |
<td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span> [% ELSE %][% END %] </td> |
376 |
<td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span> [% ELSE %][% END %] </td> |
389 |
<td align='right'>[% period_loo.budget_period_total %]</td> |
377 |
<td class="data">[% period_loo.budget_period_total %]</td> |
390 |
<td> |
378 |
<td> |
391 |
<a href="[% period_loo.script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> |
379 |
<a href="[% period_loo.script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> |
392 |
<a href="[% period_loo.script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> |
380 |
<a href="[% period_loo.script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> |
393 |
- |
|
|