Bug 11401: Add support for Norwegian national library card
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / aqbudgetperiods.tt
1 [% USE KohaDates %]
2 [% USE format %]
3 [% USE Price %]
4
5 [%- BLOCK action_menu %]
6     <div class="dropdown">
7         <a class="btn btn-mini dropdown-toggle" id="budgetmenu_[% block_budget_id %]" role="button" data-toggle="dropdown" href="#">
8            Actions <b class="caret"></b>
9         </a>
10         <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetmenu_[% block_budget_id %]">
11               <li>
12                   <a href="[% script_name %]?op=add_form&amp;budget_period_id=[% block_budget_id |html %]"><i class="icon-pencil"></i> Edit</a>
13               </li>
14               <li>
15                   <a href="[% script_name %]?op=delete_confirm&amp;budget_period_id=[% block_budget_id %]"><i class="icon-remove"></i> Delete</a>
16               </li>
17               <li>
18                   <a href="[% script_name %]?op=duplicate_form&amp;budget_period_id=[% block_budget_id %]"><i class="icon-copy"></i> Duplicate</a>
19               </li>
20               <li>
21                   <a href="[% script_name %]?op=close_form&amp;budget_period_id=[% block_budget_id %]"><i class="icon-remove-sign"></i> Close</a>
22               </li>
23               <li>
24                   <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_period_id=[% block_budget_id %]"><i class="icon-plus"></i> Add fund</a>
25               </li>
26         </ul>
27     </div>
28 [% END -%]
29
30 [% INCLUDE 'doc-head-open.inc' %]
31 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
32 [% INCLUDE 'doc-head-close.inc' %]
33 [% INCLUDE 'calendar.inc' %]
34 [% INCLUDE 'datatables.inc' %]
35 [% IF close_form %]
36     <link href="[% interface %]/lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css" rel="stylesheet" type="text/css" />
37     <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/treetable/jquery.treetable.js"></script>
38 [% END %]
39 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
40 <script type="text/javascript">
41 // #################################################################################
42 // Javascript
43 // #################################################################################
44     function CheckDuplicateForm(f){
45             var ok=1;
46             var _alertString="";
47             var alertString="";
48             if(!(isNotNull(f.budget_period_startdate,1))){
49               _alertString += "\n- " + _("Start date missing");
50             }
51             if (!(isNotNull(f.budget_period_enddate,1))){
52               _alertString += "\n- " + _("End date missing");
53             }
54             if( f.budget_period_startdate > f.budget_period_enddate ) {
55               _alertString += "\n- " + _("Start date must be before end date");
56             }
57             if (!(isNotNull(f.budget_period_description,1))){
58               _alertString += "\n- " + _("Budget description missing");
59             }
60
61             if(_alertString.length==0){
62               f.submit();
63             } else {
64               alertString += _("Form not submitted because of the following problem(s)");
65               alertString += "\n-----------------------------------------\n";
66               alertString += _alertString;
67               alert(alertString);
68             }
69     }
70     function Check(f) {
71             var ok=1;
72             var _alertString="";
73             var alertString2;
74
75             if (!(isNotNull(f.budget_period_startdate,1))) {
76                     _alertString += "\n- " + _("Start date missing");
77             }
78
79             if (!(isNotNull(f.budget_period_enddate,1))) {
80                     _alertString += "\n- " + _("End date missing");
81             }
82
83             if ( f.budget_period_startdate >   f.budget_period_enddate )  {
84                     _alertString += "\n- " + _("Start date must be before end date");
85             }
86
87             if (!(isNotNull(f.budget_period_description,1))) {
88                     _alertString += "\n- " + _("Description missing");
89             }
90
91             if (!(isNum(f.budget_period_total))) {
92                     _alertString += "\n- " + _("Amount must be a valid number, or empty");
93             }
94
95 /*
96                         checkBudgetTotal(f) {
97                         }
98 */
99
100             if (_alertString.length==0) {
101                     f.submit();
102             } else {
103                     alertString2  = _("Form not submitted because of the following problem(s)");
104                     alertString2 += "\n------------------------------------------------------------------------------------\n";
105                     alertString2 += _alertString;
106                     alert(alertString2);
107             }
108     }
109
110     $(document).ready(function() {
111         var tabs = $('#budgetsTabs').tabs();
112         [% IF ( tab ) %]
113             tabs.tabs("option", "active", [% tab %]);
114         [% END %]
115         $("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, {
116             "sDom": 't',
117             "aaSorting": [],
118             "aoColumnDefs": [
119                 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
120                 { "sType": "title-string", "aTargets" : [ "title-string" ] }
121             ],
122             "bPaginate": false,
123             'bAutoWidth': false
124         } ) );
125
126         [% IF close_form %]
127           $("#budgeth").dataTable($.extend(true, {}, dataTablesDefaults, {
128             sDom: "t"
129           }));
130           $("#move_form").submit(function(){
131             var budget_from = "[% budget_period_description %]";
132             var budget_to = $("#to_budget_period_id").find("option:selected").html();
133             var alert_message = _("You have chosen to move all unreceived orders from '%s' to '%s'.").format(budget_from, budget_to);
134             alert_message += _("\nThis action cannot be reversed. Do you wish to continue?");
135             return confirm ( alert_message );
136           });
137         [% END %]
138         [% IF closed %]
139           var oTable = $("#closed_report").dataTable($.extend(true, {}, dataTablesDefaults, {
140             // The following is a c/p from aqbudgets.tt and is a candidate for refactoring.
141             "fnDrawCallback": function ( oSettings ) {
142                 if ( oSettings.aiDisplay.length == 0 )
143                 {
144                     return;
145                 }
146
147                 var nTrs = $('#closed_report tbody tr');
148                 var iColspan = nTrs[1].getElementsByTagName('td').length;
149                 var sLastGroup = "";
150                 for ( var i=0 ; i<nTrs.length ; i++ )
151                 {
152                     var iDisplayIndex = oSettings._iDisplayStart + i;
153                     var sGroup = oSettings.aoData[ oSettings.aiDisplay[iDisplayIndex] ]._aData[0];
154                     if ( sGroup != sLastGroup )
155                     {
156                         var nGroup = document.createElement( 'tr' );
157                         var nCell = document.createElement( 'td' );
158                         nCell.colSpan = iColspan;
159                         nCell.className = "group";
160                         nCell.innerHTML = sGroup;
161                         nGroup.appendChild( nCell );
162                         nTrs[i].parentNode.insertBefore( nGroup, nTrs[i] );
163                         sLastGroup = sGroup;
164                     }
165                 }
166             },
167             "aoColumnDefs": [
168                 { "bVisible": false, "aTargets": [ 0, 1 ] },
169                 { "bSortable": false, "aTargets": ["_all"] }
170             ],
171             'bSort': true,
172             'aaSortingFixed': [[ 1, 'asc' ]],
173             'bPaginate': false,
174             "bAutoWidth": false
175           }));
176         [% END %]
177     });
178 </script>
179
180 <title>
181     Koha &rsaquo; Administration &rsaquo; Budgets
182
183     [% IF ( add_form ) %]&rsaquo;
184         [% IF ( budget_period_id ) %]
185             Modify budget'[% budget_period_id %]'
186         [% ELSE %]
187             Add budget
188         [% END %]
189     [% END %]
190     [% IF ( duplicate_form ) %]&rsaquo; Duplicate budget[% END %]
191     [% IF ( delete_confirm ) %]&rsaquo;
192             Delete budget '[% budget_period_description %]'?
193     [% END %]
194     [% IF ( delete_confirmed ) %]&rsaquo;
195         Data deleted
196     [% END %]
197     [% IF close_form %]&rsaquo;
198       Close budget [% budget_period_description %]
199     [% END %]
200     [% IF closed %]&rsaquo;
201       Budget [% budget_period_description %] closed
202     [% END %]
203 </title>
204
205
206 </head>
207
208 <body id="admin_aqbudgetperiods" class="admin">
209
210 [% INCLUDE 'header.inc' %]
211 [% INCLUDE 'budgets-admin-search.inc' %]
212
213 <!-- ################################################################################# -->
214 <!-- BREADCRUMBS -->
215 <!-- ################################################################################# -->
216
217 <div id="breadcrumbs">
218     <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
219     <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo;
220
221     <!-- add or modify a budget period -->
222     <!-- ####################################### -->
223     [% IF ( add_form ) %]
224         <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budget</a> &rsaquo;
225         [% IF ( budget_period_id ) %]
226             Modify budget [% budget_period_description %]
227
228         [% ELSE %]
229             Add budget
230         [% END %]
231     [% END %]
232
233     <!-- delete a budget period -->
234     <!-- ################################ -->
235     [% IF ( delete_confirm ) %]
236         <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> &rsaquo;
237         [% IF ( total ) %]
238             Cannot delete budget '[% budget_period_description %]'
239         [% ELSE %]
240             Delete budget '[% budget_period_description %]'?
241         [% END %]
242     [% END %]
243     <!-- duplicate a budget -->
244     [% IF ( duplicate_form ) %]
245         <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> &rsaquo; Duplicate budget
246     [% END %]
247
248     <!-- close a budget -->
249     [% IF close_form %]
250         <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> &rsaquo;
251         Close budget <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% budget_period_description %]</a>
252     [% END %]
253
254     <!-- budget closed -->
255     [% IF closed %]
256         <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> &rsaquo;
257         Budget <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% budget_period_description %]</a> closed
258     [% END %]
259     <!-- display budget periods list -->
260     <!-- ########################################## -->
261     [% IF ( else ) %]
262         Budgets administration
263     [% END %]
264 </div>
265
266 <div id="doc3" class="yui-t2">
267 <div id="bd">
268 <div id="yui-main">
269 <div class="yui-b">
270
271 [% UNLESS close_form OR closed%]
272   [% INCLUDE 'budgets-admin-toolbar.inc' %]
273 [% END %]
274
275 [% IF ( duplicate_form ) %]
276 <h3>Duplicate budget</h3>
277 <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post">
278     <fieldset class="rows">
279     <input type="hidden" name="op" value="duplicate_budget" />
280     <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
281
282     <ol>
283
284     <li>
285     <label class="required" for="from">Start date: </label>
286     <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" />
287                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
288     </li>
289     <li>
290
291     <label class="required" for="to">End date: </label>
292     <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" />
293                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
294     </li>
295
296     <li>
297     <label class="required" for="budget_period_description">Description</label>
298     <input type="text" id="budget_period_description" name="budget_period_description" value="[% budgetperiod.budget_period_description %]" />
299     </li>
300
301     <li>
302       <label for="mark_as_inactive">Mark the original budget as inactive</label>
303       <input type="checkbox" id="mark_as_inactive" name="mark_original_budget_as_inactive" />
304     </li>
305
306     <li>
307       <label for="reset_all_budgets">Set all funds to zero</label>
308       <input type="checkbox" id="reset_all_budgets" name="reset_all_budgets" />
309     </li>
310
311     </ol>
312     </fieldset>
313
314     <fieldset class="action">
315         <input type="button" value="Save Changes"  onclick="CheckDuplicateForm(this.form)" /> <a class="cancel" href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">Cancel</a>
316     </fieldset>
317
318 </form>
319
320 [% END %]
321
322 [% IF ( add_form ) %]
323     <!--  add or modify a budget period   -->
324
325     [% IF ( budget_period_id ) %]
326         <h3>Modify budget</h3>
327     [% ELSE %]
328         <h3>Add budget</h3>
329         [% END %]
330 <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post">
331     <fieldset class="rows">
332     <!-- ################################################################################# -->
333     <!-- display information about the budget period that must be added or modified -->
334     <!-- ################################################################################# -->
335     <input type="hidden" name="op" value="add_validate" />
336     <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
337     <ol>
338     <li>
339     <label class="required" for="from">Start date: </label>
340     <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" />
341                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
342     </li>
343     <li>
344
345     <label class="required" for="to">End date: </label>
346     <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" />
347                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
348     </li>
349
350     <li>
351         <!-- DESCRIPTION -->
352         <!-- ############################## -->
353         <label class="required" for="budget_period_description">Description: </label>
354         <input type="text" id="budget_period_description" name="budget_period_description"
355         size="48" maxlength="80" value="[% budget_period_description %]" />
356     </li>
357
358     <li>
359         <!-- TOTAL -->
360         <!-- ############################## -->
361         <label for="budget_period_total">Total amount: </label>
362         <input type="text" id="budget_period_total" name="budget_period_total"
363         size="10" maxlength="80" value="[% budget_period_total %]" />
364     </li>
365
366     <li>
367         <!-- ACTIVE -->
368         <!-- ############################## -->
369         <label for="budget_period_active">Make budget active: </label>
370         [% IF ( budget_period_active ) %]<input type="checkbox" checked="checked" id="budget_period_active" name="budget_period_active" value="1" />[% ELSE %]  <input type="checkbox" id="budget_period_active" name="budget_period_active" value="1"/> [% END %]
371     </li>
372
373     <li>
374         <!-- LOCK  -->
375         <!-- ############################## -->
376         <label for="budget_period_locked">Lock budget: </label>
377         [% IF ( budget_period_locked ) %]<input type="checkbox" checked="checked" id="budget_period_locked" name="budget_period_locked" value="1" />[% ELSE %]  <input type="checkbox" id="budget_period_locked" name="budget_period_locked" value="1"/> [% END %]
378     </li>
379     </ol>
380     </fieldset>
381
382     <fieldset class="action">
383         <!-- "save changes" button -->
384         <!-- ###################################### -->
385         <input type="button" value="Save changes"  onclick="Check(this.form)"    />
386         <!--             <input type="submit" value="Save Changes"  />  -->
387         [% IF ( budget_period_id ) %]<a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]" class="cancel">Cancel</a>[% END %]
388     </fieldset>
389
390 </form>
391
392 [% END %]
393
394 <!-- ####################################################################### -->
395 <!-- delete a budget period -->
396 <!-- ####################################################################### -->
397
398 [% IF ( delete_confirm ) %]
399     [% IF ( total ) %]
400         <div class="dialog message">
401         <h3>Cannot delete budget</h3>
402         <p><strong>This record is used [% total %] times</strong>
403         . Deletion is not possible.</p>
404     [% ELSE %]
405         <div class="dialog alert">
406         <h3>Delete budget '[% budget_period_description %]'?</h3>
407     [% END %]
408
409     <!-- ############################################################# -->
410     <!-- "delete" and "cancel" buttons    -->
411     <!-- ############################################################# -->
412
413     <form action="[% script_name %]" method="post">
414         <input type="hidden" name="op" value="delete_confirmed" />
415         <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
416         <input type="submit" class="approve" value="Delete" />
417     </form>
418
419     <form action="[% script_name %]" method="post">
420         <input type="submit" class="deny" value="Cancel" />
421     </form>
422
423     </div>
424 [% END %]
425
426 [% IF close_form %]
427   [% IF budget_periods.size == 0 %]
428     You cannot move funds of this budget, there is no active budget.
429     Please create a new active budget and retry.
430     <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a>
431   [% ELSIF number_of_unreceived_orders == 0 %]
432     There are no unreceived orders for this budget.
433     <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a>
434   [% ELSE %]
435     <h3>The unreceived orders from the following funds will be moved</h3>
436       Fund list of budget <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% budget_period_description %]</a>:
437     <table id="budgeth">
438       <thead>
439         <tr>
440             <th>Fund id</th>
441             <th>Fund code</th>
442             <th>Fund name</th>
443             <th>Unreceived orders</th>
444         </tr>
445       </thead>
446       <tbody>
447         [% FOREACH budget IN budgets_to_move %]
448           <tr>
449             <td>[% budget.budget_id %]</td>
450             <td>[% budget.budget_code_indent %]</td>
451             <td>[% budget.budget_name %]</td>
452             <td>[% budget.unreceived_orders.size %]</td>
453           </tr>
454         [% END %]
455       </tbody>
456     </table>
457     <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post" id="move_form">
458       <fieldset class="rows">
459         <ol>
460           <li>
461             <label class="required" for="to_budget_period_id">Select a budget</label>
462             <select name="to_budget_period_id" id="to_budget_period_id" required="required">
463               <option value=""></option>
464               [% FOR budget_period IN budget_periods %]
465                 <option value="[% budget_period.budget_period_id %]">[% budget_period.budget_period_description %]</option>
466               [% END %]
467             </select>
468           </li>
469           <li>
470           <label for="move_remaining_unspent">Move remaining unspent funds</label>
471             <input type="checkbox" name="move_remaining_unspent" id="move_remaining_unspent" />
472           </li>
473         </ol>
474       </fieldset>
475       <fieldset class="action">
476           <input type="hidden" name="op" value="close_confirmed" />
477           <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
478           <input type="submit" value="Move unreceived orders" />
479           <a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Cancel</a>
480       </fieldset>
481     </form>
482   [% END %]
483 [% ELSIF closed %]
484   <h3>Report after moving unreceived orders from budget [% from_budget_period.budget_period_description %] ([% from_budget_period.budget_period_startdate | $KohaDates %] - [% from_budget_period.budget_period_enddate | $KohaDates %]) to [% to_budget_period.budget_period_description %] ([% to_budget_period.budget_period_startdate | $KohaDates %] - [% to_budget_period.budget_period_enddate | $KohaDates%])</h3>
485
486   <table id="closed_report">
487     <thead>
488       <tr>
489         <td>Budget id</td>
490         <td>Basket</td>
491         <td>Ordernumber</td>
492         <td>Details</td>
493       </tr>
494     </thead>
495     <tbody>
496       [% FOR r IN report %]
497           [% IF r.moved %]
498             [% IF r.orders_moved.size > 0 %]
499               [% FOR order IN r.orders_moved %]
500                 <tr>
501                   <td>[% r.budget.budget_name %] (id=[% r.budget.budget_id %]) Amount=[% r.budget.budget_amount | format ("%.2f") %][% IF r.unspent_moved %] ([% r.unspent_moved | format ("%.2f")%] remaining has been moved)[% END %]</td>
502                   <td>[% order.basketname %]</td>
503                   <td>[% order.ordernumber %]</td>
504                   <td>Moved!</td>
505                 </tr>
506               [% END %]
507             [% ELSE %]
508               <tr>
509                 <td>[% r.budget.budget_name %] (id=[% r.budget.budget_id %])</td>
510                 <td></td>
511                 <td></td>
512                 <td>There were no unreceived orders for this fund.</td>
513               </tr>
514             [% END %]
515           [% ELSE %]
516             [% IF r.error == 'budget_code_not_exists' %]
517               <tr>
518                 <td>[% r.budget.budget_id %] [% r.budget.budget_amount | format ("%.2f") %][% IF r.unspent_moved %] ([% r.unspent_moved | format ("%.2f") %] remaining has been moved)[% END %]</td>
519                 <td></td>
520                 <td></td>
521                 <td>This fund code does not exist in the destination budget.</td>
522               </tr>
523             [% END %]
524           [% END %]
525         </tr>
526       [% END %]
527     </tbody>
528   </table>
529   <a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a>
530 [% END %]
531
532 <!--  DEFAULT  display budget periods list -->
533 [% IF ( else ) %]
534   <h2>Budgets administration</h2>
535
536   [% INCLUDE 'budgets-active-currency.inc' %]
537
538   <div id="budgetsTabs" class="toptabs">
539     <ul>
540         <li><a href="#active">Active budgets</a></li>
541         <li><a href="#inactive">Inactive budgets</a></li>
542     </ul>
543
544     <div id="active">
545       [% IF ( period_active_loop ) %]
546         <table id="activeperiodst">
547           <thead>
548             <tr>
549               <th>Budget name</th>
550               <th class="title-string">Start date</th>
551               <th class="title-string">End date</th>
552               <th>Locked</th>
553               <th>Total</th>
554               <th>Actions</th>
555             </tr>
556           </thead>
557           <tbody>
558               [% FOREACH period_active IN period_active_loop %]
559                 <tr>
560                 <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>
561                 <td><span title="[% period_active.budget_period_startdate %]">[% period_active.budget_period_startdate | $KohaDates %]</span></td>
562                 <td><span title="[% period_active.budget_period_enddate %]">[% period_active.budget_period_enddate | $KohaDates %]</span></td>
563                 <td>
564                   [% IF ( period_active.budget_period_locked ) %]
565                     <span style="color:green;">Locked</span>&nbsp;
566                   [% END %]
567                 </td>
568                 <td class="data">[% period_active.budget_period_total | $Price %]</td>
569                 <td>
570                     [% PROCESS action_menu block_budget_id=period_active.budget_period_id %]
571                 </td>
572                 </tr>
573               [% END %]
574           </tbody>
575         </table>
576       [% ELSE %]
577         No active budgets
578       [% END %]
579       <div class="paginationBar">[% active_pagination_bar %]</div>
580     </div>
581     <div id="inactive">
582       [% IF ( period_inactive_loop ) %]
583         <table id="inactiveperiodst">
584           <thead>
585               <tr>
586                   <th>Budget name</th>
587                   <th class="title-string">Start date</th>
588                   <th class="title-string">End date</th>
589                   <th>Locked</th>
590                   <th>Total</th>
591                   <th>Actions</th>
592               </tr>
593           </thead>
594           <tbody>
595               [% FOREACH period_loo IN period_inactive_loop %]
596                   <tr>
597                   <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>
598                   <td><span title="[% period_loo.budget_period_startdate %]">[% period_loo.budget_period_startdate | $KohaDates %]</span></td>
599                   <td><span title="[% period_loo.budget_period_enddate %]">[% period_loo.budget_period_enddate | $KohaDates %]</span></td>
600                   <td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span>&nbsp;[% ELSE %][% END %] </td>
601                   <td class="data">[% period_loo.budget_period_total | $Price %]</td>
602                   <td>
603                         [% PROCESS action_menu block_budget_id=period_loo.budget_period_id %]
604                   </td>
605                   </tr>
606               [% END %]
607           </tbody>
608         </table>
609       [% ELSE %]
610         No inactive budgets
611       [% END %]
612       <div class="pages">[% inactive_pagination_bar %]</div>
613     </div>
614   </div>
615 [% END %]
616
617
618 </div>
619 </div>
620 <div class="yui-b">
621 [% INCLUDE 'acquisitions-menu.inc' %]
622 </div>
623 </div>
624
625 [% INCLUDE 'intranet-bottom.inc' %]