Sha256: b57a96e1b3374b4e73652576acb84b029319d287b9f4146c6365043071ccd244

Contents?: true

Size: 1.71 KB

Versions: 10

Compression:

Stored size: 1.71 KB

Contents

.leadsets-show.padded
  .header
    %h2.title
      Leadset `#{@leadset.name}`
      = 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}


  %h5.collapse-expand#leads Leads
  = render 'ish_manager/leads/index', leads: @employees
  %hr

  -# .row
  -#   .col-md-6
  -#     = render 'ish_manager/serverhosts/index', serverhosts: @leadset.serverhosts
  -#   .col-md-6
  -#     = render 'ish_manager/appliances/index', appliances: @leadset.appliances

  .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 'ish_manager/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

    .col-md-6
      %h5.collapse-expand#subscriptionsList
        Subscriptions (#{@subscriptions.length})
        = link_to '[+wco]', new_wco_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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ish_manager-0.1.8.513 app/views/ish_manager/leadsets/show.haml
ish_manager-0.1.8.512 app/views/ish_manager/leadsets/show.haml
ish_manager-0.1.8.511 app/views/ish_manager/leadsets/show.haml
ish_manager-0.1.8.510 app/views/ish_manager/leadsets/show.haml
ish_manager-0.1.8.509 app/views/ish_manager/leadsets/show.haml
ish_manager-0.1.8.508 app/views/ish_manager/leadsets/show.haml
ish_manager-0.1.8.507 app/views/ish_manager/leadsets/show.haml
ish_manager-0.1.8.506 app/views/ish_manager/leadsets/show.haml
ish_manager-0.1.8.505 app/views/ish_manager/leadsets/show.haml
ish_manager-0.1.8.504 app/views/ish_manager/leadsets/show.haml