From 8894bce1321dad9f2add9f4f5a2838c7f26ba94a Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Fri, 11 May 2018 18:25:07 +0630 Subject: [PATCH] update survey min 1 --- app/views/origami/surveys/_form.html.erb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/origami/surveys/_form.html.erb b/app/views/origami/surveys/_form.html.erb index 1b6d07e2..e480430f 100755 --- a/app/views/origami/surveys/_form.html.erb +++ b/app/views/origami/surveys/_form.html.erb @@ -9,7 +9,7 @@
- <%= f.input :child, input_html: { value: @survey_data.child, class: 'col-md-10', :onChange => "total_customer();" }%> +
@@ -67,29 +67,29 @@
- <%= f.input :child , input_html: { class: 'col-md-10' , :onChange => "total_customer();"}%> + <%= f.input :child , input_html: { class: 'col-md-10' ,min:'1', :onChange => "total_customer();"}%>
- <%= f.input :adult , input_html: { class: 'col-md-10' , :onChange => "total_customer();"}%> + <%= f.input :adult , input_html: { class: 'col-md-10' ,min:'1', :onChange => "total_customer();"}%>
- <%= f.input :male , input_html: { class: 'col-md-10' }%> + <%= f.input :male , input_html: { min:'1',class: 'col-md-10' }%>
- <%= f.input :female , input_html: { class: 'col-md-10' }%> + <%= f.input :female , input_html: { min:'1',class: 'col-md-10' }%>
- <%= f.input :total_customer, input_html: { :readonly => true, class: 'col-md-11'} %> - <%= f.input :local , input_html: { class: 'col-md-11' }%> + <%= f.input :total_customer, input_html: { :readonly => true,min:'1', class: 'col-md-11'} %> + <%= f.input :local , input_html: { min:'1',class: 'col-md-11' }%>
Foreigner