diff --git a/app/views/crm/customers/index.html.erb b/app/views/crm/customers/index.html.erb index 7ccd8fb8..f97de091 100644 --- a/app/views/crm/customers/index.html.erb +++ b/app/views/crm/customers/index.html.erb @@ -44,7 +44,7 @@ <% if @crm_customers.count > 0 %> <% @crm_customers.each do |crm_customer| %> - + <% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %> @@ -55,7 +55,7 @@ <%= link_to 'Show', crm_customer_path(crm_customer) %> - + <% end %> <% end %> <%else%>

There are no record for your search

@@ -103,12 +103,12 @@
- <%= f.text_field :date_of_birth,:class=>"form-control datepicker"%> + <%= f.text_field :date_of_birth,:value=>"01-01-1990",:class=>"form-control datepicker"%>
- <% Lookup.where("lookup_type = ?", "member_group_type" ).each do |member| %> @@ -121,6 +121,7 @@
<%= 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%>
@@ -230,5 +231,12 @@ $(function() { }); } + $('#reset').click(function() { + + window.location.href = '/crm/customers' + + return false; + }); + \ No newline at end of file diff --git a/app/views/origami/customers/index.html.erb b/app/views/origami/customers/index.html.erb index 9f109497..dd2b1b99 100644 --- a/app/views/origami/customers/index.html.erb +++ b/app/views/origami/customers/index.html.erb @@ -2,9 +2,9 @@