From 5896770e079840f91e048de59b9c235d3974698c 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. Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- .../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 ff56bc3eac..ea438f2d00 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.39.5