Permalink
Browse files

Use phone_field helper for semantic markup.

[Fixes #1556]
  • Loading branch information...
JDutil authored and radar committed May 17, 2012
1 parent 094316f commit 7f573d130dc16c70d178c54b232a3cf24a3fb4d8
@@ -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>
@@ -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>

0 comments on commit 7f573d1

Please sign in to comment.