Skip to content

Commit f076b3e

Browse files
committed
wip update and add welsh content for copy of answers
1 parent ed5b502 commit f076b3e

4 files changed

Lines changed: 50 additions & 17 deletions

File tree

app/views/forms/check_your_answers/show.html.erb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,27 @@
1919

2020
<%= render CheckYourAnswersComponent::View.new(form: @form, steps: @steps, mode: @mode) %>
2121

22+
<%# todo: this is all a wip and is failing tests at the moment. will use a component %>
23+
<div class="govuk-grid-row">
24+
<div class="govuk-grid-column-two-thirds-from-desktop">
25+
<%if !@current_context.wants_copy_of_answers? %>
26+
<%# can i use the CheckYourAnswersComponent view for this, or a new component? %>
27+
<h2 class="govuk-heading-m govuk-!-margin-top-7"><%= t('form.check_your_answers.does_not_want_copy_of_answers_title') %></h2>
28+
<dl class="govuk-summary-list">
29+
<div class="govuk-summary-list__row">
30+
<dt class="govuk-summary-list__key"><%= t('form.check_your_answers.does_not_want_copy_of_answers_key') %></dt>
31+
<dd class="govuk-summary-list__value"><p><%= t('form.check_your_answers.does_not_want_copy_of_answers_value') %></p></dd>
32+
<%# todo: fix href link %>
33+
<dd class="govuk-summary-list__actions"><a class="govuk-link" href="/copy-of-answers"><%= t('govuk_components.govuk_summary_list.change') %></dd>
34+
</div>
35+
</dl>
36+
<%elsif @current_context.wants_copy_of_answers? %>
37+
<%# todo: add email address%>
38+
<div class="govuk-hint"><%= t('form.check_your_answers.wants_copy_of_answers') %></div>
39+
<% end %>
40+
</div>
41+
</div>
42+
2243
<div class="govuk-grid-row">
2344
<div class="govuk-grid-column-two-thirds-from-desktop">
2445
<%= form.govuk_radio_buttons_fieldset(:send_confirmation, legend: { size: 'm', tag: 'h2' }) do %>

app/views/forms/continue_to_one_login/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div class="govuk-grid-column-two-thirds">
99
<h1 class="govuk-heading-l"><%= t('.title') %></h1>
1010

11-
<p><%= t('.body') %></p>
11+
<%= t('.body_html') %>
1212

1313
<%= govuk_button_to(
1414
t(".continue_button"),

config/locales/cy.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ cy:
8686
copy_of_answers_input:
8787
attributes:
8888
copy_of_answers:
89-
blank: PLACEHOLDER! Dewiswch ydw os hoffech dderbyn copi o'ch atebion
89+
blank: Dewiswch 'Ydw' os ydych eisiau copi och atebion
9090
email_confirmation_input:
9191
attributes:
9292
confirmation_email_address:
@@ -298,10 +298,10 @@ cy:
298298
errors:
299299
auth_error:
300300
body_html: |
301-
<p>We could not confirm your email address using GOV.UK One Login.</p>
302-
<p>You’ll need to go back to the form and submit your answers.</p>
303-
<p><a href="%{link_url}">Back to form</a></p>
304-
title: Sorry, something has gone wrong
301+
<p>Nid oeddem yn gallu cadarnhau eich cyfeiriad e-bost gan ddefnyddio GOV.UK One Login.</p>
302+
<p>Bydd angen i chi fynd yn ôl i’r ffurflen a chyflwyno’ch atebion.</p>
303+
<p><a href="%{link_url}">Yn ôl i’r ffurflen</a></p>
304+
title: Mae’n ddrwg gennym, mae rhywbeth wedi mynd o’i le
305305
goto_page_routing_error:
306306
cannot_have_goto_page_before_routing_page:
307307
body_html: |
@@ -337,9 +337,9 @@ cy:
337337
title: Er lles eich diogelwch, rydyn ni wedi dileu’ch atebion
338338
return_from_one_login_session_missing:
339339
body_html: |
340-
<p>We could not confirm your email address using GOV.UK One Login.</p>
341-
<p>You’ll need to go back to the form and submit your answers - try clicking the ‘Back’ button in your browser.</p>
342-
title: Sorry, something has gone wrong
340+
<p>Nid oeddem yn gallu cadarnhau eich cyfeiriad e-bost gan ddefnyddio GOV.UK One Login.</p>
341+
<p>Bydd angen i chi fynd yn ôl i’r ffurflen a chyflwyno’ch atebion - ceisiwch glicio ar y botwm ’Yn ôl’ yn eich porwr.</p>
342+
title: Mae’n ddrwg gennym, mae rhywbeth wedi mynd o’i le
343343
submission_error:
344344
body: |
345345
Roedd yna broblem gyda’r gwasanaeth ac rydyn ni wedi methu cyflwyno’ch atebion.
@@ -363,9 +363,13 @@ cy:
363363
check_your_answers:
364364
agree_and_submit: Cytuno a chyflwyno
365365
declaration: Datganiad
366+
does_not_want_copy_of_answers_key: Cael copi o’ch atebion
367+
does_not_want_copy_of_answers_title: Rydych wedi dewis peidio â chael copi o’ch atebion
368+
does_not_want_copy_of_answers_value: Na
366369
not_completed: Heb ei gwblhau
367370
submit: Cyflwyno
368371
title: Edrychwch dros eich atebion cyn cyflwyno’ch ffurflen
372+
wants_copy_of_answers: 'Byddwn yn anfon e-bost cadarnhau gyda chopi o’ch atebion i’ch cyfeiriad e-bost GOV.UK One Login:'
369373
submitted:
370374
continue_to_pay: Parhau i dalu
371375
email_sent: Rydym wedi anfon e-bost cadarnhau atoch.
@@ -395,14 +399,16 @@ cy:
395399
back: Yn ôl
396400
continue_to_one_login:
397401
show:
398-
body: To help make sure the information we send you stays secure, you’ll need to sign in to or create a GOV.UK One Login.
399-
continue_button: Continue to GOV.UK One Login
400-
title: Use GOV.UK One Login to keep your information secure
402+
body_html: |
403+
<p>Bydd yr e-bost gyda’ch atebion yn cael ei anfon i’r cyfeiriad e-bost sy’n gysylltiedig â’ch GOV.UK One Login.</p>
404+
<p>Os ydych angen i’r atebion gael eu hanfon i gyfeiriad e-bost gwahanol - er enghraifft, eich e-bost gwaith - gallwch greu GOV.UK One Login newydd.</p>
405+
continue_button: Parhau i GOV.UK One Login
406+
title: Defnyddiwch GOV.UK One Login i gadw’ch gwybodaeth yn ddiogel.
401407
copy_of_answers:
402408
show:
403-
heading: PLACEHOLDER! Ydych chi eisiau copi o'ch atebion?
404-
hint: PLACEHOLDER! Byddwn ond yn defnyddio'r cyfeiriad e-bost rydych yn ei ddarparu yma i anfon cadarnhad bod eich ffurflen wedi'i chyflwyno'n llwyddiannus. Ni fydd yn cynnwys copi o'ch atebion.
405-
title: PLACEHOLDER! Ydych chi eisiau copi o'ch atebion?
409+
heading: Ydych chi eisiau cael e-bost gyda chopi o’ch atebion?
410+
hint: Byddwch angen GOV.UK One Login ar gyfer hyn - byddwch yn gallu mewngofnodi neu greu un newydd.
411+
title: Ydych chi eisiau cael e-bost gyda chopi o’ch atebion?
406412
remove_answer:
407413
show:
408414
address_heading: Dileu cyfeiriad
@@ -672,5 +678,5 @@ cy:
672678
phone: Ffôn
673679
unknown_form_submitted:
674680
show:
675-
email_sent: We’ve sent you a confirmation email with a copy of your answers.
681+
email_sent: Rydym wedi anfon e-bost cadarnhau atoch gyda chopi o’ch atebion.
676682
title: Your form has been submitted

config/locales/en.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,13 @@ en:
363363
check_your_answers:
364364
agree_and_submit: Agree and submit
365365
declaration: Declaration
366+
does_not_want_copy_of_answers_key: Get a copy of your answers
367+
does_not_want_copy_of_answers_title: You’ve chosen to not get a copy of your answers
368+
does_not_want_copy_of_answers_value: false
366369
not_completed: Not completed
367370
submit: Submit
368371
title: Check your answers before submitting your form
372+
wants_copy_of_answers: 'We’ll send a confirmation email with a copy of your answers to your GOV.UK One Login email address:'
369373
submitted:
370374
continue_to_pay: Continue to pay
371375
email_sent: We’ve sent you a confirmation email.
@@ -395,7 +399,9 @@ en:
395399
back: Back
396400
continue_to_one_login:
397401
show:
398-
body: To help make sure the information we send you stays secure, you’ll need to sign in to or create a GOV.UK One Login.
402+
body_html: |
403+
<p>The email with your answers will be sent to the email address linked to your GOV.UK One Login.</p>
404+
<p>If you need the answers sent to a different email address - for example, your work email - you can create a new GOV.UK One Login.</p>
399405
continue_button: Continue to GOV.UK One Login
400406
title: Use GOV.UK One Login to keep your information secure
401407
copy_of_answers:

0 commit comments

Comments
 (0)