From 46e7431d1ebb4a3c5e4ebf47ec48d3fbe2952ecf Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Tue, 17 Oct 2017 10:06:17 +0630 Subject: [PATCH] update admin confirm box --- app/assets/javascripts/addorder.js | 4 ++-- app/views/crm/customers/_new_form.html.erb | 6 +++--- app/views/crm/customers/index.html.erb | 23 ++++------------------ app/views/layouts/application.html.erb | 4 +++- 4 files changed, 12 insertions(+), 25 deletions(-) diff --git a/app/assets/javascripts/addorder.js b/app/assets/javascripts/addorder.js index f615a28d..50dc4741 100644 --- a/app/assets/javascripts/addorder.js +++ b/app/assets/javascripts/addorder.js @@ -378,9 +378,9 @@ $(function(){ item_options = $(this).data('option'); if (data.attr('data-image')) { - image = ""; + image = ""; }else{ - image = ""; + image = ""; } $('#modal_box_img').append(image); diff --git a/app/views/crm/customers/_new_form.html.erb b/app/views/crm/customers/_new_form.html.erb index 8687d25f..bba21b02 100644 --- a/app/views/crm/customers/_new_form.html.erb +++ b/app/views/crm/customers/_new_form.html.erb @@ -132,9 +132,9 @@
- <%= 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' %> + <%= f.submit "Submit",:class => 'btn btn-primary ', :id => 'submit_customer' %> + <%= f.submit "Update",:class => 'btn btn-info ', :disabled =>'', :id => 'update_customer' %> +
<%end%> diff --git a/app/views/crm/customers/index.html.erb b/app/views/crm/customers/index.html.erb index fcea1c60..8473ecf6 100644 --- a/app/views/crm/customers/index.html.erb +++ b/app/views/crm/customers/index.html.erb @@ -35,22 +35,14 @@ <%= form_tag crm_customers_path, :id => "filter_form", :method => :get do %>
-
- - -
-
- -
- - - - - + + + +
<% end %> @@ -102,13 +94,6 @@
<%= render 'new_form', crm_customer: @crm_customer, taxes: @taxes %> - -