improvements
This commit is contained in:
@@ -60,6 +60,8 @@ en:
|
||||
attributes:
|
||||
product:
|
||||
price: Price
|
||||
list:
|
||||
created_at: Created
|
||||
supplier:
|
||||
menu:
|
||||
active_lists: Active %{lists}
|
||||
@@ -67,6 +69,7 @@ en:
|
||||
title: Active %{lists}
|
||||
price: Price
|
||||
active_orders:
|
||||
title: Active %{orders}
|
||||
price: Price
|
||||
close: Close the shop
|
||||
you_are_currently_closed_alert: 'You are currently closed and not able to take orders'
|
||||
@@ -75,11 +78,16 @@ en:
|
||||
tables:
|
||||
qr_codes:
|
||||
link: Qr codes sheet
|
||||
lists:
|
||||
show:
|
||||
title: Show %{list}
|
||||
|
||||
user:
|
||||
active_list:
|
||||
title: Active %{list}
|
||||
needs_payment: Check please!
|
||||
history_list:
|
||||
title: Previous %{list}
|
||||
show_products:
|
||||
# The title gets products: Product.model_name.human_plural that can be used: e.g.: Showing %{products}
|
||||
title: Menu
|
||||
|
||||
+3
-1
@@ -18,10 +18,11 @@ Qrammer::Application.routes.draw do
|
||||
resources :product_categories
|
||||
end
|
||||
|
||||
# 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/lists/:list_id' => 'supplier#show_list', as: :supplier_show_list
|
||||
get '/supplier/lists/:list_id' => 'supplier#show_list', as: :supplier_show_list
|
||||
|
||||
post '/supplier/close_list' => 'supplier#close_list', as: :supplier_close_list
|
||||
post '/supplier/mark_list_as_helped' => 'supplier#mark_list_as_helped', as: :supplier_mark_list_as_helped
|
||||
@@ -35,6 +36,7 @@ Qrammer::Application.routes.draw do
|
||||
get '/supplier/settings' => 'supplier#edit', as: :supplier_settings
|
||||
match '/supplier/settings' => 'supplier#update', as: :supplier_update_settings, via: [:put, :post]
|
||||
|
||||
# USER
|
||||
match '/user' => 'user#home', as: :user_root
|
||||
get '/user/active_list(.:format)' => 'user#active_list', as: :user_active_list
|
||||
get '/user/list_info' => 'user#list_info', as: :user_list_info
|
||||
|
||||
Reference in New Issue
Block a user