Sha256: 45d101c601f2aa3c5f96bc6d6b928396ad4ceb931c8b9546868668c881263955

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

<tr id="<%= dom_id product_scope %>" data-hook="product_scope">
  <td data-hook="description">
    <%= label_tag nil, t(:name, :scope => [:product_scopes, :scopes, product_scope.name]) %>
    <% if description = t(:description, :scope => [:product_scopes, :scopes, product_scope.name], :default => "") and description.present? %>
      <br /><%= description %>
    <% end %>
  </td>
  <td data-hook="arguments">
    <% if arguments = Scopes::Product.arguments_for_scope_name(product_scope.name.strip) %>
      <table><tr>
      <% arguments.each_with_index do |argument, i| %>
        <td>
          <%= label_tag nil, t(argument, :scope => [:product_scopes, :scopes, product_scope.name, :args]) %><br />
          <%= hidden_field_tag 'product_group[product_scopes_attributes][][id]', product_scope.id %>
          <%= product_scope_field product_scope, i %>
        </td>
      <% end %>
      </tr></table>
    <% end %>
  </td>
  <td class="actions" data-hook="actions">
    <%= link_to_with_icon 'cross', '', admin_product_group_product_scope_path(@product_group, product_scope), :remote => true, :method => 'delete' %>
  </td>
</tr>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_core-0.70.1 app/views/admin/product_groups/_product_scope.html.erb
spree_core-0.70.0 app/views/admin/product_groups/_product_scope.html.erb