Sha256: 912b7b99d8d44501a6e481766bee19aab2e8c9ff9cecef6dea696f2bb0145184

Contents?: true

Size: 1.66 KB

Versions: 8

Compression:

Stored size: 1.66 KB

Contents

.leadsets-show.container
  .header
    %h2.title
      Leadset `#{@leadset.company_url}`
      = link_to '[~]', edit_leadset_path( @leadset )

  %ul
    %li <b>Email:</b> #{@leadset.email}
    %li <b>company_url</b>: #{@leadset.company_url}
    %li <b>customer_id</b>: #{@leadset.customer_id}


  %hr

  .row
    .col-md-6
      %h5 Prices
      %ul
        - @leadset.appliance_tmpl_prices.each do |price|
          %li
            .a= price.product
            = price

    .col-md-6
      %h5.collapse-expand#subscriptionsList
        Subscriptions (#{@subscriptions.length})
        = link_to '[+wco]', new_subscription_path({ customer_id: @leadset.customer_id })
      %table.bordered
        %thead
          %tr
            %th Name
            %th Price
        - @subscriptions.each do |i|
          %tr
            %td= i.product.name
            %td= i.price
  %hr
  .row
    .col-md-6
      %h5.collapse-expand#invoicesList
        Invoices  (#{@leadset.invoices.length})
        = link_to '[+stripe]', new_invoice_stripe_path({ leadset_id: @leadset.id })
        = link_to '[+pdf]', new_invoice_pdf_path({ leadset_id: @leadset.id })

      = render '/wco/invoices/index_list', invoices: @invoices

      %p Next invoice number: #{@leadset.next_invoice_number}

      = form_tag create_monthly_invoice_for_leadset_path({ leadset_id: @leadset.id }) do
        %label Create invoice for month
        = text_field_tag 'month_on', nil, placeholder: 'YYYY-MM-DD'
        %label (replace ?)
        = check_box_tag 'replace'
        = submit_tag 'Go >', data: { confirm: 'Are you sure?' }
  %hr

  .row
    %h5.collapse-expand#leads Leads
    = render '/wco/leads/index', leads: @leads

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wco_models-3.1.0.114 app/views/wco/leadsets/show.haml
wco_models-3.1.0.113 app/views/wco/leadsets/show.haml
wco_models-3.1.0.112 app/views/wco/leadsets/show.haml
wco_models-3.1.0.111 app/views/wco/leadsets/show.haml
wco_models-3.1.0.110 app/views/wco/leadsets/show.haml
wco_models-3.1.0.109 app/views/wco/leadsets/show.haml
wco_models-3.1.0.108 app/views/wco/leadsets/show.haml
wco_models-3.1.0.107 app/views/wco/leadsets/show.haml