Sha256: 0fd872b1d0bf846102fe1bbb44803e1630a20e0c99d659c5a115c2682c7d38bb
Contents?: true
Size: 1.82 KB
Versions: 1
Compression:
Stored size: 1.82 KB
Contents
module Enjoy module Admin module News def self.config(fields = {}) Proc.new { # navigation_label I18n.t('enjoy.cms') list do scopes [:by_date, :enabled, nil] end field :enabled, :toggle field :time do sort_reverse true end field :name unless Enjoy.config.news_image_styles.nil? field :image, :jcrop do jcrop_options :image_jcrop_options end end group :content do active false field :excerpt, :enjoy_html # field :excerpt_html, :ck_editor # field :excerpt_clear, :toggle end group :URL do active false field :slugs, :enum do enum_method do :slugs end visible do bindings[:view].current_user.admin? end multiple do true end end field :text_slug end list do sort_by :time end edit do group :content do active false field :content, :enjoy_html # field :content_html, :ck_editor # field :content_clear, :toggle end Enjoy::RailsAdminGroupPatch::enjoy_cms_group(self, fields) group :seo do active false field :seo do active true end end group :sitemap_data do active false field :sitemap_data do active true end end end if block_given? yield self end } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enjoy_cms-0.3.3 | lib/enjoy/admin/news.rb |