update ui for oqs and crm

This commit is contained in:
Aung Myo
2017-09-28 14:18:04 +06:30
parent c4f3b9e999
commit 96af0fcd17
9 changed files with 38 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
class Crm::BookingsController < BaseCrmController
class Crm::BookingsController < ApplicationController
load_and_authorize_resource
def update_booking
booking = Booking.find(params[:booking_id])

View File

@@ -1,4 +1,4 @@
class Crm::CustomersController < BaseCrmController
class Crm::CustomersController < ApplicationController
load_and_authorize_resource except: [:create]
before_action :set_crm_customer, only: [:show, :edit, :update, :destroy]

View File

@@ -1,4 +1,4 @@
class Crm::DiningQueuesController < BaseCrmController
class Crm::DiningQueuesController < ApplicationController
load_and_authorize_resource
before_action :set_dining_queue, only: [:show, :edit, :update, :destroy]

View File

@@ -1,4 +1,4 @@
class Crm::HomeController < BaseCrmController
class Crm::HomeController < ApplicationController
def index
@booking = Booking.all

View File

@@ -1,4 +1,4 @@
class Oqs::EditController < BaseOqsController
class Oqs::EditController < ApplicationController#BaseOqsController
def index
assigned_item_id = params[:id]
assigned_item = AssignedOrderItem.find(assigned_item_id)

View File

@@ -1,4 +1,4 @@
class Oqs::HomeController < BaseOqsController
class Oqs::HomeController < ApplicationController#BaseOqsController
def index
@queue_stations = OrderQueueStation.all