Sha256: 3c0ab5e478287e5db23da10a453c2b91d4f1dec21fd1976d45441b57454c8e0f

Contents?: true

Size: 1.84 KB

Versions: 12

Compression:

Stored size: 1.84 KB

Contents

<div class="table-responsive border rounded bg-white">
  <div id="variant_prices-table-wrapper">
    <table class="table">
      <thead class="text-muted">
        <tr data-hook="variant_prices_header">
          <th scope="col" class="text-center"><%= Spree.t(:options) %></th>
          <th scope="col" class="text-center"><%= Spree.t(:sku) %></th>
          <th scope="col" class="text-center"><%= Spree.t(:currency) %></th>
          <th scope="col" class="text-center" style="min-width: 150px;"><%= Spree.t(:price) %></th>
          <th scope="col" class="text-center" style="min-width: 150px;"><%= Spree.t(:compare_at_price) %></th>
        </tr>
      </thead>
      <tbody id="variant-prices" data-hook="variant_prices_body">
        <% supported_currencies_for_all_stores.each do |currency| %>
          <% code  = currency.iso_code %>
          <% @product.variants_including_master.each do |variant| %>
            <% price = variant.price_in(code) %>
            <tr id="variant_prices_row" data-hook="variant_prices_row">
              <td class="panel">
                <%= variant.is_master? ? Spree.t(:master) : variant.options_text.blank? ? Spree.t(:variant) : variant.options_text %>
              </td>
              <td class="panel-title"><%= variant.sku %></td>
              <td><%= label_tag "vp[#{variant.id}][#{code}]", code %></td>
              <td>
                <%= text_field_tag "vp[#{variant.id}][#{code}][price]", (price && price.price ? price.display_amount.money : ''), class: 'form-control' %>
              </td>
              <td>
                <%= text_field_tag "vp[#{variant.id}][#{code}][compare_at_price]", (price && price.compare_at_price ? price.display_compare_at_amount.money : ''), class: 'form-control' %>
              </td>
            </tr>
          <% end %>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/prices/_variant_prices.html.erb
spree_backend-4.8.3 app/views/spree/admin/prices/_variant_prices.html.erb
spree_backend-4.8.2 app/views/spree/admin/prices/_variant_prices.html.erb
spree_backend-4.8.1 app/views/spree/admin/prices/_variant_prices.html.erb
spree_backend-4.7.2 app/views/spree/admin/prices/_variant_prices.html.erb
spree_backend-4.6.2 app/views/spree/admin/prices/_variant_prices.html.erb
spree_backend-4.7.1 app/views/spree/admin/prices/_variant_prices.html.erb
spree_backend-4.7.0 app/views/spree/admin/prices/_variant_prices.html.erb
spree_backend-4.6.1 app/views/spree/admin/prices/_variant_prices.html.erb
spree_backend-4.6.0 app/views/spree/admin/prices/_variant_prices.html.erb
spree_backend-4.5.1 app/views/spree/admin/prices/_variant_prices.html.erb
spree_backend-4.5.0 app/views/spree/admin/prices/_variant_prices.html.erb