From f3f3087049ffd8aa258a951c60c6fc2b3e4b24aa Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 8 Mar 2016 10:38:37 +0000 Subject: [PATCH] [PASSED QA] 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. Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer --- .../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 ff56bc3..ea438f2 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' %]
-- 1.9.1