Add view to sort orders by pickup day
This commit is contained in:
parent
bd49a64cd7
commit
209ad615b4
7 changed files with 90 additions and 1 deletions
|
|
@ -1451,6 +1451,7 @@ de:
|
|||
archive: Meine Bestellungen
|
||||
manage: Bestellverwaltung
|
||||
ordering: Bestellen!
|
||||
pickups: Abholtage
|
||||
title: Bestellungen
|
||||
tasks: Aufgaben
|
||||
wiki:
|
||||
|
|
@ -1672,6 +1673,17 @@ de:
|
|||
title: "%{title} - Version %{version}"
|
||||
title_version: Version
|
||||
view_current: Aktuelle Version sehen
|
||||
pickups:
|
||||
document:
|
||||
empty_selection: Es muss zumindest eine Bestellung ausgewählt sein.
|
||||
filename: Abholungen für %{date}
|
||||
invalid_document: Ungültiger Dokumententyp
|
||||
title: Abholungen für %{date}
|
||||
index:
|
||||
article_pdf: Artikel PDF
|
||||
group_pdf: Gruppen PDF
|
||||
matrix_pdf: Matrix PDF
|
||||
title: Abholtage
|
||||
sessions:
|
||||
logged_in: Angemeldet!
|
||||
logged_out: Abgemeldet!
|
||||
|
|
|
|||
|
|
@ -1461,6 +1461,7 @@ en:
|
|||
archive: My Orders
|
||||
manage: Manage orders
|
||||
ordering: Place order!
|
||||
pickups: Pickup days
|
||||
title: Orders
|
||||
tasks: Tasks
|
||||
wiki:
|
||||
|
|
@ -1682,6 +1683,17 @@ en:
|
|||
title: "%{title} - version %{version}"
|
||||
title_version: Version
|
||||
view_current: See current version
|
||||
pickups:
|
||||
document:
|
||||
empty_selection: At least one order must be selected.
|
||||
filename: Pickup for %{date}
|
||||
invalid_document: Invalid document type
|
||||
title: Pickup for %{date}
|
||||
index:
|
||||
article_pdf: Article PDF
|
||||
group_pdf: Group PDF
|
||||
matrix_pdf: Matrix PDF
|
||||
title: Pickup days
|
||||
sessions:
|
||||
logged_in: Logged in!
|
||||
logged_out: Logged out!
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ SimpleNavigation::Configuration.run do |navigation|
|
|||
subnav.item :ordering, I18n.t('navigation.orders.ordering'), group_orders_path
|
||||
subnav.item :ordering_archive, I18n.t('navigation.orders.archive'), archive_group_orders_path
|
||||
subnav.item :orders, I18n.t('navigation.orders.manage'), orders_path, if: Proc.new { current_user.role_orders? }
|
||||
subnav.item :pickups, I18n.t('navigation.orders.pickups'), pickups_path, if: Proc.new { current_user.role_orders? }
|
||||
end
|
||||
|
||||
primary.item :articles, I18n.t('navigation.articles.title'), '#',
|
||||
|
|
|
|||
|
|
@ -51,6 +51,10 @@ Foodsoft::Application.routes.draw do
|
|||
resources :order_articles
|
||||
end
|
||||
|
||||
resources :pickups, only: [:index] do
|
||||
post :document, on: :collection
|
||||
end
|
||||
|
||||
resources :group_orders do
|
||||
get :archive, on: :collection
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue