Sha256: 950d14339afea5b93d722a4a9f74e24102fc3fd266375ac17dba84192375f678
Contents?: true
Size: 703 Bytes
Versions: 3
Compression:
Stored size: 703 Bytes
Contents
= effective_form_with(model: [:admin, poll_notification], engine: true) do |f| - if inline_datatable? = f.hidden_field :poll_id - else = f.select :poll_id, Effective::Poll.sorted.all = f.select :category, Effective::PollNotification::CATEGORIES, label: 'Send an email notification' - # Render email templates - Effective::PollNotification::CATEGORIES.each do |category| - template = 'poll_' + category.parameterize.underscore = f.show_if :category, category do .my-3= render "/admin/poll_notifications/form_#{template}", f: f = email_notification_fields(f, template, variables: Effective::PollNotification::EMAIL_TEMPLATE_VARIABLES) = effective_submit(f)
Version data entries
3 entries across 3 versions & 1 rubygems