Sha256: 0e2c29e29fc4c5f57c9806f56cc521a7f759b5d3b04106e00de61be7028e2548

Contents?: true

Size: 609 Bytes

Versions: 9

Compression:

Stored size: 609 Bytes

Contents

module Admin
  module Viewable
    module Page
      extend ActiveSupport::Concern

      included do
        rails_admin do
          navigation_label I18n.t('cms.page.navigation')
          label I18n.t('cms.page.one')
          label_plural I18n.t('cms.page.other')

          field :url, :string do
            pretty_value do
              bindings[:view].link_to value, value, target: '_blank'
            end
          end
          field :title
          fields :meta_keywords, :meta_description

          list do
            scopes [:localized]
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_admin_cms-0.1.1 app/models/admin/viewable/page.rb
rails_admin_cms-0.0.9 app/models/admin/viewable/page.rb
rails_admin_cms-0.0.7 app/models/admin/viewable/page.rb
rails_admin_cms-0.0.6 app/models/admin/viewable/page.rb
rails_admin_cms-0.0.5 app/models/admin/viewable/page.rb
rails_admin_cms-0.0.4 app/models/admin/viewable/page.rb
rails_admin_cms-0.0.3 app/models/admin/viewable/page.rb
rails_admin_cms-0.0.2 app/models/admin/viewable/page.rb
rails_admin_cms-0.0.1 app/models/admin/viewable/page.rb