Merge branch 'adminbsb_ui_changes' of bitbucket.org:code2lab/sxrestaurant

This commit is contained in:
phyusin
2018-09-28 15:55:24 +06:30
18 changed files with 313 additions and 63 deletions

View File

@@ -76,7 +76,6 @@ class Origami::CustomersController < BaseOrigamiController
filter = params[:filter]
if filter.nil?
puts params[:page]
@crm_customers = Customer.order("customer_id") #.page(params[:page])
#@products = Product.order("name").page(params[:page]).per(5)
else

View File

@@ -1,6 +1,45 @@
class Origami::ReservationController < BaseOrigamiController
def index
@reservations = Reservation.all
end
def show
end
def new
end
def edit
end
def create
end
def update
end
# DELETE /crm/customers/1
# DELETE /crm/customers/1.json
def destroy
@reservation.destroy
respond_to do |format|
format.html { redirect_to origami_reservation_url, notice: 'Reservation was successfully destroyed.' }
format.json { head :no_content }
end
end
private
# Use callbacks to share common setup or constraints between actions.
def set_origami_reservation
@reservation = Reservation.find(params[:reservation_id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def customer_params
params.require(:reservation).permit(:reservation_id)
end
end