Move small close button to helper.
Workaround for show order deface override nuking attributes of the close button.
This commit is contained in:
parent
cf0fcccfc3
commit
507651f5ba
10 changed files with 18 additions and 12 deletions
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue