Sha256: 0ac7a79fe8dc6a0616b92b86ee597f29d605a1d7178f20da46447d8c414cf5e5

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

<h1>
<%= @supplier.title %>'s <%= t("pickups") %>
</h1>

  <table class="admin-report" width="545">
    <thead>
      <tr>
        <th width="300px">
          <%= @supplier.title %>
        </th>
        <th width="600px">
          <%= t("pickup_address") %>
        </th>
        <th width="300px">
          <%= t("edit") %>
        </th>
        <th>
          <%= t("delete") %>
        </th>
      </tr>
    </thead>
    <tbody>
      <% @supplier.pickups.each do |pickup| %>
        <tr class="<%= cycle('even', 'odd') %>">
          <td>
            <%= link_to pickup.pickup_location.location_name, admin_pickup_location_path(pickup) %>
          </td>
          <td>
            <%= pickup.pickup_location.address1 %>, <%= pickup.pickup_location.city %>, <%= State.find_by_id(pickup.pickup_location.state_id) %>
          </td>
          <td>
            <%= link_to "edit", edit_admin_pickup_location_path(pickup.pickup_location) %>
          </td>
          <td>
            <%= button_to "delete", admin_pickup_path(pickup), :method => :delete %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>

<%= link_to t("new_pickup"), new_admin_pickup_path %>

Version data entries

2 entries across 2 versions & 1 rubygems

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