Sha256: de08f63f852c69c51c072e0268930deb3b06faa55d1897672d1abffeedf075d6
Contents?: true
Size: 1.65 KB
Versions: 6
Compression:
Stored size: 1.65 KB
Contents
<%= render 'admin/shared/product_sub_menu' %> <h1><%= t(:editing_product_group) %></h1> <fieldset id="product_group_forms_container" data-hook> <%= form_for [:admin, @product_group], :html => { :id => 'product-group-form', :method => :put, :remote => true } do |f| %> <%= f.field_container :name do %> <%= f.label :name, t(:name) %><br /> <%= f.text_field :name %> <%= f.error_message_on :name %> <% end %> <%= f.field_container :order_scope do %> <%= f.label :order_scope, t(:sort_ordering) %><br /> <%= f.select(:order_scope, ::Scopes::Product::ORDERING.collect{|p| [ t(:name, :scope =>[:product_scopes, :scopes, p]), p.to_s ] }) %> <% end %> <table id="product_scopes" data-hook> <%= render :partial => 'product_scope', :collection => @product_group.product_scopes.reject {|s| s.is_ordering? } %> </table> <%= button t(:update) %> <% end %> <%= form_tag admin_product_group_product_scopes_path(@product_group), :remote => true, :id => 'new_product_group_form' do %> <% options = grouped_options_for_select( ::Scopes::Product::SCOPES.map do |group_name, scopes| [ t(:name, :scope => [:product_scopes, :groups, group_name]), scopes.keys.map do |scope_name| [ t(:name, :scope => [:product_scopes, :scopes, scope_name]), scope_name] end ] end ) %> <p> <%= label_tag :product_scope_name, t(:add_scope) %> <%= select_tag 'product_scope[name]', options %> <%= submit_tag t(:add) %> </p> <% end %> </fieldset> <fieldset id="preview_container" data-hook> <%= render 'preview' %> </fieldset>
Version data entries
6 entries across 6 versions & 1 rubygems