diff --git a/app/assets/stylesheets/CRM.scss b/app/assets/stylesheets/CRM.scss index 9e9daa84..7f9192f2 100755 --- a/app/assets/stylesheets/CRM.scss +++ b/app/assets/stylesheets/CRM.scss @@ -120,3 +120,32 @@ .bottom{ margin-bottom:1px; } + +/*Pagination*/ +nav.pagination { + margin:10px; + +} +nav.pagination .current{ + background-color:#1f91f3; + color:#fff; + padding:4px 10px; + margin-top:-4px; +} +nav.pagination .page a,.next a,.last a,.prev a,.first a{ + padding:6.5px 10px; + margin-left: 3px; +} + +nav.pagination .page a:hover, +a:focus { + background-color: #ccc; + text-decoration: none; + +} +nav.pagination .page a:hover, +.first a:hover,.last a:hover,.prev a:hover,.next a:hover{ + background-color: #ccc; + text-decoration: none; + +} diff --git a/app/controllers/crm/customers_controller.rb b/app/controllers/crm/customers_controller.rb index 2a277144..c61100bb 100755 --- a/app/controllers/crm/customers_controller.rb +++ b/app/controllers/crm/customers_controller.rb @@ -33,12 +33,14 @@ class Crm::CustomersController < BaseCrmController end end end - @crm_customers = Kaminari.paginate_array(@crm_customers).page(params[:page]).per(15) + @crm_customers = Kaminari.paginate_array(@crm_customers).page(params[:page]).per(5) @crm_customer = Customer.new @count_customer = Customer.count_customer @taxes = TaxProfile.all.order("order_by asc") + @filter = filter + # if flash["errors"] # @crm_customer.valid? # end diff --git a/app/controllers/transactions/orders_controller.rb b/app/controllers/transactions/orders_controller.rb index 7bc1e969..a76fa385 100755 --- a/app/controllers/transactions/orders_controller.rb +++ b/app/controllers/transactions/orders_controller.rb @@ -34,7 +34,7 @@ class Transactions::OrdersController < ApplicationController def show @order = Order.find(params[:id]) - + @dining = BookingOrder.find_by_order_id(@order.order_id).booking.dining_facility respond_to do |format| format.html # show.html.erb format.json { render json: @order } diff --git a/app/views/crm/customers/_new_form.html.erb b/app/views/crm/customers/_new_form.html.erb index 218a7f66..1351be9f 100755 --- a/app/views/crm/customers/_new_form.html.erb +++ b/app/views/crm/customers/_new_form.html.erb @@ -5,16 +5,16 @@

-