diff --git a/app/views/form/guidance/_financial_calculations_outright_sale.html.erb b/app/views/form/guidance/_financial_calculations_outright_sale.html.erb index d35e0ff7a..bd57bd63c 100644 --- a/app/views/form/guidance/_financial_calculations_outright_sale.html.erb +++ b/app/views/form/guidance/_financial_calculations_outright_sale.html.erb @@ -1,10 +1,8 @@ -<% mortgage_page = log.form.get_question("mortgage", log).page %> -<% deposit_page = log.form.get_question("deposit", log).page %> <%= govuk_details(summary_text: "How the financial values are calculated") do %>
- The mortgage amount <%= "(#{govuk_link_to 'Q113', send("#{log.class.name.underscore}_#{mortgage_page.id}_path", log)})".html_safe if mortgage_page.routed_to?(log, current_user) %> - and cash deposit <%= "(#{govuk_link_to 'Q116', send("#{log.class.name.underscore}_#{deposit_page.id}_path", log)})".html_safe if deposit_page.routed_to?(log, current_user) %> + The mortgage amount <%= question_link("mortgage", log, current_user) %> + and cash deposit <%= question_link("deposit", log, current_user) %> added together must equal - the purchase price (<%= govuk_link_to "Q111", send("#{log.class.name.underscore}_#{log.form.get_question('value', log).page.id}_path", log) %>) + the purchase price <%= question_link("value", log, current_user) %>
<% end %>