Sha256: 8a194adfd33a5865e04a9d896eff1f73b6a0442093a0656d1623f30c1be613e5

Contents?: true

Size: 1.65 KB

Versions: 53

Compression:

Stored size: 1.65 KB

Contents

<div class="row">
  <div class="col-12">
    <fieldset class="no-border-bottom <%= "no-border-top" if !variants %>">
      <% if variants %>
        <legend align="center"><%= I18n.t(:master_variant, scope: :spree) %> <%= admin_hint I18n.t(:master_variant, scope: :spree), I18n.t(:master_variant, scope: [:spree, :hints, "spree/price"]) %></legend>
      <% end %>
      <table class="index master_prices">
        <colgroup>
          <col style="width: 30%">
          <col style="width: 30%">
          <col style="width: 20%">
          <col style="width: 20%">
        </colgroup>
        <thead data-hook="master_prices_header">
          <tr>
            <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>
        <% master_prices.each do |price| %>
          <tr id="<%= spree_dom_id price %>" data-hook="prices_row" class="<%= "deleted" if price.deleted? %>">
            <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 %>
      </table>
    </fieldset>
  </div>
</div>

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
solidus_backend-2.9.6 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.8.6 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.9.5 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.9.4 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.6.6 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.7.4 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.8.5 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.9.3 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.9.2 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.10.0.beta1 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.7.3 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.6.5 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.5.2 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.9.1 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.9.0 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.9.0.rc.1 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.8.4 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.8.3 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.7.2 app/views/spree/admin/prices/_master_variant_table.html.erb
solidus_backend-2.6.4 app/views/spree/admin/prices/_master_variant_table.html.erb