diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index 1b9ca13ea..725fa9455 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -18,9 +18,10 @@
Enter your email address to get a new invitation link.
- <%= f.govuk_email_field :email, + <%= f.govuk_text_field :email, label: { text: "Email address" }, autocomplete: "email", + inputmode: "email", spellcheck: "false", value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %> diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index b677b4c17..2ecf0ad66 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -19,9 +19,10 @@Enter the email address you used to create your account.
We’ll email you a link to reset your password. This link will expire in 3 hours.
- <%= f.govuk_email_field :email, + <%= f.govuk_text_field :email, label: { text: "Email address" }, autocomplete: "email", + inputmode: "email", spellcheck: "false" %> <%= f.govuk_submit "Send email" %> diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index aeb260b96..41f7bcd76 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -16,9 +16,10 @@ <%= content_for(:title) %> - <%= f.govuk_email_field :email, + <%= f.govuk_text_field :email, label: { text: "Email address" }, autocomplete: "email", + inputmode: "email", spellcheck: "false" %> <%= f.govuk_password_field :password, diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb index 4f0de4c0b..9bb781a16 100644 --- a/app/views/devise/unlocks/new.html.erb +++ b/app/views/devise/unlocks/new.html.erb @@ -3,9 +3,10 @@ <%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %> <%= render "devise/shared/error_messages", resource: resource %> - <%= f.govuk_email_field :email, + <%= f.govuk_text_field :email, label: { text: "Email address" }, autocomplete: "email", + inputmode: "email", spellcheck: "false" %> <%= f.govuk_submit "Resend unlock instructions" %> diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index da3cb51b0..f053edffc 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -20,9 +20,10 @@ label: { text: "Name", size: "m" }, autocomplete: "name" %> - <%= f.govuk_email_field :email, - label: { text: "Email address", size: "m" }, + <%= f.govuk_text_field :email, + label: { text: "Email address" }, autocomplete: "email", + inputmode: "email", spellcheck: "false" %> <% if current_user.data_coordinator? || current_user.support? %> diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index fa9fc26fc..da292331e 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -20,9 +20,10 @@ autocomplete: "name", label: { text: "Name (optional)", size: "m" } %> - <%= f.govuk_email_field :email, - label: { text: "Email address", size: "m" }, + <%= f.govuk_text_field :email, + label: { text: "Email address" }, autocomplete: "email", + inputmode: "email", spellcheck: "false", value: @resource.email %>