User foundation setup

This commit is contained in:
2014-03-26 13:17:34 +01:00
parent 6c2427e082
commit 4e75c72097
87 changed files with 861 additions and 120 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ module Qwaiter
config.active_support.escape_html_entities_in_json = true
config.handlebars.templates_root = %w[supplier/app/templates waiter/app/templates]
config.handlebars.templates_root = %w[supplier/app/templates waiter/app/templates user/app/templates]
config.generators do |g|
g.orm :simply_stored
+1
View File
@@ -32,6 +32,7 @@ en:
no_records: There are no items present
actions:
title: Actions
#depricated, moved to user
messages:
cannot_order_on_non_active_list: You cannot place an order on a closed list
no_active_list: There is no active list
+42 -1
View File
@@ -1,9 +1,30 @@
en:
user:
unknown_supplier_name: unknown
messages:
cannot_order_on_non_active_list: You cannot place an order on a closed list
no_active_list: There is no active list
order_is_placed: Your order has been received in good order
new_list_created: A new ${models.list} has been created
the_list_has_been_closed: The list has been closed
illegal_history_list_attempt: The list you want to access is not yours
table_not_found: The requested table cannot be found or is not given
table_is_occupied: The table you want to sit on is already occupied
table_is_reserved: The table you want to sit on is reserved by someone else
table_is_closed: The table you want to sit on is not available for service
supplier_is_closed: The owner of this table is currently not handling orders
join_request_rejected: Your request to join the table has been rejected
join_request_approved: Your request to join the table has been approved
table_is_from_other_supplier: You cannot move to another table when you have an open list
moved_to_another_table: You successfully moved to another table
cannot_identify_table: The application cannot determine the table number
unknown_supplier_name: unknown
unauthorized: Unauthorized action detected
active_list:
title: Active list
needs_payment: Check please!
list_products:
title: Order
history_list:
title: Closed list
list_history:
@@ -28,3 +49,23 @@ en:
title: Authenticate Qwaiter
obtain: Authenticate
invalid_combination: The email password combination is incorrect
move_table:
cannot_move_to_occupied_table: 'You cannot move to an occupied table'
moved_to_another_table: 'The table is changed.'
confirmation_title: 'Move to another table?'
confirmation_body: 'Do you want to move to another table?'
confirm:
cencel: Cancel
confirm: 'Yes'
list_needs_help:
help_is_on_its_way: 'Help is already on its way'
title: 'Request a waiter'
content: 'Request a waiter to your table'
list_needs_payment:
payment_already_requested: 'You already asked for the bill'
title: 'Ask for the check'
content: 'Do you want to pay?'
product_orders:
order_button: Order
total: Total
no_orders: No products
+41 -1
View File
@@ -1,9 +1,29 @@
nl:
user:
unknown_supplier_name: onbekend
messages:
cannot_order_on_non_active_list: Je kan niet bestellen op een gesloten lijst
no_active_list: Er is momenteel geen lijst actief
order_is_placed: Je bestelling is in goede orde aangekomen
new_list_created: Een nieuwe ${models.list} is aangemaakt
the_list_has_been_closed: De lijst is afgesloten
illegal_history_list_attempt: Je probeert een lijst op te vragen die niet van jou is
table_not_found: De gezochte tafel kan niet worden gevonden of is niet opgegeven
table_is_occupied: De tafel waar je aan wil gaan zitten is reeds bezet
table_is_reserved: De tafel waar je aan wil gaan zitten is gereserveerd
table_is_closed: De tafel waar je aan wil gaan zitten is niet beschikbaar voor bediening
supplier_is_closed: De eigenaar van deze tafel is momenteel gesloten
join_request_rejected: Je verzoek om te mogen bestellen op een bestaande lijst is afgewezen
join_request_approved: Je verzoek om te mogen bestellen op een bestaande lijst is goedgekeurd
table_is_from_other_supplier: Je kan geen lijst openen bij een andere zaak zolang je huidige lijst nog niet is afgesloten
moved_to_another_table: De tafel is gewijzigd
cannot_identify_table: De applicatie kan niet bepalen om welke tafel het gaat
unknown_supplier_name: onbekend
unauthorized: Niet toegestane actie
active_list:
title: Actieve lijst
needs_payment: Rekening vragen!
list_products:
title: Bestel
history_list:
title: Afgesloten lijst
list_history:
@@ -28,3 +48,23 @@ nl:
title: Aanmelden bij Qwaiter
obtain: Aanmelden
invalid_combination: De inloggegevens zijn onjuist
move_table:
cannot_move_to_occupied_table: 'Je kan niet verhuizen naar een tafel die reeds gebruikt wordt.'
moved_to_another_table: 'De tafel is gewijzigd.'
confirmation_title: 'Naar een andere tafel verhuizen?'
confirmation_body: 'Wil je aan een andere tafel gaan zitten?'
confirm:
cencel: Annuleer
confirm: 'Ja'
list_needs_help:
help_is_on_its_way: 'Er wordt al iemand naar je tafel gestuurd'
title: 'Ik heb een vraag'
content: 'Wil je een vraag stellen?'
list_needs_payment:
payment_already_requested: 'De rekening is reeds gevraagd'
title: 'Vraag om de rekening'
content: 'Wil je betalen?'
product_orders:
order_button: Bestel
total: Totaal
no_orders: Geen bestellingen
+2
View File
@@ -2,3 +2,5 @@ en:
waiter:
product_orders:
order_button: Order
total: Total
no_orders: No products
+2
View File
@@ -2,3 +2,5 @@ nl:
waiter:
product_orders:
order_button: Bestel
total: Totaal
no_orders: Geen bestellingen
+5 -1
View File
@@ -69,8 +69,12 @@ Qwaiter::Application.routes.draw do
get '/user/obtain_token' => 'user#obtain_token', as: :user_obtain_token
post '/user/obtain_token' => 'user#obtain_token', constraints: {format: :json}
namespace :users, path: '/user' do
resources :product_categories, only: [:index]
end
get '/supplier/suppliers/current' => 'supplier#current' #ember
#match '/show_products' => 'dashboard#show_products', as: :user_products
# GENERAL