Sha256: 63c95ca24d44a8bdf3f4cf4c4cdb239ba6e67563485e7b7ec10b050140e5005b
Contents?: true
Size: 1.01 KB
Versions: 10
Compression:
Stored size: 1.01 KB
Contents
ActiveAdmin.register Ecm::Cms::NavigationItem do # Add member actions for positioning. sortable_tree_member_actions # Menu menu :parent => Proc.new { I18n.t('ecm.cms.active_admin.menu') }.call form do |f| f.inputs do f.input :ecm_cms_navigation f.input :parent f.input :name end f.inputs do f.input :ecm_cms_page f.input :url end f.inputs do f.input :key f.input :options end f.actions end index :as => :nested_set do selectable_column sortable_tree_columns column :ecm_cms_navigation column :name column :url column :ecm_cms_page do |ni| if ni.ecm_cms_page.blank? link_to(I18n.t('active_admin.create_model', :model => Ecm::Cms::Page.model_name.human), new_admin_ecm_cms_page_path({:ecm_cms_page => ni.params_for_new_page})) else link_to(ni.ecm_cms_page.title, [:admin, ni.ecm_cms_page]) end end column :created_at column :updated_at default_actions end end
Version data entries
10 entries across 10 versions & 1 rubygems