Sha256: 55b0d79d695b2d5ffb542e99cc7e596a556d1e2130b758ae0043c6c18dfca51d
Contents?: true
Size: 921 Bytes
Versions: 7
Compression:
Stored size: 921 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 }.to_query }" 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
7 entries across 7 versions & 1 rubygems