Sha256: ddb7fffdafce22500ba846f8a5cc30633d8ae4071e9951be70ebbf89f758030e
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
- url = invoice.persisted? ? invoice_path( invoice.id ) : invoices_path - invoice = @new_invoice .invoices-new.max-width .row .col.s12.col.m6.col-md-offset-3 %h5 New Stripe Invoice for `#{link_to @leadset&.name, leadset_path(@leadset)}`: = 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ish_manager-0.1.8.460 | app/views/ish_manager/invoices/new_stripe.haml |
ish_manager-0.1.8.459 | app/views/ish_manager/invoices/new_stripe.haml |