From: Marc VĂ©ron Date: Fri, 18 Dec 2015 15:01:12 +0000 (+0100) Subject: Bug 15049: (followup) Add warning about "No active currency" X-Git-Tag: v16.05.00-beta~1461 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=0bfd512759b54bef56f279cf195c9186691933e5;p=koha-ffzg.git Bug 15049: (followup) Add warning about "No active currency" Fix translatibiity issues and use include in admin/aqplan.tt as well. See comment #24 Signed-off-by: Jonathan Druart Signed-off-by: Brendan A Gallagher --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc index fbaa7e8e9d..18620599e2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-active-currency.inc @@ -6,7 +6,7 @@

No active currency is defined

[% IF CAN_user_parameters_parameters_remaining_permissions %] -

Please specify an active currency.

+

Please specify an active currency.

[% ELSE %]

Your administrator must specify an active currency.

[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt index ab062679d8..82f201f057 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt @@ -101,7 +101,7 @@ $(document).ready(function() { [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %] [% UNLESS ( loop_budget ) %] [% IF ( CAN_user_acquisition_period_manage ) %] -
You must define a budget in Administration
+ [% ELSE %]
Your administrator must define a budget in Administration
[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt index 9b2f2affe9..86a196251b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt @@ -85,13 +85,15 @@ [% IF ( budget_lines ) %] - [% IF ( currency ) %]

Currency = [% currency %]. - [% IF ( show_actual ) %] - Each cell contain both actual and estimated values. + [% IF ( currency ) %]

Currency = [% currency %]. + [% IF ( show_actual ) %] + Each cell contain both actual and estimated values. + [% ELSE %] + Cells contain estimated values only. + [% END %] +

[% ELSE %] - Cells contain estimated values only. - [% END %] -

[% ELSE %]

No active currency is defined

Please specify an active currency.

+ [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %] [% IF ( show_actual ) %]

Each cell contain both actual and estimated values.

[% ELSE %]