Sha256: 99c1f074e13ad934e6bf333984abc25a4ff9a73dd10ba451e24ebb21514211c4
Contents?: true
Size: 924 Bytes
Versions: 3
Compression:
Stored size: 924 Bytes
Contents
ActiveAdmin.register C80Brands::Bbrand, as: 'Bbrand' do config.per_page = 100 menu :label => 'Бренды' permit_params :title, :icon, :short, :full batch_action :destroy, false config.sort_order = 'id_asc' before_filter :skip_sidebar!, :only => :index index do selectable_column column :title # column :short column :icon do |bbrand| if bbrand.icon.present? link_to image_tag(bbrand.icon.thumb_lg), bbrand.icon.url, target: '_blank' end end actions end form(:html => {:multipart => true}) do |f| f.inputs 'Свойства' do f.input :title f.input :icon, :as => :file, :hint => image_tag(f.object.icon.thumb_md) # f.input :short # f.input :full, :as => :ckeditor, input_html: {:ckeditor => {:height => 410}} end f.actions end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
c80_brands-0.1.0.2 | app/admin/c80_brands/bbrands.rb |
c80_brands-0.1.0.1 | app/admin/c80_brands/bbrands.rb |
c80_brands-0.1.0 | app/admin/c80_brands/bbrands.rb |