Sha256: 8192f4ece29eed8b6a73f2f0df7c277ef4bcd837bb7267193611e9d5ef74e044

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

<%
  output = {
    :sEcho => params[:sEcho],
    :iTotalRecords => @attributes.total_entries || 0,
    :iTotalDisplayRecords => @attributes.size,
    :aaData => @attributes.map do |attribute|
    [
      content_tag(:div, content_tag(:div, '', :class=>'handler') + content_tag(:div, '', :class=> "small-icons #{attribute.class.to_s.underscore}"), :id => polymorphic_html_id(attribute), :class => 'handler_container'),
      content_tag(:div, link_to(attribute.name, [forgeos_commerce, :edit, :admin, attribute]), :class => 'product-name'),
      attribute.access_method,
      link_to('', [forgeos_commerce, :duplicate, :admin, attribute], :class => 'small-icons duplicate-link') +
      link_to('', [forgeos_commerce, :edit, :admin, attribute], :class => 'small-icons edit-link') +
      link_to('', [forgeos_commerce, :admin, attribute],
        :remote => true,
        :method => :delete,
        :confirm => I18n.t('attribute.destroy.confirm').capitalize,
        :class => 'small-icons destroy-link',
        :id => polymorphic_html_id(attribute, 'destroy')
      )
    ]
    end
  }
-%>
<%= raw output.to_json -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_commerce-1.9.1.rc1 app/views/admin/attributes/index.json.erb
forgeos_commerce-1.9.0 app/views/admin/attributes/index.json.erb