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

@ -2,7 +2,7 @@
= f.hidden_field :shared_updated_on
= f.hidden_field :supplier_id
.modal-header
= link_to t('ui.marks.close').html_safe, '#', class: 'close', data: {dismiss: 'modal'}
= close_button :modal
%h3= @article.new_record? ? t('.title_new') : t('.title_edit')
.modal-body
= f.input :availability
@ -22,4 +22,3 @@
.modal-footer
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
= f.submit class: 'btn btn-primary'