Merge branch 'master' into updated-gems

Conflicts:
	Gemfile.lock
	app/views/deliveries/_form.html.haml
This commit is contained in:
wvengen 2013-07-17 11:04:28 +02:00
commit eef4626107
32 changed files with 708 additions and 147 deletions

View file

@ -36,7 +36,18 @@ SimpleForm.setup do |config|
input.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
end
end
# Do not use the label in tables
config.wrappers :intable, :tag => 'div', :class => 'control-group control-group-intable', :error_class => 'error' do |b|
b.use :html5
b.use :placeholder
b.wrapper :tag => 'div', :class => 'controls controls-intable' do |ba|
ba.use :input
ba.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
ba.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' }
end
end
# Wrappers for forms and inputs using the Twitter Bootstrap toolkit.
# Check the Bootstrap docs (http://twitter.github.com/bootstrap)
# to learn about the different styles for forms and inputs,

View file

@ -39,6 +39,8 @@ de:
article_category: Kategorie
availability: Artikel ist verfügbar?
deposit: Pfand
fc_price: Endpreis
fc_share: FC-Aufschlag
gross_price: Bruttopreis
price: Nettopreis
tax: MwSt
@ -421,20 +423,28 @@ de:
second: Sekunden
year: Jahr
deliveries:
add_stock_change:
how_many_units: Wie viele Einheiten (%{unit}) des Artikels »%{name}« liefern?
create:
notice: Lieferung wurde erstellt. Bitte nicht vergessen die Rechnung anzulegen!
create_stock_article:
notice: Neuer Lagerartikel »%{name}« gespeichert.
destroy:
notice: Lieferung wurde gelöscht.
edit:
title: Lieferung bearbeiten
form:
add_article: Lagerartikel der Lieferung hinzufügen
new_article:
search: Suche nach Artikeln aus dem <i>%{supplier}</i> Katalog
title: Neuen Lagerartikel anlegen
note_new_article: Ist ein Artikel noch nicht in der Lagerverwaltung, muss er erst %{new_link} werden.
note_new_article_link: neu angelegt
remove_article: Artikel aus Lieferung entfernen
actions: Optionen
article: Artikel
category: Kategorie
create_from_blank: Ohne Vorlage anlegen
create_stock_article: Lagerartikel anlegen
price: Nettopreis
quantity: Menge
title_fill_quantities: 2. Liefermenge angeben
title_finish_delivery: 3. Lieferung abschließen
title_select_stock_articles: 1. Lagerartikel auswählen
unit: Einheit
index:
confirm_delete: Bist Du sicher?
new_delivery: Neue Lieferung für %{supplier} anlegen
@ -454,11 +464,19 @@ de:
title: Lieferung anzeigen
title_articles: Artikel
unit: Einheit
stock_change:
stock_article_for_adding:
action_add_to_delivery: 'Liefern'
action_edit: 'Bearbeiten'
action_other_price: 'Kopieren'
stock_article_form:
copy_stock_article: 'Lagerartikel kopieren'
stock_change_fields:
remove_article: Artikel aus Lieferung entfernen
suppliers_overview: Lieferantenübersicht
update:
notice: Lieferung wurde aktualisiert.
update_stock_article:
notice: Lagerartikel »%{name}« aktualisiert.
documents:
order_by_articles:
filename: Bestellung %{name}-%{date} - Artikelsortierung
@ -1151,6 +1169,8 @@ de:
subject: ! 'Betreff:'
title: Nachricht anzeigen
model:
delivery:
each_stock_article_must_be_unique: Lieferung darf jeden Lagerartikel höchstens einmal auflisten.
membership:
no_admin_delete: Mitgliedschaft kann nicht beendet werden. Du bist die letzte Administratorin
order_article:
@ -1515,6 +1535,10 @@ de:
update_current_price: Ändert auch den Preis für aktuelle Bestellungen
stock_article:
supplier:
copy_stock_article:
name: Bitte ändern
edit_stock_article:
price: ! '<ul><li>Preisänderung gesperrt.</li><li>Bei Bedarf %{stock_article_copy_link}.</li></ul>'
supplier:
min_order_quantity: Die Mindestbestellmenge wird während der Bestellung angezeigt und soll motivieren
task:
@ -1834,7 +1858,9 @@ de:
history: Verlauf anzeigen
marks:
close: ! '&times;'
success: ! '<i class="icon icon-ok"></i>'
or_cancel: oder abbrechen
please_wait: Bitte warten...
save: Speichern
show: Anzeigen
views:

View file

@ -39,6 +39,8 @@ en:
article_category: article category
availability: Is article available?
deposit: deposit
fc_price: FC price
fc_share: FC share
gross_price: gross price
price: price
tax: VAT
@ -423,20 +425,28 @@ en:
second: seconds
year: years
deliveries:
add_stock_change:
how_many_units: 'How many units (%{unit}) to deliver? Stock article name: %{name}.'
create:
notice: Delivery was created. Please dont forget to create invoice!
create_stock_article:
notice: The new stock article »%{name}« was saved.
destroy:
notice: Delivery was deleted.
edit:
title: Edit suppliers
title: Edit delivery
form:
add_article: Add stock article to delivery
new_article:
search: Search for articles in the <i>%{supplier}</i> catalogue
title: Create new stock article
note_new_article: When an article is not yet in the inventory, you have to %{new_link} it first.
note_new_article_link: create
remove_article: Remove article from delivery
actions: Tasks
article: Article
category: Category
copy_order_article: Copy order article
new_stock_article: Create new stock article
price: Netprice
quantity: Quantity
title_fill_quantities: 2. Set delivery quantities
title_finish_delivery: 3. Finish delivery
title_select_stock_articles: 1. Select stock articles
unit: Unit
index:
confirm_delete: Are you sure?
new_delivery: ! 'Create new delivery for %{supplier} '
@ -456,11 +466,19 @@ en:
title: Show delivery
title_articles: Article
unit: Unit
stock_change:
remove_article: Remove articles from delivery
stock_article_for_adding:
action_add_to_delivery: 'Add to delivery'
action_edit: 'Edit'
action_other_price: 'Copy'
stock_article_form:
copy_stock_article: 'Lagerartikel kopieren'
stock_change_fields:
remove_article: Remove article from delivery
suppliers_overview: Supplier overview
update:
notice: Delivery was updated.
update_stock_article:
notice: The stock article »%{name}« was updated.
documents:
order_by_articles:
filename: Order %{name}-%{date} - by articles
@ -1153,6 +1171,8 @@ en:
subject: ! 'Subject:'
title: Show message
model:
delivery:
each_stock_article_must_be_unique: Each stock article must not be listed more than once.
membership:
no_admin_delete: Membership can not be withdrawn as you are the last administrator.
order_article:
@ -1517,6 +1537,10 @@ en:
update_current_price: Also update the price of the current order
stock_article:
supplier:
copy_stock_article:
name: Please modify
edit_stock_article:
price: ! '<ul><li>Price changes are forbidden.</li><li>If necessary, %{stock_article_copy_link}.</li></ul>'
supplier:
min_order_quantity: The minimum amount which has to be orderd will be shown during the order process and should motivate ordering
task:

View file

@ -104,8 +104,15 @@ Foodsoft::Application.routes.draw do
get :shared_suppliers, :on => :collection
resources :deliveries do
post :drop_stock_change, :on => :member
post :add_stock_article, :on => :collection
post :add_stock_change, :on => :collection
get :new_stock_article, :on => :collection
get :copy_stock_article, :on => :collection
get :derive_stock_article, :on => :collection
post :create_stock_article, :on => :collection
get :edit_stock_article, :on => :collection
put :update_stock_article, :on => :collection
end
resources :articles do