Sha256: 095f7f03c8f42440989e29709cddc130e073e48cb8e34a5dca0927cf131c7d05

Contents?: true

Size: 1.78 KB

Versions: 15

Compression:

Stored size: 1.78 KB

Contents

-##
-## 2024-04-13 Before email_filter_condition was introduced
-##

- url = email_filter.new_record? ? email_filters_path : email_filter_path( email_filter )
.email-filters--from
  = form_for email_filter, url: url, as: :email_filter do |f|
    .actions
      = f.submit

    .row.maxwidth
      .col-md-6
        .field
          %label From Regex
          = f.text_field :from_regex
        .field
          %label From Exact
          = f.text_field :from_exact
        .field
          %label Subject Regex
          = f.text_field :subject_regex
        .field
          %label Subject Exact
          = f.text_field :subject_exact
        -# .field
        -#   %label Body Regex
        -#   = f.text_field :body_regex
        .field
          %label Body Exact
          = f.text_field :body_exact
      .col-md-6

        .field
          %label Kind
          = f.select :kind, options_for_select( WcoEmail::EmailFilter::KINDS, selected: email_filter.kind )
        .field
          %label Template
          = f.select :email_template_id, options_for_select(@email_templates_list, selected: params[:email_template_id] || email_filter.email_template_id ), {}, { class: 'select2' }
        .field
          = f.label :email_action_template
          = f.select :email_action_template, options_for_select( @email_action_templates_list, selected: email_filter.email_action_template_id ), {}, class: 'select2'
        .field
          = f.label :tag
          = f.select :tag, options_for_select( @tags_list, selected: email_filter.tag_id ), {}, class: 'select2'

      .col-md-6
        .field
          %label skip to exact
          = f.text_field :skip_to_exact
        .field
          %label skip from regex
          = f.text_field :skip_from_regex

      .col-md-6
        .actions
          = f.submit

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wco_email-0.1.1.89 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.88 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.86 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.85 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.84 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.83 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.82 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.81 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.80 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.79 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.78 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.77 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.76 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.75 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.72 app/views/wco_email/email_filters/_form.haml