Sha256: 9beefc16d5daff03de168ab2b4ba81e788d59f13ce8eef44fb1ca3b6afd50137

Contents?: true

Size: 841 Bytes

Versions: 128

Compression:

Stored size: 841 Bytes

Contents

- url = invoice.persisted? ? invoice_path( invoice.id ) : invoices_path

= form_for invoice, :as => :invoice, :url => url do |f|
  = hidden_field_tag 'invoice[leadset_id]', @leadset.id

  .input-field
    %label Email
    = @leadset.email
    -# - if @leadset.email
    -#   = f.text_field :email, value: @leadset.email
    -# - elsif @leadset.employees.length == 1
    -#   = f.text_field :email, value: @leadset.employees[0].email
    -# - else
    -#   = f.select :email, options_for_select([[nil,nil]] + @leadset.employees.map { |i| [ i.email, i.email ] } )

  .input-field
    %label item
    = select_tag 'invoice[items][]', options_for_select( @products_list )

  -# .input-field
  -#   %label number
  -#   = f.number_field :number

  -# .input-field
  -#   %label Description
  -#   = f.text_area :description

  = f.submit 'Save'

Version data entries

128 entries across 128 versions & 2 rubygems

Version Path
wco_models-3.1.0.109 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.108 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.107 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.106 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.105 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.104 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.103 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.102 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.101 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.100 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.99 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.98 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.97 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.96 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.95 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.94 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.93 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.92 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.91 app/views/wco/invoices/_form.haml-trash
wco_models-3.1.0.90 app/views/wco/invoices/_form.haml-trash