<% @crm_customers.each do |crm_customer| %> <% end %>
<%= form_tag crm_customers_path, :method => :get do %>
<% end %>
Select Name Company Contact no Email
<%= crm_customer.name %> <%= crm_customer.company %> <%= crm_customer.contact_no %> <%= crm_customer.email %> <%= link_to 'Destroy', crm_customer_path(crm_customer), method: :delete, data: { confirm: 'Are you sure?' } %>

<%= 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" %>
<%= 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 date_of_birth datepicker"%>
<%= f.input :membership_type, :class => "form-control col-md-6 membership_type" %>
<%= f.input :membership_authentication_code, :class => "form-control col-md-6 membership_authentication_code" %>
<%= f.button :submit, "Submit",:class => 'btn btn-primary ', :id => 'submit_customer' %> <%= f.button :submit, "Update",:class => 'btn btn-primary ', :disabled =>'', :id => 'update_customer' %>
<%end%>