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