Sha256: e6794c6053565e247cf60c67ab1555fd47b2eccbcdad0d28e93da223c3c7ac3e

Contents?: true

Size: 1.8 KB

Versions: 6

Compression:

Stored size: 1.8 KB

Contents

<% f.fields_for :address do |address_form| %>
  <div class="yui-g">
    <label>Name</label>
    <div class="yui-u sub-field first">
      <%= address_form.text_field :firstname, :class => 'fullwidth' %>
      <br/>
      <label for="<%= t("first_name") %>"><%= t("first_name") %></label>
    </div>
    <div class="yui-u sub-field">
      <%= address_form.text_field :lastname, :class => 'fullwidth' %>
      <br/>
      <label for="<%= t("last_name") %>"><%= t("last_name") %></label>
    </div>
  </div>
  <p>
    <label><%= t("address") %></label>
    <div class="sub-field">
      <%= address_form.label :address1, t("street_address") %><br />
      <%= address_form.text_field :address1, :class => 'fullwidth' %>
    </div>
    <div class="sub-field">
      <%= address_form.label :address2, t("street_address") %><br />
      <%= address_form.text_field :address2, :class => 'fullwidth' %>
    </div>
  </p>
  <div class="left sub-field">
    <%= address_form.label :city, t("city") %><br />
    <%= address_form.text_field :city, :size => 20 %>
  </div>
  <div class="right sub-field">
    <%= address_form.label :zipcode, t("zip") %><br />
    <%= address_form.text_field :zipcode, :size => 10 %>
  </div>
  <div class="left sub-field">
    <%= address_form.label :state, t("state") %><br />
  	<% if @states.length == 0 %>
  		<%= address_form.text_field :state_name, :autocomplete => 'off' %>
  	<% else %>
  	  <%= address_form.collection_select :state_id, @states, :id, :name %>
  	<% end %>    
  </div>
  <div class="right sub-field">
    <%= address_form.label :country_id, t("country") %><br />
  	<%= address_form.collection_select :country_id, @countries, :id, :name, {}, {:style => 'width:150px;'} %>
  </div>
  <p>
    <%= address_form.label :phone, t("phone") %><br />
    <%= address_form.text_field :phone %>
  </p>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree-0.8.4 app/views/admin/shared/_form_address.html.erb
spree-0.8.5 app/views/admin/shared/_form_address.html.erb
spree-0.8.0 app/views/admin/shared/_form_address.html.erb
spree-0.8.1 app/views/admin/shared/_form_address.html.erb
spree-0.8.2 app/views/admin/shared/_form_address.html.erb
spree-0.8.3 app/views/admin/shared/_form_address.html.erb