Add section elements
This commit is contained in:
@@ -95,6 +95,7 @@ module Qwaiter
|
||||
resource_link Supplier, scope: 'Admin'
|
||||
resource_link Section, scope: 'Admin'
|
||||
resource_link Table, scope: 'Admin'
|
||||
resource_link SvgElement, scope: 'Admin'
|
||||
engine_link Rails.application, title: 'Go to the website', path: '/'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -67,7 +67,7 @@ Qwaiter::Application.configure do
|
||||
config.action_mailer.smtp_settings = {
|
||||
address: "smtp.gmail.com",
|
||||
port: 587,
|
||||
domain: "atool.nl",
|
||||
domain: "mozo.bar",
|
||||
authentication: :plain,
|
||||
user_name: "bterkuile@companytools.nl",
|
||||
password: "BjTKct22",
|
||||
|
||||
@@ -14,6 +14,7 @@ en:
|
||||
user_feedback: User feedback
|
||||
employee: Employee
|
||||
employee_shift: Shift
|
||||
svg_element: Svg element
|
||||
plural:
|
||||
user: Users
|
||||
supplier: Restaurants
|
||||
@@ -28,6 +29,7 @@ en:
|
||||
user_feedback: User feedbacks
|
||||
employee: Employees
|
||||
employee_shift: Shifts
|
||||
svg_element: Svg elements
|
||||
attributes:
|
||||
product_category:
|
||||
name: Name
|
||||
@@ -94,3 +96,5 @@ en:
|
||||
email: "Your email:*"
|
||||
male: "Mr."
|
||||
female: "Ms."
|
||||
svg_element:
|
||||
name: Name
|
||||
|
||||
@@ -210,3 +210,7 @@ en:
|
||||
destroy_confirmation: Are you sure?
|
||||
suppliers_switcher:
|
||||
switch_to_button: Switch to %{name}
|
||||
section_element:
|
||||
add_button: Add ${models.section_element}
|
||||
modal:
|
||||
title: Add ${models.section_element}
|
||||
|
||||
+11
-22
@@ -27,6 +27,7 @@ Qwaiter::Application.routes.draw do
|
||||
resources :user_feedbacks
|
||||
|
||||
resources :lists
|
||||
resources :svg_elements
|
||||
resources :products
|
||||
resources :product_categories
|
||||
root to: 'users#index'
|
||||
@@ -86,36 +87,21 @@ Qwaiter::Application.routes.draw do
|
||||
end
|
||||
|
||||
|
||||
#get '/supplier/suppliers/current' => 'supplier#current' #ember
|
||||
#get '/supplier/suppliers/:id' => 'supplier#current' #ember
|
||||
#put '/supplier/suppliers/:id' => 'supplier#update' #ember
|
||||
|
||||
#match '/show_products' => 'dashboard#show_products', as: :user_products
|
||||
# GENERAL
|
||||
#get '/about' => 'dashboard#about'
|
||||
#get '/enquete' => 'dashboard#enquete'
|
||||
#get '/cartoon' => 'dashboard#cartoon'
|
||||
#get '/bars-restaurants' => 'dashboard#bars_restaurants', as: :bars_restaurants
|
||||
#get '/clients' => 'dashboard#clients'
|
||||
#get '/contact' => 'dashboard#contact'
|
||||
get '/s' => 'dashboard#scan', as: :scan
|
||||
|
||||
# DEVELOPMENT ONLY
|
||||
get '/qr' => 'dashboard#qr'
|
||||
get '/demo_both' => 'dashboard#demo_both'
|
||||
get :tests, to: 'test_squad#tests' unless Rails.env.production?
|
||||
|
||||
# SUPPLIER
|
||||
get '/supplier' => 'supplier#home', as: :supplier_root
|
||||
#get '/supplier/active_orders' => 'supplier#active_orders', as: :supplier_active_orders
|
||||
#get '/supplier/active_lists' => 'supplier#active_lists', as: :supplier_active_lists
|
||||
#get '/supplier/menu' => 'supplier#menu', as: :suppliers_menu
|
||||
#post '/supplier/remove_list_needs_payment' => 'supplier#remove_list_needs_payment', as: :supplier_remove_list_needs_payment
|
||||
|
||||
#post '/supplier/mark_as_open' => 'supplier#mark_as_open', as: :supplier_mark_as_open
|
||||
#post '/supplier/mark_as_closed' => 'supplier#mark_as_closed', as: :supplier_mark_as_closed
|
||||
|
||||
#get '/supplier/settings' => 'supplier#edit', as: :supplier_settings
|
||||
#match '/supplier/settings' => 'supplier#update', as: :supplier_update_settings, via: [:put, :post, :patch]
|
||||
if Rails.env.test? or Rails.env.development?
|
||||
namespace :tests do
|
||||
resources :suppliers
|
||||
resources :lists
|
||||
end
|
||||
end
|
||||
|
||||
namespace :suppliers, path: '/supplier' do
|
||||
resources :suppliers do
|
||||
@@ -134,6 +120,9 @@ Qwaiter::Application.routes.draw do
|
||||
post :arrange_tables
|
||||
end
|
||||
end
|
||||
|
||||
resources :section_elements
|
||||
resources :svg_elements, only: [:index, :show]
|
||||
resources :tables do
|
||||
collection do
|
||||
get :qr_codes
|
||||
|
||||
Reference in New Issue
Block a user