From f4b9fe9ff4b7818f80acd490af85ac050cde75ed Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Thu, 18 May 2017 19:14:01 +0200 Subject: [PATCH] Update views with email entry to use email_field - merged with i18n --- app/views/invitations/build.html.erb | 2 +- app/views/login/forgot_password.html.erb | 2 +- app/views/login/index.html.erb | 2 +- app/views/settings/index.html.erb | 2 +- app/views/users/_invitationform.html.erb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/invitations/build.html.erb b/app/views/invitations/build.html.erb index 5d068de..ce03086 100644 --- a/app/views/invitations/build.html.erb +++ b/app/views/invitations/build.html.erb @@ -13,7 +13,7 @@
<%= f.label :email, t('.buildinvemail') %> - <%= f.text_field :email, :size => 30 %> + <%= f.email_field :email, :size => 30 %>
<%= f.label :memo, t('.buildinvurl') %> diff --git a/app/views/login/forgot_password.html.erb b/app/views/login/forgot_password.html.erb index 517e8b7..172a703 100644 --- a/app/views/login/forgot_password.html.erb +++ b/app/views/login/forgot_password.html.erb @@ -9,7 +9,7 @@ <%= form_tag reset_password_path do %> <%= label_tag :email, t('.email') %> - <%= text_field_tag :email, "", :size => 30 %> + <%= email_field_tag :email, "", :size => 30 %>

diff --git a/app/views/login/index.html.erb b/app/views/login/index.html.erb index 4549f64..96d68ca 100644 --- a/app/views/login/index.html.erb +++ b/app/views/login/index.html.erb @@ -6,7 +6,7 @@ <%= form_tag login_path do %>

<%= label_tag :email, t('.email') %> - <%= text_field_tag :email, "", :size => 30, :autofocus => "autofocus" %> + <%= email_field_tag :email, "", :size => 30, :autofocus => "autofocus" %>
<%= label_tag :password, t('.password') %> diff --git a/app/views/settings/index.html.erb b/app/views/settings/index.html.erb index eeb426d..0559ab4 100644 --- a/app/views/settings/index.html.erb +++ b/app/views/settings/index.html.erb @@ -38,7 +38,7 @@

<%= f.label :email, t('.emailaddress'), :class => "required" %> - <%= f.text_field :email, :size => 40 %> + <%= f.email_field :email, :size => 40 %> <%= raw(t('.gravatarized')) %> diff --git a/app/views/users/_invitationform.html.erb b/app/views/users/_invitationform.html.erb index 3e78ec7..5869b96 100644 --- a/app/views/users/_invitationform.html.erb +++ b/app/views/users/_invitationform.html.erb @@ -9,7 +9,7 @@
<%= label_tag :email, t(:emailaddress), :class => "required" %> - <%= text_field_tag :email, "", :size => 30, :autocomplete => "off" %> + <%= email_field_tag :email, "", :size => 30, :autocomplete => "off" %>