Sha256: 13ed94018f5b98c2b3144cfecd03626a12d9595837e2b08599453c9563cab59d
Contents?: true
Size: 1.34 KB
Versions: 12
Compression:
Stored size: 1.34 KB
Contents
ActiveAdmin.register Ecm::Cms::Partial do permit_params(:basename, :body, :ecm_cms_folder_id, :format, :handler, :layout, :locale, :pathname) if Rails.version >= '4.0.0' # Menu menu parent: proc { I18n.t('ecm.cms.active_admin.menu') }.call form do |f| f.inputs do f.input :body end f.inputs do f.input :pathname f.input :basename f.input :locale, as: :select, collection: I18n.available_locales.map(&:to_s) f.input :format, as: :select, collection: Mime::SET.symbols.map(&:to_s) f.input :handler, as: :select, collection: ActionView::Template::Handlers.extensions.map(&:to_s) end f.actions end index do selectable_column column :pathname column :filename column :created_at column :updated_at ActiveAdmin::VERSION[0] < '1' ? default_actions : actions end show do panel Ecm::Cms::Partial.human_attribute_name(:body) do pre { ecm_cms_partial.body } end end sidebar Ecm::Cms::Partial.human_attribute_name(:details), only: :show do attributes_table_for ecm_cms_partial do row :pathname row :filename row :created_at row :updated_at end end # sidebar end if Gem::Specification.find_all_by_name('activeadmin').any?
Version data entries
12 entries across 12 versions & 1 rubygems