Sha256: fea0c06a94cbb4274fad6d52940ba2cd06776d7585ee27717268bb8dc5bc1e10

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

.email-action-templates-index.padded

  .header
    %h2.title
      Email Action Templates (#{@tmpls.length})
      = link_to '[+]', new_email_action_template_path

  %table.bordered
    %tr
      %th= check_box_tag 'hmm'
      %th  
      %th Slug
      %th From
      %th Tmpl
      %th next actions
    - @tmpls.each_with_index do |tmpl, idx|
      %tr
        %td
          .gray= idx+1
          = check_box_tag 'hmm'
        %td
          .flex-row
            = link_to '[~]', edit_email_action_template_path( tmpl )
            = button_to '[x]', email_action_template_path( tmpl ), data: { confirm: 'Are you sure?' }, method: :delete

        %td
          = tmpl.slug
        %td
          = tmpl.from_email
        %td.tmpl
          = render '/wco_email/email_templates/show_cell', tmpl: tmpl.email_template

        %td
          - if tmpl.ties.blank?
            No ties
          %ul
            - tmpl.ties.map do |tie|
              %li
                .a= tie.next_at_exe
                .a
                  - if tie.next_tmpl.slug == tmpl.slug
                    (same)
                  = tie.next_tmpl.slug

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wco_email-0.1.1.14 app/views/wco_email/email_action_templates/index.haml
wco_email-0.1.1.13 app/views/wco_email/email_action_templates/index.haml