<% @crm_customers.each do |crm_customer| %> <% end %>
Name Company Contact no Email
<%= crm_customer.name %> <%= crm_customer.company %> <%= crm_customer.contact_no %> <%= crm_customer.email %>
<%= simple_form_for crm_customers_path, :html => { :class => 'form-horizontal' } do |f| %>
<%= f.input :name, :class => "form-control col-md-6" %>
<%= f.input :company, :class => "form-control col-md-6" %>
<%= f.input :contact_no, :class => "form-control col-md-6" %>
<%= f.input :email, :class => "form-control col-md-6" %>
<%= f.text_field :date_of_birth,:class=>"form-control datepicker",:readonly =>true, :value => @date_of_birth%>
<%= f.select :membership_id, options_for_select(@membership.collect { |member| [member["id"].name.titleize, member["id"].id] }, 1), {}, { id: 'countries_select' } %>
<%= f.input :membership_type, :class => "form-control col-md-6" %>
<%= f.input :membership_authentication_code, :class => "form-control col-md-6" %>
<%= f.button :submit, "Submit", :class => 'btn btn-primary' , :id => 'submit_account' %>
<%end%>