Sha256: 03832c51f791a8a8a921663cc4b1056e1398c45e70d50043f69123b9da6744aa

Contents?: true

Size: 935 Bytes

Versions: 15

Compression:

Stored size: 935 Bytes

Contents

%p Each of the following content areas will be displayed on the ballot wizard.

= effective_form_with(model: [:admin, poll], engine: true) do |f|
  = card("All Steps") do
    - if defined?(EffectiveArticleEditor)
      = f.article_editor "rich_text_all_steps_content", label: false, hint: "displayed on all steps"
    - else
      = f.rich_text_area "rich_text_all_steps_content", label: false, hint: "displayed on all steps"

  %hr

  - enabled = Effective::Ballot.all_wizard_steps

  - Effective::Ballot::WIZARD_STEPS.each do |step, title|
    - next unless enabled.include?(step)

    = card("#{title}") do
      - if defined?(EffectiveArticleEditor)
        = f.article_editor "rich_text_#{step}_content", label: false, hint: "displayed on the ballot #{step} wizard step only"
      - else
        = f.rich_text_area "rich_text_#{step}_content", label: false, hint: "displayed on the ballot #{step} wizard step only"

  = f.submit

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
effective_polls-0.7.2 app/views/admin/polls/_form_content.html.haml
effective_polls-0.7.1 app/views/admin/polls/_form_content.html.haml
effective_polls-0.7.0 app/views/admin/polls/_form_content.html.haml
effective_polls-0.6.2 app/views/admin/polls/_form_content.html.haml
effective_polls-0.6.1 app/views/admin/polls/_form_content.html.haml
effective_polls-0.6.0 app/views/admin/polls/_form_content.html.haml
effective_polls-0.5.6 app/views/admin/polls/_form_content.html.haml
effective_polls-0.5.5 app/views/admin/polls/_form_content.html.haml
effective_polls-0.5.4 app/views/admin/polls/_form_content.html.haml
effective_polls-0.5.3 app/views/admin/polls/_form_content.html.haml
effective_polls-0.5.2 app/views/admin/polls/_form_content.html.haml
effective_polls-0.5.1 app/views/admin/polls/_form_content.html.haml
effective_polls-0.5.0 app/views/admin/polls/_form_content.html.haml
effective_polls-0.4.1 app/views/admin/polls/_form_content.html.haml
effective_polls-0.4.0 app/views/admin/polls/_form_content.html.haml