change styling towards design rj
This commit is contained in:
@@ -21,8 +21,17 @@ class DashboardController < ApplicationController
|
||||
code = {table_id: @table.id}.to_json
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.svg { render :qrcode => code, :level => :l, :unit => 10, table_number: @table.number }
|
||||
format.png { render qrcode: code, table_number: @table.number }
|
||||
format.svg { render :qrcode => code, :level => :l, :unit => 10, table_number: @table.number, qcontainer: true }
|
||||
format.png { render qrcode: code, table_number: @table.number, qcontainer: true }
|
||||
end
|
||||
end
|
||||
|
||||
def qr
|
||||
code = 'qwaiter.com'
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.svg { render :qrcode => code, :level => :l, :unit => 10}
|
||||
format.png { render qrcode: code}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ module Suppliers
|
||||
# PUT /sections/1
|
||||
# PUT /sections/1.json
|
||||
def update
|
||||
@section = Section.find(params[:id])
|
||||
@section = Section.find_by_supplier_and_id(current_supplier, params[:id])
|
||||
|
||||
respond_to do |format|
|
||||
if @section.update_attributes(params[:section])
|
||||
|
||||
Reference in New Issue
Block a user