Sha256: 42dbba0de5401ac6e8b713981510ddfebf6acc7d4ce2a59cb2b83f5fea0c2929
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 KB
Contents
<%= render 'spree/admin/shared/product_tabs', current: Spree.t(:volume_pricing) %> <%= render 'spree/shared/error_messages', target: @variant %> <% content_for :page_actions do %> <span id="new_add_volume_price" data-hook> <%= button_link_to Spree.t(:add_volume_price), 'javascript:;', { icon: 'add', :'data-target' => 'tbody#volume_prices', class: 'btn-success spree_add_fields', id: 'add_volume_price'} %> </span> <% end %> <%= form_for(@variant, url: admin_product_variant_path(@product, @variant), html: { method: :put }) do |f| %> <h3><%= Spree.t(:volume_prices) %></h3> <table class="table"> <thead> <tr> <th><%= Spree.t(:name) %></th> <th><%= Spree.t(:discount_type) %></th> <th><%= Spree.t(:range) %></th> <th><%= Spree.t(:amount) %></th> <th><%= Spree.t(:position) %></th> <th><%= Spree.t(:role) %></th> <th class="actions"></th> </tr> </thead> <tbody id="volume_prices"> <%= f.fields_for :volume_prices do |vp_form| %> <%= render partial: 'spree/admin/volume_prices/volume_price_fields', locals: { f: vp_form } %> <% end %> </tbody> <tbody id="volume_price_models"> <%= f.field_container :volume_price_model, class: ['form-group'] do %> <%= f.label :volume_price_model_id, Spree.t(:volume_price_model) %> <%= f.collection_select(:volume_price_model_ids, Spree::VolumePriceModel.all, :id, :name, { include_blank: Spree.t('match_choices.none') }, { class: 'select2', disabled: (cannot? :edit, Spree::VolumePriceModel) }) %> <%= f.error_message_on :volume_price_model %> <% end %> </tbody> </table> <%= render 'spree/admin/shared/edit_resource_links' %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_volume_pricing-0.2.1 | app/views/spree/admin/variants/volume_prices.html.erb |
solidus_volume_pricing-0.1.1 | app/views/spree/admin/variants/volume_prices.html.erb |