Sha256: 1dc5e073e8cc70be39caaa0b63cfda4e24146017c035ad0f329f3064301a646d

Contents?: true

Size: 1.3 KB

Versions: 10

Compression:

Stored size: 1.3 KB

Contents

.email-filters-index.padded
  .header
    %h2.title
      Email Filters (#{@email_filters.length})
      = link_to '[+]', new_email_filter_path


  .maxwidth
    %hr
    %h5.title.collapse-expand#newEmailFilter New Email Filter
    = render 'form', email_filter: @email_filter
  %hr

  = paginate @email_filters, param_name: WcoEmail::EmailFilter::PAGE_PARAM_NAME, views_prefix: 'wco'
  %table.bordered.data-table
    %thead
      %tr
        %th  
        %th  
        %th From Regex
        %th From Exact
        %th Subject Regex
        %th Subject Exact
        %th Body Exact
        %th Kind
        %th Respond with <br />Email Template
        %th Email Action <br />(template)
        %th Tag
    - @email_filters.each_with_index do |ef, idx|

      %tr
        %td
          .gray= idx+1
          = check_box_tag 'checked'
        %td
          = link_to '[~]', edit_email_filter_path(ef)
          .inline-block= button_to '[x]', email_filter_path(ef), method: :delete, data: { confirm: 'Are you sure?' }
        %td
          `#{ef.from_regex}`
        %td
          `#{ef.from_exact}`
        %td= ef.subject_regex
        %td= ef.subject_exact
        %td= ef.body_exact
        %td= ef.kind
        %td= ef.email_template&.slug
        %td= ef.email_action_template&.slug
        %td= ef.tag&.slug


Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wco_email-0.1.1.20 app/views/wco_email/email_filters/index.haml
wco_email-0.1.1.19 app/views/wco_email/email_filters/index.haml
wco_email-0.1.1.18 app/views/wco_email/email_filters/index.haml
wco_email-0.1.1.17 app/views/wco_email/email_filters/index.haml
wco_email-0.1.1.16 app/views/wco_email/email_filters/index.haml
wco_email-0.1.1.15 app/views/wco_email/email_filters/index.haml
wco_email-0.1.1.14 app/views/wco_email/email_filters/index.haml
wco_email-0.1.1.13 app/views/wco_email/email_filters/index.haml
wco_email-0.1.1.12 app/views/wco_email/email_filters/index.haml
wco_email-0.1.1.11 app/views/wco_email/email_filters/index.haml