From 272251a8d302dd434c062385aa5ccfed81f0a075 Mon Sep 17 00:00:00 2001 From: Ikenna Okpala Date: Thu, 20 Oct 2016 15:43:09 +0100 Subject: [PATCH] Change start button text for benchmarking This commit changes the start button text for the benchmarking exercise, due to start on the 24th. A helper (start_button) is defined that caters for the change of the start button text. The following smarts-answer (and button text) are affect by this commit: - Overseas passport => "Continue" - calculate-your-child-maintenance => "Calculate your child maintenance" --- app/helpers/application_helper.rb | 11 +++++++++++ app/views/smart_answers/_landing.html.erb | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a63df949b29..7bac1dc231f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -10,4 +10,15 @@ def ajax_enabled_for?(name) register-a-death ).exclude?(name) end + + def start_button + case @name.to_s + when "overseas-passports" + "Continue" + when "calculate-your-child-maintenance" + "Calculate your child maintenance" + else + "Start now" + end + end end diff --git a/app/views/smart_answers/_landing.html.erb b/app/views/smart_answers/_landing.html.erb index 1ab12ec54a4..5961e8b427c 100644 --- a/app/views/smart_answers/_landing.html.erb +++ b/app/views/smart_answers/_landing.html.erb @@ -18,7 +18,7 @@
<%= start_node.body %>

- Start now + <%= start_button %>

<%= start_node.post_body %>