diff --git a/app/controllers/crm/customers_controller.rb b/app/controllers/crm/customers_controller.rb index 886f66d6..518c2e3e 100644 --- a/app/controllers/crm/customers_controller.rb +++ b/app/controllers/crm/customers_controller.rb @@ -142,7 +142,7 @@ class Crm::CustomersController < BaseCrmController else - format.html { render :edit } + format.html { render :index } format.json { render json: @crm_customer.errors, status: :unprocessable_entity } end diff --git a/app/views/crm/customers/index.html.erb b/app/views/crm/customers/index.html.erb index d76c94ac..18605877 100644 --- a/app/views/crm/customers/index.html.erb +++ b/app/views/crm/customers/index.html.erb @@ -72,9 +72,7 @@ <%= f.hidden_field :id, :class => "form-control col-md-6 " %> -
- <%= f.button :submit, "Update Customer",:class => 'btn btn-primary btn-sm', :disabled =>'', :id => 'update_customer' %> -
+
<%= f.input :name, :class => "form-control col-md-6 name" %> @@ -117,8 +115,8 @@
<%= f.button :submit, "Submit",:class => 'btn btn-primary ', :id => 'submit_customer' %> -
- + <%= f.button :submit, "Update",:class => 'btn btn-primary ', :disabled =>'', :id => 'update_customer' %> +
<%end%>