Sha256: bba7faffac7b3e4dc17ab49765dcb2b216e7bce2b195e7513c31e1ec989a8ea1

Contents?: true

Size: 1.66 KB

Versions: 3

Compression:

Stored size: 1.66 KB

Contents

.leads-index.padded
  .header
    %h2.title
      #{link_to 'Kept Leads', leads_path} (#{::Lead.kept.count}, #{::Lead.all.count})
      = link_to raw("<i class='fa fa-plus-square'></i>"), new_lead_path

  = paginate @leads, param_name: :leads_page
  = form_tag leads_bulkop_path do
    = label_tag 'Act on Selected:'
    = select_tag :op, options_for_select( [[nil,nil]] + Lead::OPS )
    = select_tag :email_campaign_id, options_for_select( @email_campaigns_list )
    = submit_tag 'Go'

    %table.bordered
      %thead
        %tr
          %th &nbsp;
          %th Name/Email
          %th.company Company
          %th Phone
          %th Tag
          %th created_at
          %th Ctx
          %th Sch

      %tbody
        - @leads.each do |lead|
          %tr
            %td= check_box_tag 'lead_ids[]', lead.id
            %td= link_to "#{lead.name} <#{lead.email}>", lead_path( lead )
            %td.company
              = lead.company.company_url
              - if lead.company.name.present?
                <br /><b>#{lead.company.name}</b>
            %td= lead.phone
            %td= lead.wp_tags.map(&:name).join(", ")
            %td= lead.created_at.to_s[0..10]
            %td.ctx
              = @email_contexts[lead.email] || '-'
            %td.sch
              = lead.scheduled_email_actions.length
              = link_to '[+]', new_scheduled_email_action_path( lead_id: lead.id )
              -# %ul
              -#   - lead.scheduled_email_actions.map do |sch_a|
              -#     %li
              -#       = link_to sch_a.email_action.slug, edit_scheduled_email_action_path( sch_a )
              -#       [x]
  .c
  = paginate @leads, param_name: :leads_page




Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ish_manager-0.1.8.422 app/views/ish_manager/leads/index.haml
ish_manager-0.1.8.421 app/views/ish_manager/leads/index.haml
ish_manager-0.1.8.420 app/views/ish_manager/leads/index.haml