diff --git a/app/views/account/show.html.erb b/app/views/account/show.html.erb index 3976c1480..f4f2fe010 100644 --- a/app/views/account/show.html.erb +++ b/app/views/account/show.html.erb @@ -24,7 +24,7 @@ <%= fo.text_field :name, autofocus: true, maxlength: Organization.name_max_length %> <%= fo.text_field :responsible_name, autofocus: true, maxlength: Organization.responsible_name_max_length %> <% end %> - <%= f.text_field :phone_number %> + <%= f.phone_field :phone_number %> <% else %> <%= f.text_field :username, maxlength: User.username_max_length %> diff --git a/app/views/organizations/registrations/new.html.erb b/app/views/organizations/registrations/new.html.erb index e209c0e90..30e2dd2f6 100644 --- a/app/views/organizations/registrations/new.html.erb +++ b/app/views/organizations/registrations/new.html.erb @@ -15,7 +15,7 @@ <%= f.email_field :email %> - <%= f.text_field :phone_number %> + <%= f.phone_field :phone_number %> <%= f.invisible_captcha :address %> diff --git a/app/views/verification/sms/new.html.erb b/app/views/verification/sms/new.html.erb index b11255dc4..bef0e8539 100644 --- a/app/views/verification/sms/new.html.erb +++ b/app/views/verification/sms/new.html.erb @@ -29,8 +29,8 @@ <%= f.label :phone, t("verification.sms.new.phone"), class: "inline-block" %> <%= sanitize(t("verification.sms.new.phone_format")) %>
<%= t("verification.sms.new.phone_note") %>
- <%= f.text_field :phone, label: false, - aria: { describedby: "phone-help-text" } %> + <%= f.phone_field :phone, label: false, + aria: { describedby: "phone-help-text" } %> <%= f.submit t("verification.sms.new.submit_button"), class: "button success" %>