Simplifiying balancing view part 2. Lets call it finished.
This commit is contained in:
parent
dc0d1b3e46
commit
af3c07f031
26 changed files with 185 additions and 219 deletions
9
app/views/finance/group_order_articles/_form.html.haml
Normal file
9
app/views/finance/group_order_articles/_form.html.haml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
%h2 Mengenänderung
|
||||
%p
|
||||
%b Artikel: #{@order_article.article.name}
|
||||
|
||||
- simple_form_for [:finance, @group_order_article], remote: true do |form|
|
||||
= form.hidden_field :order_article_id
|
||||
= form.input :ordergroup_id, as: :select, collection: Ordergroup.all.map { |g| [g.name, g.id] }
|
||||
= form.input :result, hint: "Einheit: #{@order_article.article.unit}"
|
||||
= form.submit 'Speichern'
|
||||
1
app/views/finance/group_order_articles/edit.js.erb
Normal file
1
app/views/finance/group_order_articles/edit.js.erb
Normal file
|
|
@ -0,0 +1 @@
|
|||
$.fancybox('<%= escape_javascript(render('form')) %>');
|
||||
1
app/views/finance/group_order_articles/new.js.erb
Normal file
1
app/views/finance/group_order_articles/new.js.erb
Normal file
|
|
@ -0,0 +1 @@
|
|||
$.fancybox('<%= escape_javascript(render("form")) %>');
|
||||
5
app/views/finance/group_order_articles/update.js.erb
Normal file
5
app/views/finance/group_order_articles/update.js.erb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
$.fancybox.close();
|
||||
$('#order_article_<%= @order_article.id %>').
|
||||
html('<%= escape_javascript(render(partial: 'finance/balancing/order_article', locals: {order_article: @order_article})) %>');
|
||||
$('#group_order_articles_<%= @order_article.id %>').
|
||||
html('<%= escape_javascript(render(partial: 'finance/balancing/group_order_articles', locals: {order_article: @order_article})) %>');
|
||||
Loading…
Add table
Add a link
Reference in a new issue