Sha256: b870822fc6fda5c6867965c098d9a98a867b957e77262a5f5fa87bb0674e3787

Contents?: true

Size: 978 Bytes

Versions: 2

Compression:

Stored size: 978 Bytes

Contents

<h1>Products Pickup Settings</h1>
<h1>Pickups</h1>

<div class="locations">
  <% if @pickups.empty? %>
    <p>No Pickup Locations Specified</p>
  <% else %>
    <ul>
      <%= render @pickups %>
    </ul>
  <% end %>
</div>

<div>
  <% form_tag({:controller => "pickups", :action => "create"}, :method => :post) do %>
    <% if current_user.has_role?("vendor") %>
      <%= hidden_field_tag :supplier_id, current_user.supplier.id %>
    <% else %>
      <%= select_tag :supplier_id, options_from_collection_for_select(@suppliers, "id", "title") %>
    <% end %>
    <%= select_tag :pickup_location_id, options_from_collection_for_select(@locations, "id", "location_name") %>
    Dates: <%= text_field :dates, nil, :id => :dates %> (click in the field to add)  
    <br />
    <%= submit_tag "Save" %>
    <br />
  <% end %>
</div>

<%= link_to "Create new location", new_admin_pickup_location_path %>

<script type="text/javascript">
  $("#dates").multiDatesPicker();
</script>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_suppliers-0.0.1 app/views/admin/pickups/new.html.erb
spree_suppliers-0.60.3 app/views/admin/pickups/new.html.erb