Sha256: 33945e63d47ef787dfb658c5a565062fe4baeba781f2f6d9ba19681a0c464589

Contents?: true

Size: 1.68 KB

Versions: 19

Compression:

Stored size: 1.68 KB

Contents

<%= render 'admin/shared/product_sub_menu' %>

<h1><%= t('editing_product_group') %></h1>

<fieldset id="product_group_forms_container">

  <%= form_for(@product_group, :url => object_url, :html => { :id => 'product-group-form', :method => :put, 'data-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">
        <%= 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), 'data-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 for="product_scope_name"><%= t('add_scope') %></label>
      <%= select_tag("product_scope[name]", options) %>
      <input type="submit" value="<%= t('add') %>" />
    </p>
  <% end %>


</fieldset>


<fieldset id="preview_container">
  <%= render 'preview' %>
</fieldset>

Version data entries

19 entries across 19 versions & 6 rubygems

Version Path
apispree_core-0.0.0 app/views/admin/product_groups/edit.html.erb
My-Commerce_core-1.1.0 app/views/admin/product_groups/edit.html.erb
My-Commerce_core-1.0.0 app/views/admin/product_groups/edit.html.erb
MyCommerceapi-1.0.0 core/app/views/admin/product_groups/edit.html.erb
MyCommerce-0.0.3 core/app/views/admin/product_groups/edit.html.erb
rfcommerce_core-0.0.3 app/views/admin/product_groups/edit.html.erb
spree_core-0.60.6 app/views/admin/product_groups/edit.html.erb
spree_core-0.60.5 app/views/admin/product_groups/edit.html.erb
spree_core-0.50.4 app/views/admin/product_groups/edit.html.erb
spree_core-0.60.4 app/views/admin/product_groups/edit.html.erb
spree_core-0.50.3 app/views/admin/product_groups/edit.html.erb
spree_core-0.60.3 app/views/admin/product_groups/edit.html.erb
spree_core-0.60.2 app/views/admin/product_groups/edit.html.erb
spree_core-0.60.1 app/views/admin/product_groups/edit.html.erb
spree_core-0.60.0 app/views/admin/product_groups/edit.html.erb
spree_core-0.60.0.RC1 app/views/admin/product_groups/edit.html.erb
spree_core-0.50.2 app/views/admin/product_groups/edit.html.erb
spree_core-0.50.1 app/views/admin/product_groups/edit.html.erb
spree_core-0.50.0 app/views/admin/product_groups/edit.html.erb