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 :name, autofocus: true, maxlength: Organization.name_max_length %>
|
||||||
<%= fo.text_field :responsible_name, autofocus: true, maxlength: Organization.responsible_name_max_length %>
|
<%= fo.text_field :responsible_name, autofocus: true, maxlength: Organization.responsible_name_max_length %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= f.text_field :phone_number %>
|
<%= f.phone_field :phone_number %>
|
||||||
|
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= f.text_field :username, maxlength: User.username_max_length %>
|
<%= f.text_field :username, maxlength: User.username_max_length %>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<%= f.email_field :email %>
|
<%= f.email_field :email %>
|
||||||
|
|
||||||
<%= f.text_field :phone_number %>
|
<%= f.phone_field :phone_number %>
|
||||||
|
|
||||||
<%= f.invisible_captcha :address %>
|
<%= f.invisible_captcha :address %>
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<%= f.label :phone, t("verification.sms.new.phone"), class: "inline-block" %>
|
<%= f.label :phone, t("verification.sms.new.phone"), class: "inline-block" %>
|
||||||
<span class="inline-block"><%= sanitize(t("verification.sms.new.phone_format")) %></span>
|
<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>
|
<p class="help-text" id="phone-text-help"><%= t("verification.sms.new.phone_note") %></p>
|
||||||
<%= f.text_field :phone, label: false,
|
<%= f.phone_field :phone, label: false,
|
||||||
aria: { describedby: "phone-help-text" } %>
|
aria: { describedby: "phone-help-text" } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user