<% if @crm_customers.count > 0 %> <% @crm_customers.each do |crm_customer| %> <% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %> <% end %> <% end %> <%else%> <% end %>
<%= form_tag crm_customers_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 %> <%= link_to 'Show', crm_customer_path(crm_customer) %>

There are no record for your search


<%= paginate @crm_customers %>
<%= simple_form_for @crm_customer,:url => crm_customers_path, :method => :post do |f| %> <%= f.hidden_field :id, :class => "form-control col-md-6 " %>
"> <%= f.input :name, :class => "form-control col-md-6 name" %> <% flash.each do |name, msg| %> <%= msg['name'] %> <% end -%>
<%= f.input :company, :class => "form-control col-md-6 company" %>
"> <%= f.input :contact_no, :class => "form-control col-md-6 contact_no" %> <% flash.each do |name, msg| %> <%= msg['contact_no'] %> <% end -%>
"> <%= f.input :email, :class => "form-control col-md-6 email" %> <% flash.each do |name, msg| %> <%= msg['email'] %> <% end -%>
<%= 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' %> <%= f.button :submit, "Update",:class => 'btn btn-primary ', :disabled =>'', :id => 'update_customer' %> <%= f.button :button, "Reset",:class => 'btn btn-danger ', :id => 'reset' %>
<%end%>

Back