Temporairly deactivated helper in new delivery form.
This commit is contained in:
parent
310a97912c
commit
04b611a080
3 changed files with 28 additions and 23 deletions
|
@ -12,31 +12,34 @@
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
.row-fluid
|
= simple_form_for [@supplier, @delivery], validate: true do |f|
|
||||||
.span6
|
= f.hidden_field :supplier_id
|
||||||
= simple_form_for [@supplier, @delivery], validate: true do |f|
|
#stock_changes
|
||||||
= f.hidden_field :supplier_id
|
= f.fields_for :stock_changes do |stock_change_form|
|
||||||
#stock_changes
|
|
||||||
= f.fields_for :stock_changes do |stock_change_form|
|
|
||||||
%p
|
|
||||||
= stock_change_form.select :stock_article_id, stock_articles_for_select(@supplier)
|
|
||||||
Menge
|
|
||||||
= stock_change_form.text_field :quantity, size: 5, autocomplete: 'off'
|
|
||||||
= stock_change_form.hidden_field :_destroy
|
|
||||||
= link_to "Artikel aus Lieferung entfernen", "#", class: 'destroy_stock_change'
|
|
||||||
%p
|
%p
|
||||||
= link_to "Lagerartikel der Lieferung hinzufügen", {action: 'add_stock_change', supplier_id: @supplier.id}, remote: true
|
= stock_change_form.select :stock_article_id, stock_articles_for_select(@supplier)
|
||||||
%hr/
|
Menge
|
||||||
= f.input :delivered_on, as: :date_picker
|
= stock_change_form.text_field :quantity, size: 5, autocomplete: 'off'
|
||||||
= f.input :note, input_html: {size: '35x4'}
|
= stock_change_form.hidden_field :_destroy
|
||||||
.form-actions
|
= link_to "Artikel aus Lieferung entfernen", "#", class: 'destroy_stock_change'
|
||||||
= f.submit class: 'btn btn-primary'
|
%p
|
||||||
= link_to "oder abbrechen", supplier_deliveries_path(@supplier)
|
= link_to "Lagerartikel der Lieferung hinzufügen", {action: 'add_stock_change', supplier_id: @supplier.id}, remote: true
|
||||||
|
%p
|
||||||
|
%small
|
||||||
|
Ist ein Artikel noch nicht in der Lagerverwaltung, muss er erst
|
||||||
|
#{link_to("neu angelegt", new_stock_article_path)} werden.
|
||||||
|
%hr/
|
||||||
|
= f.input :delivered_on, as: :date_picker
|
||||||
|
= f.input :note, input_html: {size: '35x4'}
|
||||||
|
.form-actions
|
||||||
|
= f.submit class: 'btn btn-primary'
|
||||||
|
= link_to "oder abbrechen", supplier_deliveries_path(@supplier)
|
||||||
|
|
||||||
|
/
|
||||||
|
TODO: Fix this!!
|
||||||
.span6
|
.span6
|
||||||
%h2 Neuen Lagerartikel anlegen
|
%h2 Neuen Lagerartikel anlegen
|
||||||
%p
|
%p
|
||||||
//TODO: Fix this!!
|
|
||||||
Suche nach Artikeln aus dem
|
Suche nach Artikeln aus dem
|
||||||
%i= @supplier.name
|
%i= @supplier.name
|
||||||
Katalog:
|
Katalog:
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
%li= link_to "Nicht verfügbare Artikel zeigen/verstecken", "#", 'data-toggle-this' => 'tr.unavailable', tabindex: -1
|
%li= link_to "Nicht verfügbare Artikel zeigen/verstecken", "#", 'data-toggle-this' => 'tr.unavailable', tabindex: -1
|
||||||
|
|
||||||
.btn-group
|
.btn-group
|
||||||
= link_to "Neuen Lagerartikel anlegen", new_stock_article_path, class: 'btn btn-primary'
|
|
||||||
= link_to_if @current_user.role_orders?, "Lagerbestellung online stellen", new_order_path(supplier_id: 0),
|
= link_to_if @current_user.role_orders?, "Lagerbestellung online stellen", new_order_path(supplier_id: 0),
|
||||||
class: 'btn'
|
class: 'btn', class: 'btn btn-primary'
|
||||||
|
= link_to "Neuen Lagerartikel anlegen", new_stock_article_path, class: 'btn'
|
||||||
= link_to "Inventur anlegen", new_stock_taking_path, class: 'btn'
|
= link_to "Inventur anlegen", new_stock_taking_path, class: 'btn'
|
||||||
= link_to "Inventurübersicht", stock_takings_path, class: 'btn'
|
= link_to "Inventurübersicht", stock_takings_path, class: 'btn'
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,9 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
%p
|
/
|
||||||
|
TODO: Fix this
|
||||||
|
%p
|
||||||
Suche nach Artikeln aus allen Katalogen:
|
Suche nach Artikeln aus allen Katalogen:
|
||||||
= text_field_tag 'article_search'
|
= text_field_tag 'article_search'
|
||||||
#stock_article_form
|
#stock_article_form
|
||||||
|
|
Loading…
Reference in a new issue