%= render 'spree/admin/shared/product_tabs', :current => 'Product Properties' %> <%= render 'spree/shared/error_messages', :target => @product %> <% content_for :page_actions do %> <% if can?(:create, Spree::ProductProperty) %>
<% end %> <% end %> <%= form_for @product, :url => admin_product_url(@product), :method => :put do |f| %> <% end %> <%= form_tag admin_product_product_properties_path, method: :get, id: 'variant_option_value_selections' do %> <% end %> <%= form_for @product, url: admin_product_url(@product), method: :put do |f| %> <%= f.fields_for :variant_property_rules, @variant_property_rule do |rule_form| %> <%= rule_form.hidden_field 'id', value: @variant_property_rule.id %> <%= rule_form.hidden_field 'option_value_ids', value: @option_value_ids.join(',') %> <% if @option_value_ids.present? %><%= Spree.t(:property) %> | <%= Spree.t(:value) %> |
---|