<% path ="/origami/#{@sale_id}/customers" %> <%= form_tag path, :id => "filter_form", :method => :get do %>
<% end %>
<% if @crm_customers.count > 0 %> <% @i = 0 %> <% @crm_customers.each do |crm_customer| %> <% end %> <%else%> <% end %>
<%= t("views.right_panel.detail.sr_no") %> <%= t("views.right_panel.detail.name") %> <%= t("views.right_panel.detail.card_no") %> <%= t("views.right_panel.detail.contact_no") %> <%= t("views.right_panel.detail.email") %>
<% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %> <%= @i += 1 %> <%else%> - <% end %> <%= 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", :required => true %> <% flash.each do |name, msg| %> <% str="[\"#{msg['name']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> <%= str %> <% end -%>

<%= f.input :nrc_no, :label => "NRC No",:class => "form-control nrc_no" %>
<%= f.input :company, :class => "form-control col-md-6 company"%> <% 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.input :tax_profiles, :collection => @taxes, :input_html => { :multiple => true }, :class => "form-control col-md-6 tax_profiles" %>
"> <%= 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.submit t("views.btn.submit"),:class => 'btn btn-primary btn-lg waves-effect', :id => 'submit_customer' %>
<%end%>

Card Tap