Sha256: 19cccec6c4eae72f93f86fc241cf40ee187e9b729bf7745252fe4af2cd3aedcd

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

<% if products.any? %>
  <% form_tag admin_product_groups_path do %>
    <%= hidden_field_tag "product_group[product_scopes_attributes][][name]", 'with_ids' %>
    <%= hidden_field_tag "product_group[product_scopes_attributes][][arguments][]", products.map(&:id).join(',') %>
    <fieldset data-hook="create_group">
      <legend><%= t('create_product_group_from_products') %></legend>
      <label><%= t('name') %></label>
      <%= text_field_tag "product_group[name]",  'New group' %>
      <input type="submit" value="<%= t('create') %>">
    </fieldset>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_core-0.70.0.rc2 app/views/admin/shared/_group_from_products_form.html.erb
spree_core-0.70.RC1 app/views/admin/shared/_group_from_products_form.html.erb