Sha256: 27ae6b8f8074bd20aa7ea62b4a9ce746f2af6371e340fad848c7507ce07ef274
Contents?: true
Size: 912 Bytes
Versions: 2
Compression:
Stored size: 912 Bytes
Contents
<% output = { :sEcho => params[:sEcho], :iTotalRecords => @brands.total_entries || 0, :iTotalDisplayRecords => @brands.size, :aaData => @brands.collect do |brand| [ content_tag(:div, content_tag(:div, '', :class=>'handler') + content_tag(:div, '', :class => 'small-icons brands'), :id => polymorphic_html_id(brand), :class => 'handler_container'), content_tag(:div, link_to(brand.name, [forgeos_commerce, :edit, :admin, brand]), :class => 'brand-name'), link_to('', [forgeos_commerce, :edit, :admin, brand], :class => 'small-icons edit-link') + link_to('', [forgeos_commerce, :admin, brand], :remote => true, :method => :delete, :confirm => I18n.t('brand.destroy.confirm').capitalize, :class => 'small-icons destroy-link', :id => polymorphic_html_id(brand, '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/brands/index.json.erb |
forgeos_commerce-1.9.0 | app/views/admin/brands/index.json.erb |