Move small close button to helper.

Workaround for show order deface override nuking attributes of the close button.
This commit is contained in:
wvengen 2015-04-10 18:58:51 +02:00
parent cf0fcccfc3
commit 507651f5ba
10 changed files with 18 additions and 12 deletions

View file

@ -1,6 +1,6 @@
= simple_form_for [@order, @order_article], remote: true do |form|
.modal-header
= link_to t('ui.marks.close').html_safe, '#', class: 'close', data: {dismiss: 'modal'}
= close_button :modal
%h3= t '.title'
.modal-body
- if params[:without_units]

View file

@ -1,6 +1,6 @@
= simple_form_for [@order, @order_article], remote: true do |form|
.modal-header
= link_to t('ui.marks.close').html_safe, '#', class: 'close', data: {dismiss: 'modal'}
= close_button :modal
%h3= t '.title'
.modal-body
= form.association :article, collection: @order.supplier_articles, label_method: lambda {|a| article_label_with_unit(a)}