Merge pull request #4643 from consul/phone_number_field
Use telephone fields in phone number form controls
This commit is contained in:
@@ -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 %>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<%= f.email_field :email %>
|
||||
|
||||
<%= f.text_field :phone_number %>
|
||||
<%= f.phone_field :phone_number %>
|
||||
|
||||
<%= f.invisible_captcha :address %>
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
<%= f.label :phone, t("verification.sms.new.phone"), class: "inline-block" %>
|
||||
<span class="inline-block"><%= sanitize(t("verification.sms.new.phone_format")) %></span>
|
||||
<p class="help-text" id="phone-text-help"><%= t("verification.sms.new.phone_note") %></p>
|
||||
<%= f.text_field :phone, label: false,
|
||||
aria: { describedby: "phone-help-text" } %>
|
||||
<%= f.phone_field :phone, label: false,
|
||||
aria: { describedby: "phone-help-text" } %>
|
||||
</div>
|
||||
|
||||
<%= f.submit t("verification.sms.new.submit_button"), class: "button success" %>
|
||||
|
||||
Reference in New Issue
Block a user