Lines 28-36
Link Here
|
28 |
<li> |
28 |
<li> |
29 |
<a href="[% script_name | url %]?op=close_form&budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-times-circle"></i> Close</a> |
29 |
<a href="[% script_name | url %]?op=close_form&budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-times-circle"></i> Close</a> |
30 |
</li> |
30 |
</li> |
31 |
<li> |
31 |
[% IF ( block_budget.budget_period_locked ) %] |
32 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-plus"></i> Add fund</a> |
32 |
<li class="disabled"> |
33 |
</li> |
33 |
<a data-toggle="tooltip" data-placement="left" title="Budget is locked" href="#"><i class="fa fa-plus"></i> Add fund</a> |
|
|
34 |
</li> |
35 |
[% ELSE %] |
36 |
<li> |
37 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-plus"></i> Add fund</a> |
38 |
</li> |
39 |
[% END %] |
34 |
</ul> |
40 |
</ul> |
35 |
</div> |
41 |
</div> |
36 |
[% END -%] |
42 |
[% END -%] |
Lines 44-68
Link Here
|
44 |
<title>[% FILTER collapse %] |
50 |
<title>[% FILTER collapse %] |
45 |
[% IF ( add_form ) %] |
51 |
[% IF ( add_form ) %] |
46 |
[% IF ( budget_period_id ) %] |
52 |
[% IF ( budget_period_id ) %] |
47 |
[% tx("Modify budget {budget_period_description}", { budget_period_description = budget_period_description }) | html %] |
53 |
[% tx("Modify budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] |
48 |
[% ELSE %] |
54 |
[% ELSE %] |
49 |
[% t("Add budget") | html %] |
55 |
[% t("New budget") | html %] |
50 |
[% END %] › |
56 |
[% END %] › |
51 |
[% END %] |
57 |
[% END %] |
52 |
[% IF ( duplicate_form ) %] |
58 |
[% IF ( duplicate_form ) %] |
53 |
[% t("Duplicate budget") | html %] › |
59 |
[% t("Duplicate budget") | html %] › |
54 |
[% END %] |
60 |
[% END %] |
55 |
[% IF ( delete_confirm ) %] |
61 |
[% IF ( delete_confirm ) %] |
56 |
[% tx("Delete budget '{budget_period_description}'?", { budget_period_description = budget_period_description }) | html %] › |
62 |
[% IF ( total || funds_exist ) %] |
57 |
[% END %] |
63 |
[% tx("Cannot delete budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] › |
58 |
[% IF ( delete_confirmed ) %] |
64 |
[% ELSE %] |
59 |
[% t("Data deleted") | html %] › |
65 |
[% tx("Confirm deletion of budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] › |
|
|
66 |
[% END %] |
60 |
[% END %] |
67 |
[% END %] |
61 |
[% IF close_form %] |
68 |
[% IF close_form %] |
62 |
[% tx("Close budget {budget_period_description}", { budget_period_description = budget_period_description }) | html %] › |
69 |
[% tx("Close budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] › |
63 |
[% END %] |
70 |
[% END %] |
64 |
[% IF closed %] |
71 |
[% IF closed %] |
65 |
[% tx("Budget {budget_period_description} closed", { budget_period_description = budget_period_description }) | html %] › |
72 |
[% tx("Budget '{budget_period_description}' closed", { budget_period_description = budget_period_description }) | html %] › |
66 |
[% END %] |
73 |
[% END %] |
67 |
[% t("Budgets") | html %] › |
74 |
[% t("Budgets") | html %] › |
68 |
[% t("Administration") | html %] › |
75 |
[% t("Administration") | html %] › |
Lines 84-90
Link Here
|
84 |
|
91 |
|
85 |
[% IF ( else ) %] |
92 |
[% IF ( else ) %] |
86 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
93 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
87 |
<span>Budgets administration</span> |
94 |
<span>Budgets</span> |
88 |
[% END %] |
95 |
[% END %] |
89 |
[% ELSE %] |
96 |
[% ELSE %] |
90 |
[% WRAPPER breadcrumb_item %] |
97 |
[% WRAPPER breadcrumb_item %] |
Lines 95-105
Link Here
|
95 |
[% IF ( add_form ) %] |
102 |
[% IF ( add_form ) %] |
96 |
[% IF ( budget_period_id ) %] |
103 |
[% IF ( budget_period_id ) %] |
97 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
104 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
98 |
<span>Modify budget '[% budget_period_description | html %]'</span> |
105 |
[% tx("Modify budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] |
99 |
[% END %] |
106 |
[% END %] |
100 |
[% ELSE %] |
107 |
[% ELSE %] |
101 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
108 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
102 |
<span>Add budget</span> |
109 |
<span>New budget</span> |
103 |
[% END %] |
110 |
[% END %] |
104 |
[% END %] |
111 |
[% END %] |
105 |
[% END %] |
112 |
[% END %] |
Lines 107-117
Link Here
|
107 |
[% IF ( delete_confirm ) %] |
114 |
[% IF ( delete_confirm ) %] |
108 |
[% IF ( total || funds_exist ) %] |
115 |
[% IF ( total || funds_exist ) %] |
109 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
116 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
110 |
<span>Cannot delete budget '[% budget_period_description | html %]'</span> |
117 |
[% tx("Cannot delete budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] |
111 |
[% END %] |
118 |
[% END %] |
112 |
[% ELSE %] |
119 |
[% ELSE %] |
113 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
120 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
114 |
<span>Delete budget '[% budget_period_description | html %]'?</span> |
121 |
[% tx("Confirm deletion of budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] |
115 |
[% END %] |
122 |
[% END %] |
116 |
[% END %] |
123 |
[% END %] |
117 |
[% END %] |
124 |
[% END %] |
Lines 124-136
Link Here
|
124 |
|
131 |
|
125 |
[% IF close_form %] |
132 |
[% IF close_form %] |
126 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
133 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
127 |
<span>Close budget [% budget_period_description | html %]</span> |
134 |
[% tx("Close budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] |
128 |
[% END %] |
135 |
[% END %] |
129 |
[% END %] |
136 |
[% END %] |
130 |
|
137 |
|
131 |
[% IF closed %] |
138 |
[% IF closed %] |
132 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
139 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
133 |
<span>Budget [% budget_period_description | html %] closed</span> |
140 |
[% tx("Budget '{budget_period_description}' closed", { budget_period_description = budget_period_description }) | html %] |
134 |
[% END %] |
141 |
[% END %] |
135 |
[% END %] |
142 |
[% END %] |
136 |
[% END #/ WRAPPER breadcrumbs %] |
143 |
[% END #/ WRAPPER breadcrumbs %] |
Lines 212-220
Link Here
|
212 |
<!-- add or modify a budget period --> |
219 |
<!-- add or modify a budget period --> |
213 |
|
220 |
|
214 |
[% IF ( budget_period_id ) %] |
221 |
[% IF ( budget_period_id ) %] |
215 |
<h1>Modify budget <em>[% budget_period_description | html %]</em></h1> |
222 |
<h1>[% tx("Modify budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %]</h1> |
216 |
[% ELSE %] |
223 |
[% ELSE %] |
217 |
<h1>Add budget</h1> |
224 |
<h1>New budget</h1> |
218 |
[% END %] |
225 |
[% END %] |
219 |
<form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" id="add_modify_budget" name="f" method="post"> |
226 |
<form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" id="add_modify_budget" name="f" method="post"> |
220 |
<fieldset class="rows"> |
227 |
<fieldset class="rows"> |
Lines 294-308
Link Here
|
294 |
[% IF ( total ) %] |
301 |
[% IF ( total ) %] |
295 |
<div class="dialog message"> |
302 |
<div class="dialog message"> |
296 |
<h1>Cannot delete budget</h1> |
303 |
<h1>Cannot delete budget</h1> |
297 |
<p><strong>This record is used [% total | html %] times</strong> |
304 |
<p><strong>This record is used [% total | html %] times</strong>. |
298 |
. Deletion is not possible.</p> |
305 |
Deletion is not possible.</p> |
299 |
[% ELSIF ( funds_exist ) %] |
306 |
[% ELSIF ( funds_exist ) %] |
300 |
<div class="dialog message"> |
307 |
<div class="dialog message"> |
301 |
<h1>Cannot delete budget</h1> |
308 |
<h1>Cannot delete budget</h1> |
302 |
<p>This budget has funds attached. You must delete all attached funds before you can delete this budget.</p> |
309 |
<p>This budget has funds attached. You must delete all attached funds before you can delete this budget.</p> |
303 |
[% ELSE %] |
310 |
[% ELSE %] |
304 |
<div class="dialog alert"> |
311 |
<div class="dialog alert"> |
305 |
<h1>Delete budget '[% budget_period_description | html %]'?</h1> |
312 |
<h1>[% tx("Confirm deletion of budget '{budget_period_description}'?", { budget_period_description = budget_period_description }) | html %]</h1> |
306 |
|
313 |
|
307 |
<!-- ############################################################# --> |
314 |
<!-- ############################################################# --> |
308 |
<!-- "delete" and "cancel" buttons --> |
315 |
<!-- "delete" and "cancel" buttons --> |
Lines 322-336
Link Here
|
322 |
[% END %] |
329 |
[% END %] |
323 |
|
330 |
|
324 |
[% IF close_form %] |
331 |
[% IF close_form %] |
325 |
<h1>Close budget [% budget_period_description | html %]</h1> |
332 |
<h1>[% tx("Close budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %]</h1> |
326 |
[% IF budget_periods.size == 0 %] |
333 |
[% IF budget_periods.size == 0 %] |
327 |
<span>You cannot move funds of this budget, there is no active budget. |
334 |
<div class="dialog alert"> |
328 |
Please create a new active budget and retry.</span> |
335 |
<p>You cannot move funds of this budget, there is no active budget.</p> |
329 |
<a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a> |
336 |
<p>Please create a new active budget and retry.</p> |
330 |
[% ELSIF number_of_unreceived_orders == 0 %] |
337 |
<a class="btn btn-default" href="/cgi-bin/koha/admin/aqbudgetperiods.pl"><i class="fa fa-fw fa-arrow-left"></i> Return to budgets</a> |
331 |
<span>There are no unreceived orders for this budget.</span> |
338 |
</div> |
332 |
<a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a> |
339 |
[% ELSIF number_of_unreceived_orders == 0 %] |
333 |
[% ELSE %] |
340 |
<div class="dialog message"> |
|
|
341 |
<h2>Cannot close budget</h2> |
342 |
<p>There are no unreceived orders for this budget.</p> |
343 |
<a class="btn btn-default" href="/cgi-bin/koha/admin/aqbudgetperiods.pl"><i class="fa fa-fw fa-arrow-left"></i> Return to budgets</a> |
344 |
</div> |
345 |
[% ELSE %] |
334 |
<div class="page-section"> |
346 |
<div class="page-section"> |
335 |
<h3>The unreceived orders from the following funds will be moved</h3> |
347 |
<h3>The unreceived orders from the following funds will be moved</h3> |
336 |
Fund list of budget <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | uri %]">[% budget_period_description | html %]</a>: |
348 |
Fund list of budget <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | uri %]">[% budget_period_description | html %]</a>: |
Lines 382-388
Link Here
|
382 |
</div><!-- /.page-section --> |
394 |
</div><!-- /.page-section --> |
383 |
[% END %] |
395 |
[% END %] |
384 |
[% ELSIF closed %] |
396 |
[% ELSIF closed %] |
385 |
<h1>Budget [% budget_period_description | html %] closed</h1> |
397 |
<h1>[% tx("Budget '{budget_period_description}' closed", { budget_period_description = budget_period_description }) | html %]</h1> |
386 |
|
398 |
|
387 |
<div class="page-section"> |
399 |
<div class="page-section"> |
388 |
<h3>Report after moving unreceived orders from budget [% from_budget_period.budget_period_description | html %] ([% from_budget_period.budget_period_startdate | $KohaDates %] - [% from_budget_period.budget_period_enddate | $KohaDates %]) to [% to_budget_period.budget_period_description | html %] ([% to_budget_period.budget_period_startdate | $KohaDates %] - [% to_budget_period.budget_period_enddate | $KohaDates%])</h3> |
400 |
<h3>Report after moving unreceived orders from budget [% from_budget_period.budget_period_description | html %] ([% from_budget_period.budget_period_startdate | $KohaDates %] - [% from_budget_period.budget_period_enddate | $KohaDates %]) to [% to_budget_period.budget_period_description | html %] ([% to_budget_period.budget_period_startdate | $KohaDates %] - [% to_budget_period.budget_period_enddate | $KohaDates%])</h3> |
Lines 436-442
Link Here
|
436 |
|
448 |
|
437 |
<!-- DEFAULT display budget periods list --> |
449 |
<!-- DEFAULT display budget periods list --> |
438 |
[% IF ( else ) %] |
450 |
[% IF ( else ) %] |
439 |
<h1>Budgets administration</h1> |
451 |
<h1>Budgets</h1> |
440 |
|
452 |
|
441 |
[% IF ( failed_delete_funds_exist ) %] |
453 |
[% IF ( failed_delete_funds_exist ) %] |
442 |
<div class="dialog message">Failed to delete budget because funds exist.</div> |
454 |
<div class="dialog message">Failed to delete budget because funds exist.</div> |
Lines 549-554
Link Here
|
549 |
$("#budgetsTabs li:eq([% tab | html %]) a").tab("show"); |
561 |
$("#budgetsTabs li:eq([% tab | html %]) a").tab("show"); |
550 |
[% END %] |
562 |
[% END %] |
551 |
|
563 |
|
|
|
564 |
$('[data-toggle="tooltip"]').tooltip(); |
565 |
|
552 |
$("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, { |
566 |
$("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, { |
553 |
"aoColumnDefs": [ |
567 |
"aoColumnDefs": [ |
554 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
568 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |