Sha256: f4b18688ae0adbb382203e3d74333546243ffc06dd858b35d8715cc585092bdb

Contents?: true

Size: 1.3 KB

Versions: 64

Compression:

Stored size: 1.3 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|
    .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
    %hr
    .field
      %label Kind
      = f.select :kind, options_for_select( ::Office::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
      = f.select :email_action, options_for_select( @email_actions_list, selected: email_filter.email_action_id ), {}, 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

64 entries across 64 versions & 1 rubygems

Version Path
ish_manager-0.1.8.505 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.504 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.503 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.500 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.499 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.498 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.497 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.496 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.495 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.494 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.493 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.492 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.491 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.490 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.489 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.488 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.487 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.486 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.485 app/views/ish_manager/email_filters/_form.haml
ish_manager-0.1.8.484 app/views/ish_manager/email_filters/_form.haml