Move Select2 for stock_article_creation to tfoot of delivery form

This commit is contained in:
Julius 2013-07-12 21:15:12 +02:00
parent 469abb753d
commit e5eff07abd

View file

@ -94,10 +94,6 @@
= f.association :supplier, :as => :hidden = f.association :supplier, :as => :hidden
%h2= t '.title_select_stock_articles' %h2= t '.title_select_stock_articles'
.well.well-small
.btn-toolbar
.btn-group
%input#new_stock_article{:style => 'width: 500px;'}
%table.table.table-hover#stock_articles_for_adding %table.table.table-hover#stock_articles_for_adding
%thead %thead
%tr %tr
@ -107,6 +103,10 @@
%th= t '.unit' %th= t '.unit'
%th= t '.category' %th= t '.category'
%th= t '.actions' %th= t '.actions'
%tfoot
%tr
%th{:colspan => 5}
%input#new_stock_article{:style => 'width: 500px;'}
%tbody %tbody
- for article in stock_articles_for_table(@supplier) - for article in stock_articles_for_table(@supplier)
= render :partial => 'stock_article_for_adding', :locals => {:article => article} = render :partial => 'stock_article_for_adding', :locals => {:article => article}