<% if @crm_customers.count > 0 %> <% @crm_customers.each do |crm_customer| %> <% end %> <%else%> <% end %>
<% path ="/origami/#{@sale_id}/customers" %> <%= form_tag path, :method => :get do %>
<% end %>
Select Name Company Contact no Email
<%= 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 :name, :class => "form-control col-md-6 name" %>
<%= f.input :company, :class => "form-control col-md-6 company" %>
<%= f.input :contact_no, :class => "form-control col-md-6 contact_no" %>
<%= f.input :email, :class => "form-control col-md-6 email" %>
<%= f.text_field :date_of_birth,:class=>"form-control datepicker"%>
<%= f.button :submit, "Submit",:class => 'btn btn-primary ', :id => 'submit_customer' %>
<%end%>

Back