From fd1f78027114ada855d701260467217c3673e2d6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 8 Mar 2016 10:38:37 +0000 Subject: [PATCH] Bug 15962: Add messages on the currency admin page Bug 15084 rewrote the currency admin page but forgot to add the messages block. Test plan: Add/update/delete vendors. You should get information messages. --- .../prog/en/modules/admin/currency.tt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt index 8fb7152..8de224f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt @@ -65,6 +65,29 @@ [% END %] +[% FOR m IN messages %] +
+ [% SWITCH m.code %] + [% CASE 'error_on_update' %] + An error occurred when updating this currency. Perhaps it already exists. + [% CASE 'error_on_insert' %] + An error occurred when adding this currency. The currency code might already exist. + [% CASE 'error_on_delete' %] + An error occurred when deleting this currency. Check the logs. + [% CASE 'success_on_update' %] + Currency updated successfully. + [% CASE 'success_on_insert' %] + Currency added successfully. + [% CASE 'success_on_delete' %] + Currency deleted successfully. + [% CASE %] + [% m.code %] + [% END %] +
+[% END %] + + + [% IF op == 'add_form' %]
-- 2.7.0