<% if @crm_customers.count > 0 %> <% @i = 0 %> <% @crm_customers.each do |crm_customer| %> <% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %> <% end %> <% end %> <%else%> <% end %>
<% path ="/origami/#{@sale_id}/customers" %> <%= form_tag path, :method => :get do %>
<% end %>
Select Sr.no Name Company Contact no Email
<%= @i += 1 %> <%= crm_customer.name %> <%= crm_customer.company rescue '-' %> <%= crm_customer.contact_no %> <%= crm_customer.email %>

There are no record for your search


<%= paginate @crm_customers %>
<%= simple_form_for @crm_customer,:url => crm_customers_path, :method => :post do |f| %> <%= f.error_notification %> <%= f.hidden_field :id, :class => "form-control col-md-6 " %>
"> <%= f.input :card_no, :class => "form-control col-md-6 card_no"%> <% flash.each do |name, msg| %> <% str="[\"#{msg['name']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> <%= str %> <% end -%>

"> <%= f.input :name, :class => "form-control col-md-6 name", :required => true %> <% flash.each do |name, msg| %> <% str="[\"#{msg['name']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> <%= str %> <% end -%>

<%= f.input :nrc_no, :class => "form-control nrc_no" %>
<%= f.input :company, :class => "form-control col-md-6 company",:required => true%> <% flash.each do |name, msg| %> <% str="[\"#{msg['company']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> <%= str %> <% end -%>
"> <%= f.input :contact_no, :class => "form-control col-md-6 contact_no" ,:required => true%> <% flash.each do |name, msg| %> <% str="[\"#{msg['contact_no']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> <%= str %> <% end -%>
"> <%= f.input :email, :class => "form-control col-md-6 email" ,:required => true%> <% flash.each do |name, msg| %> <% str="[\"#{msg['contact_no']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> <%= str %> <% end -%>
<%= f.input :address, :class => "form-control col-md-6 address" %>
<%= f.text_field :date_of_birth,:value=>"01-01-1990",:class=>"form-control datepicker"%>
<%= f.button :submit, "Submit",:class => 'btn btn-primary ', :id => 'submit_customer' %>
<%end%>

Back