Sha256: 2501d892d2cfdb383b7261e1694985e941c0a49e5d8208d43a659f8e0d0894cd
Contents?: true
Size: 898 Bytes
Versions: 1
Compression:
Stored size: 898 Bytes
Contents
module Admin module Viewable module Form extend ActiveSupport::Concern included do rails_admin do navigation_label I18n.t('cms.form.navigation') label I18n.t('cms.form.one') label_plural I18n.t('cms.form.other') field :structure do pretty_value do h, name = bindings[:view], value.name path = "#{h.dashboard_path}form~row?model_name=form~row&scope#{name}" h.link_to name, path end inline_add false end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_admin_cms-0.0.2 | app/models/admin/viewable/form.rb |