Sha256: cb7a1e58346d7bd90d3fc1c270dd008428d061898271d80e4487304c611bb5df

Contents?: true

Size: 712 Bytes

Versions: 38

Compression:

Stored size: 712 Bytes

Contents

= effective_form_with(model: [:admin, event_notification], engine: true) do |f|
  - if inline_datatable?
    = f.hidden_field :event_id
  - else
    = f.select :event_id, Effective::Event.sorted.all

  = f.select :category, Effective::EventNotification::CATEGORIES,
    label: 'Send an email notification'

  - # Render email templates
  - Effective::EventNotification::CATEGORIES.each do |category|
    - template = 'event_' + category.parameterize.underscore

    = f.show_if :category, category do
      .my-3= render "/admin/event_notifications/form_#{template}", f: f
      = email_notification_fields(f, template, variables: Effective::EventNotification::EMAIL_TEMPLATE_VARIABLES)

  = effective_submit(f)

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
effective_events-2.29.2 app/views/admin/event_notifications/_form.html.haml
effective_events-2.29.1 app/views/admin/event_notifications/_form.html.haml
effective_events-2.29.0 app/views/admin/event_notifications/_form.html.haml
effective_events-2.28.3 app/views/admin/event_notifications/_form.html.haml
effective_events-2.28.2 app/views/admin/event_notifications/_form.html.haml
effective_events-2.28.1 app/views/admin/event_notifications/_form.html.haml
effective_events-2.28.0 app/views/admin/event_notifications/_form.html.haml
effective_events-2.27.0 app/views/admin/event_notifications/_form.html.haml
effective_events-2.26.0 app/views/admin/event_notifications/_form.html.haml
effective_events-2.25.1 app/views/admin/event_notifications/_form.html.haml
effective_events-2.25.0 app/views/admin/event_notifications/_form.html.haml
effective_events-0.24.0 app/views/admin/event_notifications/_form.html.haml
effective_events-0.23.1 app/views/admin/event_notifications/_form.html.haml
effective_events-0.23.0 app/views/admin/event_notifications/_form.html.haml
effective_events-0.22.2 app/views/admin/event_notifications/_form.html.haml
effective_events-0.22.1 app/views/admin/event_notifications/_form.html.haml
effective_events-0.22.0 app/views/admin/event_notifications/_form.html.haml
effective_events-0.21.3 app/views/admin/event_notifications/_form.html.haml
effective_events-0.21.2 app/views/admin/event_notifications/_form.html.haml
effective_events-0.21.1 app/views/admin/event_notifications/_form.html.haml