From addf3603ff914f3c9bc69dab9833c37a4f8f5613 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Thu, 15 Jun 2017 14:19:31 +0630 Subject: [PATCH] update customer --- app/views/crm/customers/index.html.erb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/views/crm/customers/index.html.erb b/app/views/crm/customers/index.html.erb index c74c34f6..f97de091 100644 --- a/app/views/crm/customers/index.html.erb +++ b/app/views/crm/customers/index.html.erb @@ -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