Sha256: dbb754a149c6b4836f05ebda02a57e5a3ecce53cf49189e4e313fd9eca5b539e
Contents?: true
Size: 788 Bytes
Versions: 1
Compression:
Stored size: 788 Bytes
Contents
ActiveAdmin.register KnowledgeBase::Sectionables::Text do menu parent: I18n.t('activerecord.models.knowledge_base/section/kind.other') form do |f| f.inputs do f.input :heading f.input :lead f.input :body image_hint = f.object.new_record? ? nil : f.template.image_tag(f.object.image.medium) f.input :image, hint: image_hint f.input :remove_image, as: :boolean f.input :style end f.actions end index do column :id column :heading default_actions end show do |text| attributes_table do row :id row :image do image_tag text.image.medium end row :created_at row :updated_at end header h1 text.heading para strong text.lead para text.body end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knowledge_base-0.2.0 | lib/generators/knowledge_base/active_admin/templates/sectionables/text.rb |