From a8e604c1965f3aef5482ae3a7e532137f8168192 Mon Sep 17 00:00:00 2001 From: Julius Date: Sat, 4 Jan 2014 20:35:31 +0100 Subject: [PATCH] When receiving: hide OrderArticle unit fields also after failed validation --- app/views/order_articles/_edit.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/order_articles/_edit.html.haml b/app/views/order_articles/_edit.html.haml index ce7e444f..e8849551 100644 --- a/app/views/order_articles/_edit.html.haml +++ b/app/views/order_articles/_edit.html.haml @@ -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'}