Skip to content

Commit

Permalink
Use phone_field helper for semantic markup.
Browse files Browse the repository at this point in the history
[Fixes #1556]
  • Loading branch information
JDutil authored and radar committed May 29, 2012
1 parent 094316f commit 7f573d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/app/views/spree/admin/shared/_address_form.html.erb
Expand Up @@ -71,7 +71,7 @@
<td class="lbl-col"> <td class="lbl-col">
<%= f.label :phone, t(:phone) + ':' %> <%= f.label :phone, t(:phone) + ':' %>
</td> </td>
<td colspan="7"><%= f.text_field :phone %></td> <td colspan="7"><%= f.phone_field :phone %></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
Expand Down
8 changes: 4 additions & 4 deletions core/app/views/spree/checkout/_address.html.erb
Expand Up @@ -74,12 +74,12 @@
</p> </p>
<p class="field" id="bphone"> <p class="field" id="bphone">
<%= bill_form.label :phone, t(:phone) %><span class="req">*</span><br /> <%= 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> </p>
<% if Spree::Config[:alternative_billing_phone] %> <% if Spree::Config[:alternative_billing_phone] %>
<p class="field" id="baltphone"> <p class="field" id="baltphone">
<%= bill_form.label :alternative_phone, t(:alternative_phone) %><br /> <%= bill_form.label :alternative_phone, t(:alternative_phone) %><br />
<%= bill_form.text_field :alternative_phone %> <%= bill_form.phone_field :alternative_phone %>
</p> </p>
<% end %> <% end %>
</div> </div>
Expand Down Expand Up @@ -161,12 +161,12 @@
</p> </p>
<p class="field" id="sphone"> <p class="field" id="sphone">
<%= ship_form.label :phone, t(:phone) %><span class="req">*</span><br /> <%= 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> </p>
<% if Spree::Config[:alternative_shipping_phone] %> <% if Spree::Config[:alternative_shipping_phone] %>
<p class="field" id="saltphone"> <p class="field" id="saltphone">
<%= ship_form.label :alternative_phone, t(:alternative_phone) %><br /> <%= ship_form.label :alternative_phone, t(:alternative_phone) %><br />
<%= ship_form.text_field :alternative_phone %> <%= ship_form.phone_field :alternative_phone %>
</p> </p>
<% end %> <% end %>
</div> </div>
Expand Down

0 comments on commit 7f573d1

Please sign in to comment.