Skip to content

Commit 17bbe48

Browse files
authored
Merge pull request #2643 from alphagov/use-email-field-type
Use email field type for submission and support email
2 parents fabddd1 + e4c2ace commit 17bbe48

File tree

5 files changed

+165
-165
lines changed

5 files changed

+165
-165
lines changed

app/views/forms/contact_details/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<%= f.govuk_check_boxes_fieldset :contact_details_supplied, legend: { text: t('contact_details.new.title') }, hint: { text: t('contact_details.new.hint') } do %>
2424
<%= f.govuk_check_box :contact_details_supplied, :supply_email, checked: @contact_details_input.check_email? do %>
25-
<%= f.govuk_text_field :email %>
25+
<%= f.govuk_email_field :email %>
2626
<% end %>
2727

2828
<%= f.govuk_check_box :contact_details_supplied, :supply_phone, checked: @contact_details_input.check_phone? do %>

app/views/forms/submission_email/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<%= t("set_email.new.body_html") %>
1616
<%= f.hidden_field :notify_response_id, id: 'notification-id' %>
17-
<%= f.govuk_text_field :temporary_submission_email, label: { tag: 'h2', size: 'm' } %>
17+
<%= f.govuk_email_field :temporary_submission_email, label: { tag: 'h2', size: 'm' } %>
1818
<%= f.govuk_submit t("save_and_continue") %>
1919
<% end %>
2020

0 commit comments

Comments
 (0)