Sha256: 988e28f0b1dc243bd004513372eb08b9e8699141c8125624e484ca7d90d2b8c8
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
= effective_form_with(model: [:admin, page_section], engine: true) do |f| - if f.object.new_record? = f.text_field :name, hint: 'The name of this region must be unique' - else = f.static_field :name - if f.object.hint.present? .mb-4= f.object.hint.html_safe = f.text_field :title - if defined?(EffectiveArticleEditor) = f.article_editor :rich_text_body, label: 'Body', hint: 'The main content' - else = f.rich_text_area :rich_text_body, label: 'Body', hint: 'The main content' .row .col= f.text_field :link_label .col= f.url_field :link_url = f.file_field :file, label: 'Attachment' = f.text_field :caption = effective_submit(f)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
effective_pages-3.3.2 | app/views/admin/page_sections/_form_page_section.html.haml |
effective_pages-3.3.1 | app/views/admin/page_sections/_form_page_section.html.haml |