Sha256: a97787764453917b82f63ba78dfcb13ed3c61090d41cc287f84f87b0a0787bb7
Contents?: true
Size: 1.25 KB
Versions: 5
Compression:
Stored size: 1.25 KB
Contents
- invoice = @new_invoice - url = invoice.persisted? ? invoice_path( invoice.id ) : create_invoice_stripe_path .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][][product_id]', options_for_select( @products_list ) .input-field %label quantity = number_field_tag 'invoice[items][][quantity]' -# .input-field -# %label number -# = f.number_field :number -# .input-field -# %label Description -# = f.text_area :description = f.submit 'Save'
Version data entries
5 entries across 5 versions & 1 rubygems