Import current_orders plugin from foodcoop-adam

This commit is contained in:
wvengen 2015-04-10 20:18:49 +02:00
parent ae4979a3f0
commit 5907ff11bb
43 changed files with 1031 additions and 0 deletions

View file

@ -0,0 +1,61 @@
en:
current_orders:
articles:
article:
no_selection: Choose an article to show who ordered it, or download pick lists at the right.
article_info:
from: from %{supplier}
unit: per %{unit}
form:
article_placeholder: Search articles...
current_orders: All current orders
index:
title: Distribute article
ordergroups:
piece: pc
unit: unit
add_new: Add an ordergroup...
show:
title: ! 'Distribute %{name}'
group_orders:
index:
title: Your current orders
ordergroups:
articles:
add_new: Add an article...
form:
ordergroup_placeholder: Choose an ordergroup...
no_selection: Choose an ordergroup to show the articles.
index:
title: Articles for ordergroup
payment_bar:
account_balance: Account balance
new_pin: PIN
new_transaction: New transaction
payment: ! 'Payment:'
show:
title: Articles for %{name}
orders:
receive:
title: Receive orders
no_finished_orders: There are currently no orders to receive.
documents:
multiple_orders_by_articles:
filename: Current orders sorted by article
title: Current orders - by article
multiple_orders_by_groups:
filename: Current orders sorted by group
title: Current orders - by group
helpers:
current_orders:
pay_done: Fully paid
pay_none: Nothing to pay
pay_amount: To pay %{amount}
js:
current_orders:
articles:
above: '%{count} more<br>than available'
below: '%{count} left over'
equal: all distributed
ui:
back: Back

View file

@ -0,0 +1,55 @@
nl:
current_orders:
articles:
article:
no_selection: Kies een artikel om te zien wie het besteld heeft, of download verdeellijsten rechtsboven.
article_info:
from: van %{supplier}
unit: per %{unit}
form:
article_placeholder: Zoek artikelen...
current_orders: Alle huidige bestellingen
index:
title: Artikelen verdelen
ordergroups:
piece: st
add_new: Huishouden toevoegen...
show:
title: ! '%{name} verdelen'
ordergroups:
articles:
add_new: Artikel toevoegen...
form:
ordergroup_placeholder: Kies een huishouden...
no_selection: Kies een huishouden om de artikelen te tonen.
index:
title: Artikelen voor huishouden
payment_bar:
account_balance: Account balance
new_pin: PIN
new_transaction: Nieuwe transactie
payment: ! 'Betaling:'
show:
title: Artikelen voor %{name}
orders:
receive:
title: Bestellingen ontvangen
no_finished_orders: Er zijn momenteel geen bestellingen die ontvangen hoeven te worden.
documents:
multiple_orders_by_articles:
filename: Huidige bestellingen per artikel
title: Huidige bestellingen - per artikel
multiple_orders_by_groups:
filename: Huidige bestellingen per huishouden
title: Huidige bestellingen - per huishouden
js:
current_orders:
articles:
above: '%{count} meer dan<br>beschikbaar'
below: '%{count} blijft over'
equal: alles verdeeld
helpers:
current_orders:
pay_done: Alles betaald
pay_none: Niets te betalen
pay_amount: Te betalen %{amount}

View file

@ -0,0 +1,27 @@
Rails.application.routes.draw do
scope '/:foodcoop' do
namespace :current_orders do
resources :ordergroups, :only => [:index, :show] do
collection do
get :show_on_group_order_article_create
get :show_on_group_order_article_update
end
end
resources :articles, :only => [:index, :show] do
collection do
get :show_on_group_order_article_create
end
end
resource :orders, :only => [:show] do
collection do
get :my
get :receive
end
end
resources :group_orders, :only => [:index]
end
end
end