|
Lines 366-445
Link Here
|
| 366 |
|
366 |
|
| 367 |
<div id="active"> |
367 |
<div id="active"> |
| 368 |
<h3>Active Budgets</h3> |
368 |
<h3>Active Budgets</h3> |
| 369 |
<table id="activeperiodst"> |
369 |
[% IF ( period_active_loop ) %] |
| 370 |
<thead> |
370 |
<table id="activeperiodst"> |
| 371 |
<tr> |
371 |
<thead> |
| 372 |
<th>Budget name</th> |
|
|
| 373 |
<th>Start date</th> |
| 374 |
<th>End date</th> |
| 375 |
<th>Locked</th> |
| 376 |
<th>Total</th> |
| 377 |
<th>Actions</th> |
| 378 |
</tr> |
| 379 |
</thead> |
| 380 |
<tbody> |
| 381 |
[% FOREACH period_active IN period_active_loop %] |
| 382 |
<tr> |
| 383 |
<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> |
| 384 |
<td>[% period_active.budget_period_startdate | $KohaDates %]</td> |
| 385 |
<td>[% period_active.budget_period_enddate | $KohaDates %]</td> |
| 386 |
<td> |
| 387 |
[% IF ( period_active.budget_period_locked ) %] |
| 388 |
<span style="color:green;">Locked</span> |
| 389 |
[% END %] |
| 390 |
</td> |
| 391 |
<td align='right'>[% period_active.budget_period_total %]</td> |
| 392 |
<td> |
| 393 |
<a href="[% script_name %]?op=add_form&budget_period_id=[% period_active.budget_period_id |html %]">Edit</a> |
| 394 |
<a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_active.budget_period_id %]">Delete</a> |
| 395 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_active.budget_period_id %]">Add Fund</a> |
| 396 |
</td> |
| 397 |
</tr> |
| 398 |
[% END %] |
| 399 |
[% UNLESS ( period_active_loop ) %] |
| 400 |
<tr><td colspan="7">No budget</td></tr> |
| 401 |
[% END %] |
| 402 |
</tbody> |
| 403 |
</table> |
| 404 |
<div class="paginationBar">[% active_pagination_bar %]</div> |
| 405 |
</div> |
| 406 |
<div id="inactive"> |
| 407 |
<h3>Inactive Budgets</h3> |
| 408 |
<table id="inactiveperiodst"> |
| 409 |
<thead> |
| 410 |
<tr> |
372 |
<tr> |
| 411 |
<th>Budget name</th> |
373 |
<th>Budget name</th> |
| 412 |
<th>Start date</th> |
374 |
<th>Start date</th> |
| 413 |
<th>End date</th> |
375 |
<th>End date</th> |
| 414 |
<th>Locked</th> |
376 |
<th>Locked</th> |
| 415 |
<th>Total</th> |
377 |
<th>Total</th> |
| 416 |
<th>Actions</th> |
378 |
<th>Actions</th> |
| 417 |
</tr> |
379 |
</tr> |
| 418 |
</thead> |
380 |
</thead> |
| 419 |
<tbody> |
381 |
<tbody> |
| 420 |
[% FOREACH period_loo IN period_inactive_loop %] |
382 |
[% FOREACH period_active IN period_active_loop %] |
| 421 |
[% IF ( loop.odd ) %] |
383 |
<tr> |
| 422 |
<tr> |
384 |
<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> |
| 423 |
[% ELSE %] |
385 |
<td>[% period_active.budget_period_startdate | $KohaDates %]</td> |
| 424 |
<tr class="highlight"> |
386 |
<td>[% period_active.budget_period_enddate | $KohaDates %]</td> |
| 425 |
[% END %] |
387 |
<td> |
| 426 |
<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> |
388 |
[% IF ( period_active.budget_period_locked ) %] |
| 427 |
<td>[% period_loo.budget_period_startdate | $KohaDates %]</td> |
389 |
<span style="color:green;">Locked</span> |
| 428 |
<td>[% period_loo.budget_period_enddate | $KohaDates %]</td> |
390 |
[% END %] |
| 429 |
<td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span> [% ELSE %][% END %] </td> |
391 |
</td> |
| 430 |
<td align='right'>[% period_loo.budget_period_total %]</td> |
392 |
<td align='right'>[% period_active.budget_period_total %]</td> |
| 431 |
<td> |
393 |
<td> |
| 432 |
<a href="[% period_loo.script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> |
394 |
<a href="[% script_name %]?op=add_form&budget_period_id=[% period_active.budget_period_id |html %]">Edit</a> |
| 433 |
<a href="[% period_loo.script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> |
395 |
<a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_active.budget_period_id %]">Delete</a> |
| 434 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_loo.budget_period_id %]">Add fund</a> |
396 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_active.budget_period_id %]">Add Fund</a> |
| 435 |
</td> |
397 |
</td> |
| 436 |
</tr> |
398 |
</tr> |
| 437 |
[% END %] |
399 |
[% END %] |
| 438 |
[% UNLESS ( period_inactive_loop ) %] |
400 |
</tbody> |
| 439 |
<tr><td colspan="7">No budget</td></tr> |
401 |
</table> |
| 440 |
[% END %] |
402 |
[% ELSE %] |
| 441 |
</tbody> |
403 |
No active budgets |
| 442 |
</table> |
404 |
[% END %] |
|
|
405 |
<div class="paginationBar">[% active_pagination_bar %]</div> |
| 406 |
</div> |
| 407 |
<div id="inactive"> |
| 408 |
<h3>Inactive Budgets</h3> |
| 409 |
[% IF ( period_inactive_loop ) %] |
| 410 |
<table id="inactiveperiodst"> |
| 411 |
<thead> |
| 412 |
<tr> |
| 413 |
<th>Budget name</th> |
| 414 |
<th>Start date</th> |
| 415 |
<th>End date</th> |
| 416 |
<th>Locked</th> |
| 417 |
<th>Total</th> |
| 418 |
<th>Actions</th> |
| 419 |
</tr> |
| 420 |
</thead> |
| 421 |
<tbody> |
| 422 |
[% FOREACH period_loo IN period_inactive_loop %] |
| 423 |
[% IF ( loop.odd ) %] |
| 424 |
<tr> |
| 425 |
[% ELSE %] |
| 426 |
<tr class="highlight"> |
| 427 |
[% END %] |
| 428 |
<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> |
| 429 |
<td>[% period_loo.budget_period_startdate | $KohaDates %]</td> |
| 430 |
<td>[% period_loo.budget_period_enddate | $KohaDates %]</td> |
| 431 |
<td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span> [% ELSE %][% END %] </td> |
| 432 |
<td align='right'>[% period_loo.budget_period_total %]</td> |
| 433 |
<td> |
| 434 |
<a href="[% period_loo.script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> |
| 435 |
<a href="[% period_loo.script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> |
| 436 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_loo.budget_period_id %]">Add fund</a> |
| 437 |
</td> |
| 438 |
</tr> |
| 439 |
[% END %] |
| 440 |
</tbody> |
| 441 |
</table> |
| 442 |
[% ELSE %] |
| 443 |
No inactive budgets |
| 444 |
[% END %] |
| 443 |
<div class="pages">[% inactive_pagination_bar %]</div> |
445 |
<div class="pages">[% inactive_pagination_bar %]</div> |
| 444 |
</div> |
446 |
</div> |
| 445 |
</div> |
447 |
</div> |
| 446 |
- |
|
|