When receiving: hide OrderArticle unit fields also after failed validation

This commit is contained in:
Julius 2014-01-04 20:35:31 +01:00 committed by wvengen
parent aa57cee96f
commit a8e604c196

View file

@ -3,7 +3,9 @@
= link_to t('ui.marks.close').html_safe, '#', class: 'close', data: {dismiss: 'modal'}
%h3= t '.title'
.modal-body
- unless params[:without_units]
- if params[:without_units]
= hidden_field_tag :without_units, true
- else
.fold-line
= form.input :units_to_order, label: 'Amount ordered', hint: '', input_html: {class: 'input-nano'}
-#= form.input :units_billed, label: 'invoice', input_html: {class: 'input-nano'}