Sha256: e1553d80a30f58fd44937688c3284ce408767a137ade228019acef1eb6864bc9

Contents?: true

Size: 1.07 KB

Versions: 7

Compression:

Stored size: 1.07 KB

Contents

<%= render partial: 'spree/admin/shared/product_tabs', locals: { current: :prices } %>

<% content_for :page_actions do %>
  <% prices_actions.items.each do |action| %>
    <% next unless action.available?(current_ability) %>
    <%= button_link_to(
      Spree.t(action.label_translation_key),
      action.url(@product),
      class: action.classes,
      icon: action.icon_key,
      id: action.id,
      target: action.target,
      data: action.data_attributes
    ) %>
  <% end if product_actions&.items %>
<% end %>

<form>
  <input class="form-control" placeholder="<%= Spree.t('variant_prices_search_placeholder') %>" type="text" id="variant-price-search">
</form>

<%= form_tag nil, { class: 'form-horizontal' } do %>
  <div class="my-3">
    <%= render 'variant_prices', variant: @product.master %>
  </div>
  <div class="form-actions" data-hook="buttons">
    <%= button Spree.t('actions.update'), 'update.svg' %>
    <span class="or"><%= Spree.t(:or) %></span>
    <%= button_link_to Spree.t('actions.cancel'), admin_product_path(@product), icon: 'delete.svg' %>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/prices/index.html.erb
spree_backend-4.8.3 app/views/spree/admin/prices/index.html.erb
spree_backend-4.8.2 app/views/spree/admin/prices/index.html.erb
spree_backend-4.8.1 app/views/spree/admin/prices/index.html.erb
spree_backend-4.7.2 app/views/spree/admin/prices/index.html.erb
spree_backend-4.7.1 app/views/spree/admin/prices/index.html.erb
spree_backend-4.7.0 app/views/spree/admin/prices/index.html.erb