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