Sha256: a1f1382221eacd04b512f3f5d78e70060b82f1543f7b995c6485bb0aff3cf920

Contents?: true

Size: 1.5 KB

Versions: 10

Compression:

Stored size: 1.5 KB

Contents

- 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|
    .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 ), {}, class: 'select2'
        -# .field
        -#   = f.label :wp_term_id
        -#   = f.select :wp_term_id, options_for_select( @email_tags_list, selected: email_filter.wp_term_id ), {}, class: 'select2'
        .actions
          = f.submit

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wco_email-0.1.1.10 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.9 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.8 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.7 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.6 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.5 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.4 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.3 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.2 app/views/wco_email/email_filters/_form.haml
wco_email-0.1.1.1 app/views/wco_email/email_filters/_form.haml