Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use phone_field helper for semantic markup.

[Fixes #1556]
  • Loading branch information...
commit 7f573d130dc16c70d178c54b232a3cf24a3fb4d8 1 parent 094316f
@JDutil JDutil authored radar committed
View
2  core/app/views/spree/admin/shared/_address_form.html.erb
@@ -71,7 +71,7 @@
<td class="lbl-col">
<%= f.label :phone, t(:phone) + ':' %>
</td>
- <td colspan="7"><%= f.text_field :phone %></td>
+ <td colspan="7"><%= f.phone_field :phone %></td>
</tr>
</tbody>
</table>
View
8 core/app/views/spree/checkout/_address.html.erb
@@ -74,12 +74,12 @@
</p>
<p class="field" id="bphone">
<%= bill_form.label :phone, t(:phone) %><span class="req">*</span><br />
- <%= bill_form.text_field :phone, :class => 'required' %>
+ <%= bill_form.phone_field :phone, :class => 'required' %>
</p>
<% if Spree::Config[:alternative_billing_phone] %>
<p class="field" id="baltphone">
<%= bill_form.label :alternative_phone, t(:alternative_phone) %><br />
- <%= bill_form.text_field :alternative_phone %>
+ <%= bill_form.phone_field :alternative_phone %>
</p>
<% end %>
</div>
@@ -161,12 +161,12 @@
</p>
<p class="field" id="sphone">
<%= ship_form.label :phone, t(:phone) %><span class="req">*</span><br />
- <%= ship_form.text_field :phone, :class => 'required' %>
+ <%= ship_form.phone_field :phone, :class => 'required' %>
</p>
<% if Spree::Config[:alternative_shipping_phone] %>
<p class="field" id="saltphone">
<%= ship_form.label :alternative_phone, t(:alternative_phone) %><br />
- <%= ship_form.text_field :alternative_phone %>
+ <%= ship_form.phone_field :alternative_phone %>
</p>
<% end %>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.