From 0bfd512759b54bef56f279cf195c9186691933e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Fri, 18 Dec 2015 16:01:12 +0100 Subject: [PATCH] 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 --- .../prog/en/includes/budgets-active-currency.inc | 2 +- .../prog/en/modules/acqui/acqui-home.tt | 2 +- .../intranet-tmpl/prog/en/modules/admin/aqplan.tt | 14 ++++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) 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 %] -- 2.39.5