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