Sha256: e5a733fdf87d7eba3d99cb8440453895f2ac14d630de3574cbdffd9c1ec06dcc

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

<h4>Locations that already exists</h4>
<ul>
  <%= render @pickup_locations %>
</ul>
<h3>Create Location</h3>
<%= form_for [:dash, @pickup_location] do |f| %>
<ul>
  <li>
    <%= f.label :location_name %>:
    <br />
    <%= f.text_field :location_name %>
  </li>
  <li>
    <%= f.label :address1 %>:
    <br />
    <%= f.text_field :address1 %>
  </li>
  <li>
    <%= f.label :address2 %>
    <br />
    <%= f.text_field :address2 %>
  </li>
  <li>
    <%= f.label :city %>
    <br />
    <%= f.text_field :city %>
  </li>
  <li>
    <%= f.label :state %>
    <br />
    <%= f.collection_select(:state_id, Country.find_by_name("United States").states.sort, :id, :name) %>
  </li>
  <li>
    <%= f.label :zipcode %>
    <br />
    <%= f.text_field :zipcode %>
  </li>
</ul>
<table id="hours">
  <%= f.fields_for @pickup_location.hours.new do |f| %>
  <% ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].each do |day| %>
  <%= render :partial => "admin/suppliers/hours_form", :locals => { :day => day, :f => f } %>
  <% end %>
  <% end %>
</table>
<%= f.submit "Create" %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_suppliers-0.0.1 app/views/dash/pickup_locations/new.html.erb
spree_suppliers-0.60.3 app/views/dash/pickup_locations/new.html.erb