- <%= 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' }%>