Sha256: f569a49482cad3e305e881569e99f138ce0d799e2a97117fb524cf9c94ac7f06

Contents?: true

Size: 1.98 KB

Versions: 20

Compression:

Stored size: 1.98 KB

Contents

.leads-show.padded

  .header
    %h2.title
      Lead ##{@lead.id}
      = link_to '[~]', edit_lead_path(@lead)

  .row
    .col-md-6
      %ul
        %li Name: #{@lead.name}
        %li Email: #{@lead.email}
        %li
          Leadset: #{ link_to @lead.leadset.company_url, leadset_path(@lead.leadset) }
        -# %li Rating: #{@lead.rating}
        - if @lead.phone
          %li Phone: #{@lead.phone}
        - if @lead.address
          %li Address: #{@lead.address}
        -# - if @lead.shoe_size
        -#   %li Shoe size: #{@lead.shoe_size}
        -# - if @lead.comment
        -#   %li Comment: #{raw @lead.comment}
        - if @lead.photo
          %li
            = image_tag Photo.find( @lead.photo_id ).photo.url(:small)

    .col-md-6
      %h5 Tags
      %ul
        - @lead.tags.each do |tag|
          %li
            = link_to tag.name, tag_path(tag)

  .row
    .col-md-6.ctxs
      %h5
        Email Contexts (#{@lead.ctxs.length})
        = link_to '[+]', '#'
      %ul
        - @lead.ctxs.each do |ctx|
          %li
            = pp_date( ctx.sent_at ) || 'not sent'
            = link_to ctx.subject.presence||"No Subj?!", email_context_path(ctx)

    .col-md-6.schs
      %h5
        Scheduled actions (#{@lead.schs.length})
        -# = link_to '[+]', '#'
        \[+]
      %ul
        - @lead.schs.each do |sch|
          %li
            = link_to sch.email_action.slug, edit_scheduled_email_action_path(sch)
            = sch.state
            (#{link_to 'proto-action', edit_email_action_path(sch.email_action)})
            = sch.perform_at

      %hr
      %h5
        Invoices (?)
        = link_to '[+stripe]', new_invoice_stripe_path({ leadset: @lead.leadset })
        = link_to '[+pdf]', new_invoice_pdf_path({ leadset: @lead.leadset })
      %ul
        %li None?



  .row
    .col-md-12.msgs
      %h5 Email Conversations (#{@lead.convs.length})
      %ul
        - @lead.convs.each do |conv|
          %li
            = link_to conv.subject, wco_email.conversation_path( conv )

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
wco_models-3.1.0.97 app/views/wco/leads/show.haml
wco_models-3.1.0.96 app/views/wco/leads/show.haml
wco_models-3.1.0.95 app/views/wco/leads/show.haml
wco_models-3.1.0.94 app/views/wco/leads/show.haml
wco_models-3.1.0.93 app/views/wco/leads/show.haml
wco_models-3.1.0.92 app/views/wco/leads/show.haml
wco_models-3.1.0.91 app/views/wco/leads/show.haml
wco_models-3.1.0.90 app/views/wco/leads/show.haml
wco_models-3.1.0.89 app/views/wco/leads/show.haml
wco_models-3.1.0.88 app/views/wco/leads/show.haml
wco_models-3.1.0.87 app/views/wco/leads/show.haml
wco_models-3.1.0.86 app/views/wco/leads/show.haml
wco_models-3.1.0.85 app/views/wco/leads/show.haml
wco_models-3.1.0.83 app/views/wco/leads/show.haml
wco_models-3.1.0.82 app/views/wco/leads/show.haml
wco_models-3.1.0.81 app/views/wco/leads/show.haml
wco_models-3.1.0.80 app/views/wco/leads/show.haml
wco_models-3.1.0.79 app/views/wco/leads/show.haml
wco_models-3.1.0.78 app/views/wco/leads/show.haml
wco_models-3.1.0.77 app/views/wco/leads/show.haml