Sha256: d3c2b10c8a0f4b0f656229008c27b2b6ea64eae90ac7e7a6f6bad4658475cb18

Contents?: true

Size: 1.53 KB

Versions: 10

Compression:

Stored size: 1.53 KB

Contents

<% fields_for "#{address_type}_address", @address do |a| %>
    <tr>
      <td width="150">First Name</td>
      <td><%= a.text_field :firstname %></td>
      <td><%= error_message_on "#{address_type}_address", :firstname -%></td>
    </tr>
    <tr>
      <td>Last Name</td>
      <td><%= a.text_field :lastname %></td>
      <td><%= error_message_on "#{address_type}_address", :lastname -%></td>
    </tr>
    <tr>
      <td>Street Address</td>
      <td><%= a.text_field :address1 %></td>
      <td><%= error_message_on "#{address_type}_address", :address1 -%></td>
    </tr>
    <tr>
      <td>Street Address (cont'd)</td>
      <td><%= a.text_field :address2 %></td>
      <td></td>
    </tr>
    <tr>
      <td>City</td>
      <td><%= a.text_field :city %></td>
      <td><%= error_message_on "#{address_type}_address", :city -%></td>
    </tr>
    <tr>
      <td>State</td>
      <td>
        <%= a.collection_select :state_id, @states, :id, :name, {}, {:style => "width:100%"}%>
      </td>
      <td></td>
    </tr>
    <tr>
      <td>Zip</td>
      <td><%= a.text_field :zipcode %></td>
      <td><%= error_message_on "#{address_type}_address", :zipcode -%></td>
    </tr>
    <% if (@countries.size > 1) %>
      <tr>
        <td>Country</td>
        <td><%= a.collection_select :country_id, @countries, :id, :name, {}, {:style => "width:100%"}%></td>
        <td></td>
      </tr>
    <% end %>
    <tr>
      <td>Phone</td>
      <td><%= a.text_field :phone %></td>
      <td><%= error_message_on "#{address_type}_address", :phone -%></td>
    </tr>
<% end %>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
railscart-0.0.1 starter-app/vendor/plugins/railscart/app/views/checkout/_address.rhtml
railscart-0.0.2 starter_app/vendor/plugins/railscart/app/views/checkout/_address.rhtml
railscart-0.0.4 starter_app/vendor/plugins/railscart/app/views/checkout/_address.rhtml
railscart-0.0.3 starter_app/vendor/plugins/railscart/app/views/checkout/_address.rhtml
spree-0.0.5 starter-app/vendor/plugins/spree/app/views/checkout/_address.rhtml
spree-0.0.6 starter-app/vendor/plugins/spree/app/views/checkout/_address.rhtml
spree-0.0.7 starter-app/vendor/plugins/spree/app/views/checkout/_address.rhtml
spree-0.0.9 app/views/checkout/_address.rhtml
spree-0.0.8 starter-app/vendor/plugins/spree/app/views/checkout/_address.rhtml
spree-0.2.0 app/views/checkout/_address.rhtml