Linearize and clean up delivery form
This commit is contained in:
parent
bf32e72414
commit
dd70b84ef0
16 changed files with 170 additions and 155 deletions
|
|
@ -44,21 +44,6 @@ SimpleForm.setup do |config|
|
|||
b.use :hint, :wrap_with => { :tag => :span, :class => :hint }
|
||||
b.use :error, :wrap_with => { :tag => :span, :class => :error }
|
||||
end
|
||||
|
||||
config.wrappers :intable, :class => 'control-group',
|
||||
:error_class => :error do |b|
|
||||
b.use :html5
|
||||
b.use :placeholder
|
||||
b.optional :maxlength
|
||||
b.optional :pattern
|
||||
b.optional :min_max
|
||||
b.optional :readonly
|
||||
|
||||
b.use :input
|
||||
b.use :hint
|
||||
b.use :error, :wrap_with => { :tag => :span, :class => 'help-inline' }
|
||||
end
|
||||
|
||||
|
||||
# The default wrapper to be used by the FormBuilder.
|
||||
config.default_wrapper = :default
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -418,10 +418,10 @@ de:
|
|||
deliveries:
|
||||
add_stock_change:
|
||||
how_many_units: Wie viele Einheiten (%{unit}) des Artikels »%{name}« liefern?
|
||||
add_stock_article:
|
||||
notice: Neuer Lagerartikel »%{name}« gespeichert.
|
||||
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:
|
||||
|
|
@ -430,12 +430,11 @@ de:
|
|||
actions: Optionen
|
||||
article: Artikel
|
||||
category: Kategorie
|
||||
copy_order_article: Kopiere Bestellartikel
|
||||
new_stock_article: Neuen Lagerartikel anlegen
|
||||
create_from_blank: Ohne Vorlage anlegen
|
||||
create_stock_article: Lagerartikel anlegen
|
||||
price: Preis (netto)
|
||||
price_per_unit: Preis/Einheit
|
||||
quantity: Menge
|
||||
remove_article: Artikel aus Lieferung entfernen
|
||||
title_fill_quantities: 2. Liefermenge angeben
|
||||
title_finish_delivery: 3. Lieferung abschließen
|
||||
title_select_stock_articles: 1. Lagerartikel auswählen
|
||||
|
|
@ -464,7 +463,7 @@ de:
|
|||
action_add_to_delivery: 'Liefern'
|
||||
action_edit: 'Bearbeiten'
|
||||
action_other_price: 'Anderer Preis'
|
||||
stock_change:
|
||||
stock_change_fields:
|
||||
remove_article: Artikel aus Lieferung entfernen
|
||||
suppliers_overview: Lieferantenübersicht
|
||||
update:
|
||||
|
|
@ -1846,6 +1845,7 @@ de:
|
|||
close: ! '×'
|
||||
success: ! '<i class="icon icon-ok"></i>'
|
||||
or_cancel: oder abbrechen
|
||||
please_wait: Bitte warten...
|
||||
save: Speichern
|
||||
show: Anzeigen
|
||||
views:
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ Foodsoft::Application.routes.draw do
|
|||
post :add_stock_change, :on => :collection
|
||||
|
||||
get :new_stock_article, :on => :collection
|
||||
post :add_stock_article, :on => :collection
|
||||
post :create_stock_article, :on => :collection
|
||||
|
||||
get :edit_stock_article, :on => :collection
|
||||
put :update_stock_article, :on => :collection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue