When receiving: hide OrderArticle unit fields also after failed validation
This commit is contained in:
parent
aa57cee96f
commit
a8e604c196
1 changed files with 3 additions and 1 deletions
|
@ -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'}
|
||||
|
|
Loading…
Reference in a new issue