View | Details | Raw Unified | Return to bug 34404
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc (-7 / +8 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% PROCESS 'i18n.inc' %]
2
[%- BLOCK planning -%]
2
[% BLOCK planning %]
3
  [%- SWITCH plan -%]
3
[%   SWITCH plan %]
4
    [%- CASE 'MONTHS'    -%][% t('by months') | html %]
4
[%     CASE 'MONTHS'    %][% tpx("Budget planning", "Planning for '{fund}' by months", { fund = budget_period_description }) | html %]
5
    [%- CASE 'BRANCHES'  -%][% t('by libraries') | html %]
5
[%     CASE 'ITEMTYPES' %][% tpx("Budget planning", "Planning for '{fund}' by item types", { fund = budget_period_description }) | html %]
6
    [%- CASE 'ITEMTYPES' -%][% t('by item types') | html %]
6
[%     CASE 'BRANCHES'  %][% tpx("Budget planning", "Planning for '{fund}' by library", { fund = budget_period_description }) | html %]
7
  [%- END -%]
7
[%     CASE             %][% tpx("Budget planning", "Planning for '{fund}' by {type}", { fund = budget_period_description, type = type  }) | html %]
8
[%- END -%]
8
[%   END %]
9
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt (-34 / +48 lines)
Lines 28-36 Link Here
28
              <li>
28
              <li>
29
                  <a href="[% script_name | url %]?op=close_form&amp;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&amp;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&amp;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&amp;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 %] &rsaquo;
56
        [% END %] &rsaquo;
51
    [% END %]
57
    [% END %]
52
    [% IF ( duplicate_form ) %]
58
    [% IF ( duplicate_form ) %]
53
        [% t("Duplicate budget") | html %] &rsaquo;
59
        [% t("Duplicate budget") | html %] &rsaquo;
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 %] &rsaquo;
62
        [% IF ( total || funds_exist ) %]
57
    [% END %]
63
            [% tx("Cannot delete budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] &rsaquo;
58
    [% IF ( delete_confirmed ) %]
64
        [% ELSE %]
59
        [% t("Data deleted") | html %] &rsaquo;
65
            [% tx("Confirm deletion of budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] &rsaquo;
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 %] &rsaquo;
69
        [% tx("Close budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] &rsaquo;
63
    [% END %]
70
    [% END %]
64
    [% IF closed %]
71
    [% IF closed %]
65
        [% tx("Budget {budget_period_description} closed", { budget_period_description = budget_period_description }) | html %] &rsaquo;
72
        [% tx("Budget '{budget_period_description}' closed", { budget_period_description = budget_period_description }) | html %] &rsaquo;
66
    [% END %]
73
    [% END %]
67
    [% t("Budgets") | html %] &rsaquo;
74
    [% t("Budgets") | html %] &rsaquo;
68
    [% t("Administration") | html %] &rsaquo;
75
    [% t("Administration") | html %] &rsaquo;
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 },
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-25 / +61 lines)
Lines 16-25 Link Here
16
                [% t("Modify fund") | html %]
16
                [% t("Modify fund") | html %]
17
            [% END %]
17
            [% END %]
18
        [% ELSE %]
18
        [% ELSE %]
19
            [% t("Add fund") | html %]
19
            [% IF ( budget_parent_name ) %]
20
                [% tx("Add fund to '{fund_parent}'", {fund_parent = budget_parent_name}) %]
21
            [% ELSE %]
22
                [% t("New fund") | html %]
23
            [% END %]
20
        [% END %] &rsaquo;
24
        [% END %] &rsaquo;
21
    [% END %]
25
    [% END %]
26
    [% IF op == 'list' || op == 'add_form' %]
27
        [% IF budget_period_id %]
28
            [% tx("Funds for budget '{budget}'", { budget = budget_period_description }) %]
29
        [% ELSE %]
30
            [% t("Funds") | html %]
31
        [% END %] &rsaquo;
32
    [% END %]
33
    [% IF op == 'delete_confirm' %]
34
        [% tx("Confirm deletion of fund '{fund}'", {fund = budget_name}) %] &rsaquo;
35
    [% END %]
22
    [% t("Funds") | html %] &rsaquo;
36
    [% t("Funds") | html %] &rsaquo;
37
    [% t("Budgets") | html %] &rsaquo;
23
    [% t("Administration") | html %] &rsaquo;
38
    [% t("Administration") | html %] &rsaquo;
24
    [% t("Koha") | html %]
39
    [% t("Koha") | html %]
25
[% END %]</title>
40
[% END %]</title>
Lines 43-73 Link Here
43
58
44
        [% IF op == 'list' %]
59
        [% IF op == 'list' %]
45
            [% IF budget_period_id %]
60
            [% IF budget_period_id %]
61
                [% WRAPPER breadcrumb_item %]
62
                    <a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a>
63
                [% END %]
46
                [% WRAPPER breadcrumb_item bc_active= 1 %]
64
                [% WRAPPER breadcrumb_item bc_active= 1 %]
47
                    <span>Funds for '[% budget_period_description | html %]'</span>
65
                    [% tx("Funds for budget '{budget}'", { budget = budget_period_description }) %]
48
                [% END %]
66
                [% END %]
49
            [% ELSE %]
67
            [% ELSE %]
50
                [% WRAPPER breadcrumb_item bc_active= 1 %]
68
                [% WRAPPER breadcrumb_item bc_active= 1 %]
51
                    <span>All funds</span>
69
                    <span>Funds</span>
52
                [% END %]
70
                [% END %]
53
            [% END %]
71
            [% END %]
54
        [% END %]
72
        [% END %]
55
73
56
        [% IF op == 'add_form' %]
74
        [% IF op == 'add_form' %]
57
            [% WRAPPER breadcrumb_item %]
75
            [% WRAPPER breadcrumb_item %]
58
                <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | uri %]">Funds</a>
76
                <a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a>
77
            [% END %]
78
            [% IF ( budget_period_id ) %]
79
                [% WRAPPER breadcrumb_item %]
80
                    <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | uri %]">[% tx("Funds for '{budget}'", { budget = budget_period_description }) %]</a>
81
                [% END %]
59
            [% END %]
82
            [% END %]
60
            [% IF ( budget_id ) %]
83
            [% IF ( budget_id ) %]
61
                [% WRAPPER breadcrumb_item bc_active= 1 %]
84
                [% WRAPPER breadcrumb_item bc_active= 1 %]
62
                    [% IF ( budget_name ) %]
85
                    [% IF ( budget_name ) %]
63
                        <span>Modify fund '[% budget_name | html %]'</span>
86
                        [% tx("Modify fund '{fund_name}'", { fund_name = budget_name }) | html %]
64
                    [% ELSE %]
87
                    [% ELSE %]
65
                        <span>Modify fund</span>
88
                        <span>Modify fund</span>
66
                    [% END %]
89
                    [% END %]
67
                [% END %]
90
                [% END %]
68
            [% ELSE %]
91
            [% ELSE %]
69
                [% WRAPPER breadcrumb_item bc_active= 1 %]
92
                [% WRAPPER breadcrumb_item bc_active= 1 %]
70
                    <span>Add fund</span>
93
                    [% IF ( budget_parent_name ) %]
94
                        [% tx("Add fund to '{fund_parent}'", {fund_parent = budget_parent_name}) %]
95
                    [% ELSE %]
96
                        <span>New fund</span>
97
                    [% END %]
71
                [% END %]
98
                [% END %]
72
            [% END %]
99
            [% END %]
73
        [% END %]
100
        [% END %]
Lines 77-83 Link Here
77
                <a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a>
104
                <a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a>
78
            [% END %]
105
            [% END %]
79
            [% WRAPPER breadcrumb_item bc_active= 1 %]
106
            [% WRAPPER breadcrumb_item bc_active= 1 %]
80
                <span>Delete fund?</span>
107
                [% tx("Confirm deletion of fund '{fund}'", {fund = budget_name}) %]
81
            [% END %]
108
            [% END %]
82
        [% END %]
109
        [% END %]
83
    [% END #/ WRAPPER breadcrumbs %]
110
    [% END #/ WRAPPER breadcrumbs %]
Lines 99-109 Link Here
99
[% IF op == 'list' %]
126
[% IF op == 'list' %]
100
127
101
<h1>
128
<h1>
102
  [% IF budget_period_id %]
129
    [% IF budget_period_id %]
103
    Funds for '[% budget_period_description | html %]'
130
        [% tx("Funds for budget '{budget}'", {budget = budget_period_description}) %]
104
  [% ELSE %]
131
    [% ELSE %]
105
    All funds
132
        <span>Funds</span>
106
  [% END %]
133
    [% END %]
107
</h1>
134
</h1>
108
135
109
[% INCLUDE 'budgets-active-currency.inc' %]
136
[% INCLUDE 'budgets-active-currency.inc' %]
Lines 241-247 Link Here
241
</div> <!-- /.page-section -->
268
</div> <!-- /.page-section -->
242
269
243
[% ELSE %]
270
[% ELSE %]
244
    <p>No fund found</p>
271
    <div class="dialog message">No fund found</div>
245
[% END %]
272
[% END %]
246
273
247
[% END %] <!-- list -->
274
[% END %] <!-- list -->
Lines 250-262 Link Here
250
<!-- create add/mod entry form -->
277
<!-- create add/mod entry form -->
251
[% IF op == 'add_form' && !error_not_authorised_to_modify %]
278
[% IF op == 'add_form' && !error_not_authorised_to_modify %]
252
<form action="/cgi-bin/koha/admin/aqbudgets.pl" id="edit_fund" name="Aform" method="post">
279
<form action="/cgi-bin/koha/admin/aqbudgets.pl" id="edit_fund" name="Aform" method="post">
280
    <h1>
281
        [% IF ( budget_id ) %]
282
            [% IF ( budget_period_description ) %]
283
                [% tx("Modify fund '{fund_name}' for budget '{budget}'", { fund_name = budget_name, budget = budget_period_description }) | html %]
284
            [% ELSE %]
285
                [% tx("Modify fund '{fund_name}'", { fund_name = budget_name }) | html %]
286
            [% END %]
287
        [% ELSE %]
288
            [% IF ( budget_parent_name ) %]
289
                [% tx("Add fund to '{fund_parent}'", {fund_parent = budget_parent_name}) %]
290
            [% ELSE %]
291
                [% t("New fund") | html %]
292
            [% END %]
293
        [% END %]
294
    </h1>
253
    <fieldset class="rows">
295
    <fieldset class="rows">
254
        <legend><h1>[% IF ( budget_id ) %]<span>Modify fund</span>[% ELSE %]<span>Add fund</span>[% END %]
296
        <legend class="sr-only">Fund details</legend>
255
    [% IF ( budget_period_description ) %]
256
        [% budget_name | html %] <span>for budget</span> '[% budget_period_description | html %]'
257
    [% END %]
258
            </h1>
259
    </legend>
260
297
261
    <input type="hidden" name="op" value="add_validate" />
298
    <input type="hidden" name="op" value="add_validate" />
262
    <input type="hidden" name="checked" value="0" />
299
    <input type="hidden" name="checked" value="0" />
Lines 318-324 Link Here
318
        <li class="radio">
355
        <li class="radio">
319
            <label>
356
            <label>
320
                <input type="checkbox" id="set_owner_to_children" name="set_owner_to_children" value="1" />
357
                <input type="checkbox" id="set_owner_to_children" name="set_owner_to_children" value="1" />
321
                Update all sub funds with this owner
358
                <span>Update all sub funds with this owner</span>
322
            </label>
359
            </label>
323
            <span class="hint">Selecting this option will overwrite existing fund owners, if any</span>
360
            <span class="hint">Selecting this option will overwrite existing fund owners, if any</span>
324
        </li>
361
        </li>
Lines 420-427 Link Here
420
457
421
[% IF op == 'delete_confirm' %]
458
[% IF op == 'delete_confirm' %]
422
    <div class="dialog alert">
459
    <div class="dialog alert">
423
        <h1>Delete fund [% budget_name | html %]?</h1>
460
        <h1>[% tx("Confirm deletion of fund '{fund}'?", {fund = budget_name}) %]</h1>
424
        If you delete this fund, all orders linked to this fund will be deleted!
461
        <p>If you delete this fund, all orders linked to this fund will be deleted!</p>
425
        <table>
462
        <table>
426
            <tr>
463
            <tr>
427
            <th scope="row">Fund amount:</th>
464
            <th scope="row">Fund amount:</th>
Lines 661-668 Link Here
661
        [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
698
        [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %]
662
699
663
        <script>
700
        <script>
664
        //<![CDATA[
665
            //
666
            $(document).ready(function() {
701
            $(document).ready(function() {
667
                [% IF budgets %]
702
                [% IF budgets %]
668
                    var oTable = KohaTable("budgeth", {
703
                    var oTable = KohaTable("budgeth", {
Lines 737-744 Link Here
737
                    e.preventDefault();
772
                    e.preventDefault();
738
                    alert(_("This fund has sub funds. It cannot be deleted."));
773
                    alert(_("This fund has sub funds. It cannot be deleted."));
739
                });
774
                });
775
776
                $('[data-toggle="tooltip"]').tooltip();
740
            });
777
            });
741
        //]]>
742
        </script>
778
        </script>
743
    [% END %]
779
    [% END %]
744
[% END %]
780
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt (-8 / +9 lines)
Lines 6-12 Link Here
6
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% PROCESS 'budget_planning.inc' %]
7
[% PROCESS 'budget_planning.inc' %]
8
<title>[% FILTER collapse %]
8
<title>[% FILTER collapse %]
9
    [% tx("Planning for {fund} ", { fund = budget_period_description }) | html %][% PROCESS planning plan=authcat %] &rsaquo;
9
    [% PROCESS planning plan=authcat %] &rsaquo;
10
    [% t("Funds") | html %] &rsaquo;
10
    [% t("Funds") | html %] &rsaquo;
11
    [% t("Budgets") | html %] &rsaquo;
11
    [% t("Budgets") | html %] &rsaquo;
12
    [% t("Administration") | html %] &rsaquo;
12
    [% t("Administration") | html %] &rsaquo;
Lines 33-39 Link Here
33
            <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | uri %]">Funds</a>
33
            <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id | uri %]">Funds</a>
34
        [% END %]
34
        [% END %]
35
        [% WRAPPER breadcrumb_item bc_active= 1 %]
35
        [% WRAPPER breadcrumb_item bc_active= 1 %]
36
            <span>Planning</span>
36
            [% PROCESS planning plan=authcat %]
37
        [% END %]
37
        [% END %]
38
    [% END #/ WRAPPER breadcrumbs %]
38
    [% END #/ WRAPPER breadcrumbs %]
39
[% END #/ WRAPPER sub-header.inc %]
39
[% END #/ WRAPPER sub-header.inc %]
Lines 46-52 Link Here
46
[% INCLUDE 'budgets-admin-toolbar.inc' %]
46
[% INCLUDE 'budgets-admin-toolbar.inc' %]
47
47
48
<form method="post" id="Aform" name="Aform"  action="/cgi-bin/koha/admin/aqplan.pl">
48
<form method="post" id="Aform" name="Aform"  action="/cgi-bin/koha/admin/aqplan.pl">
49
<h1>Planning for [% budget_period_description | html %] [% PROCESS planning plan=authcat %]</h1>
49
<h1>[% PROCESS planning plan=authcat %]</h1>
50
<input type="hidden" name="authcat" value="[% authcat | html %]" />
50
<input type="hidden" name="authcat" value="[% authcat | html %]" />
51
<!-- Budget Lines -->
51
<!-- Budget Lines -->
52
52
Lines 207-216 Link Here
207
<h4>Filter</h4>
207
<h4>Filter</h4>
208
[% BLOCK planning_types %]
208
[% BLOCK planning_types %]
209
[%   SWITCH type %]
209
[%   SWITCH type %]
210
[%     CASE 'MONTHS'    %]<span>by months</span>
210
[%     CASE 'MONTHS'    %][% tp("Budget planning", "by months") | html %]
211
[%     CASE 'ITEMTYPES' %]<span>by item types</span>
211
[%     CASE 'ITEMTYPES' %][% tp("Budget planning", "by item types") | html %]
212
[%     CASE 'BRANCHES'  %]<span>by libraries</span>
212
[%     CASE 'BRANCHES'  %][% tp("Budget planning", "by libraries") | html %]
213
[%     CASE             %]<span>by [% type | html %]</span>
213
[%     CASE             %][% tpx("Budget planning", "by {type}", {type = type}) | html %]
214
[%   END %]
214
[%   END %]
215
[% END %]
215
[% END %]
216
<ol>
216
<ol>
Lines 338-343 Link Here
338
                $("#budget_est_"+budget_id).text($("#budget_tot_"+budget_id).prev().text());
338
                $("#budget_est_"+budget_id).text($("#budget_tot_"+budget_id).prev().text());
339
                $("#budget_est_"+budget_id).css("color","green");
339
                $("#budget_est_"+budget_id).css("color","green");
340
            });
340
            });
341
342
            $('[data-toggle="tooltip"]').tooltip();
341
        });
343
        });
342
    </script>
344
    </script>
343
[% END %]
345
[% END %]
344
- 

Return to bug 34404