Sha256: b66d5b036078f611f26ceec9b8ef2f492f7928f7f43cf82f3515355a60bc9e1a

Contents?: true

Size: 1.45 KB

Versions: 46

Compression:

Stored size: 1.45 KB

Contents

<fieldset class="no-border-bottom" data-hook="variant_prices_table">
  <legend align="center"><%= t(".variant_pricing") %></legend>

  <%= paginate variant_prices, theme: "solidus_admin", param_name: :variants_page %>
  <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.discarded? %>">
          <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?(:edit, price) %>
              <%= link_to_edit(price, no_text: true) unless price.discarded? %>
            <% end %>
            <% if can?(:destroy, price) %>
              &nbsp;
              <%= link_to_delete(price, no_text: true) unless price.discarded? %>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
  <%= paginate variant_prices, theme: "solidus_admin", param_name: :variants_page %>
</fieldset>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
solidus_backend-4.4.1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.4.0 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.3.4 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.2.4 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.1.5 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.3.3 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.3.2 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.1.4 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.3.1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.3.0 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.2.3 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.1.3 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.0.4 app/views/spree/admin/prices/_table.html.erb
solidus_backend-3.4.6 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.0.3 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.1.2 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.2.2 app/views/spree/admin/prices/_table.html.erb
solidus_backend-3.4.5 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.2.1 app/views/spree/admin/prices/_table.html.erb
solidus_backend-4.2.0 app/views/spree/admin/prices/_table.html.erb