add testing device images and a lot more, before bootstrap:themed
This commit is contained in:
@@ -4,10 +4,14 @@ class DashboardController < ApplicationController
|
||||
def home
|
||||
|
||||
end
|
||||
def phone_home
|
||||
render layout: 'phone'
|
||||
end
|
||||
|
||||
# Testing action
|
||||
def select_qrcode
|
||||
@tables = Table.all
|
||||
render layout: 'phone'
|
||||
end
|
||||
|
||||
def create_list
|
||||
@@ -25,8 +29,7 @@ class DashboardController < ApplicationController
|
||||
|
||||
def show_products
|
||||
@supplier = Supplier.first
|
||||
|
||||
|
||||
render layout: 'phone'
|
||||
end
|
||||
|
||||
def order_active_list
|
||||
@@ -50,6 +53,29 @@ class DashboardController < ApplicationController
|
||||
|
||||
def view_active_list
|
||||
redirect_to(root_path, alert: t('messages.there_is_no_list_active')) and return unless session[:active_list_id].present?
|
||||
|
||||
render layout: 'phone'
|
||||
end
|
||||
|
||||
##
|
||||
# Displays the closed lists of the user
|
||||
def user_history
|
||||
render layout: 'phone'
|
||||
end
|
||||
|
||||
def list_info
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
render json: {list_active: false} and return unless session[:active_list_id].present?
|
||||
render json: active_list.as_json.merge(list_active: true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def supplier_home
|
||||
redirect_to active_orders_supplier_path(Supplier.first)
|
||||
end
|
||||
|
||||
def supplier_lists
|
||||
redirect_to active_lists_supplier_path(Supplier.first)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user