Sha256: 90515b32ed3d0c2b6cddcbda9f5a66788b7349b65857e3982f82b5c4b2ea3b25

Contents?: true

Size: 1.37 KB

Versions: 58

Compression:

Stored size: 1.37 KB

Contents

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

<fieldset class="no-border-bottom">
  <legend align="center"><%= I18n.t(:variant_pricing, scope: :spree) %></legend>
  <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>
      <% variant_prices.each do |price| %>
        <tr id="<%= spree_dom_id price %>" data-hook="prices_row" class="<%= "deleted" if price.deleted? %>">
          <td><%= price.variant.descriptive_name %></td>
          <td><%= price.display_country %></td>
          <td><%= price.currency %></td>
          <td><%= 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>
</fieldset>

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

Version data entries

58 entries across 58 versions & 2 rubygems

Version Path
solidus_backend-2.10.5 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.10.3 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.10.2 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.9.6 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.8.6 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.10.1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.9.5 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.10.0 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.9.4 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.6.6 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.7.4 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.8.5 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.9.3 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.9.2 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.10.0.beta1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.7.3 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.6.5 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.5.2 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.9.1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-2.9.0 app/views/spree/admin/prices/_table.html.erb