Sha256: 01274a36c7d863a5cb417a517c373a6b027e3b75cb8dd4b15abb195423e964e8

Contents?: true

Size: 1.18 KB

Versions: 16

Compression:

Stored size: 1.18 KB

Contents

<%= paginate prices, theme: "solidus_admin" %>

<table class="index prices">
  <thead data-hook="prices_header">
    <tr>
      <th><%= Spree::Variant.model_name.human %> </th>
      <th><%= Spree::Price.human_attribute_name(:country) %></th>
      <th><%= Spree::Price.human_attribute_name(:currency) %></th>
      <th><%= Spree::Price.human_attribute_name(:amount) %></th>
      <th class="actions"></th>
    </tr>
  </thead>

  <tbody>
  <% prices.each do |price| %>
    <tr id="<%= spree_dom_id price %>" data-hook="prices_row" class="<%= "deleted" if price.deleted? %> <%= cycle('odd', 'even')%>">
      <td><%= price.variant.descriptive_name %></td>
      <td><%= price.display_country %>
      <td><%= price.currency %></td>
      <td class="align-right"><%= price.money.to_html %></td>
      <td class="actions">
        <% if can?(:update, price) %>
          <%= link_to_edit(price, :no_text => true) unless price.deleted? %>
        <% end %>
        <% if can?(:destroy, price) %>
          &nbsp;
          <%= link_to_delete(price, :no_text => true) unless price.deleted? %>
        <% end %>
      </td>
    </tr>
    <% end %>
  </tbody>
</table>

<%= paginate prices, theme: "solidus_admin" %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
solidus_backend-2.0.3 app/views/spree/admin/prices/_table.html.erb
solidus_backend-1.4.2 app/views/spree/admin/prices/_table.html.erb
solidus_backend-1.3.2 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.0.2 app/views/spree/admin/prices/_table.html.erb
solidus_backend-1.4.1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.0.1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.0.0 app/views/spree/admin/prices/_table.html.erb
solidus_backend-1.4.0 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.0.0.rc1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-1.4.0.rc1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.0.0.beta1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-1.4.0.beta1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-1.3.1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-1.3.0 app/views/spree/admin/prices/_table.html.erb
solidus_backend-1.3.0.rc2 app/views/spree/admin/prices/_table.html.erb
solidus_backend-1.3.0.rc1 app/views/spree/admin/prices/_table.html.erb