From d13a4100f0163cbc0f0d68e598f09682e08e9bf8 Mon Sep 17 00:00:00 2001 From: ColinBruce Date: Thu, 7 May 2015 10:42:33 +0100 Subject: [PATCH] Implemented feedback mail * added to settings * updated view --- app/views/feedback/new.html.slim | 2 +- config/settings.yml | 1 + lib/settings.rb | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/feedback/new.html.slim b/app/views/feedback/new.html.slim index f782b227e..6de996b5c 100644 --- a/app/views/feedback/new.html.slim +++ b/app/views/feedback/new.html.slim @@ -1,5 +1,5 @@ h2 Your feedback div We welcome all feedback. Your comments will help us improve the service. -div If you have an urgent question or something isn’t working, please email #{mail_to Settings.mail_tech_support} +div If you have an urgent question or something isn’t working, please email #{mail_to Settings.mail_feedback} == render 'form' diff --git a/config/settings.yml b/config/settings.yml index 69054ec1b..f89737ae4 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -1,3 +1,4 @@ mail_from: no-reply@helpwithcourtfees.dsd.io mail_reply_to: enquiries@helpwithcourtfees.dsd.io mail_tech_support: fee-remissions@digital.justice.gov.uk +mail_feedback: trial-feedback@digital.justice.gov.uk diff --git a/lib/settings.rb b/lib/settings.rb index 741ce942e..80c7341f9 100644 --- a/lib/settings.rb +++ b/lib/settings.rb @@ -17,4 +17,7 @@ def mail_tech_support @h['mail_tech_support'] end + def mail_feedback + @h['mail_feedback'] + end end