<%= simple_form_for(@survey, :url => origami_create_surveys_path) do |f| %> <%= f.error_notification %>
<% if !@survey_data.nil? %> <%= f.input :child, input_html: { value: @survey_data.child, class: 'col-md-10' }%> <%= f.input :adult, input_html: { value: @survey_data.adult, class: 'col-md-10' }%> <%= f.input :male , input_html: { value: @survey_data.male, class: 'col-md-10' }%> <%= f.input :female , input_html: { value: @survey_data.female, class: 'col-md-10' }%> <%= f.input :total_customer, input_html: { value: @survey_data.total_customer, class: 'col-md-10'} %> <%= f.input :local , input_html: { value: @survey_data.local, class: 'col-md-10' }%>

<% else %> <%= f.input :child , input_html: { class: 'col-md-10' }%> <%= f.input :adult , input_html: { class: 'col-md-10' }%> <%= f.input :male , input_html: { class: 'col-md-10' }%> <%= f.input :female , input_html: { class: 'col-md-10' }%> <%= f.input :total_customer, input_html: { class: 'col-md-10'} %> <%= f.input :local , input_html: { class: 'col-md-10' }%>

<% end %> <%if !@dining_facility.nil?%> <%= f.input :dining_name, :as => :hidden, :input_html => { :value => @dining_facility.name } %> <%else%> <%= f.input :dining_name, :as => :hidden, :input_html => { :value => 0 } %> <%end%> <% if !@survey_data.nil? %> /> <% else %> <% end %> <%= f.input :created_by, :as => :hidden, :input_html => { :value => current_login_employee.name } %> <%= f.input :receipt_no, :as => :hidden, :input_html => { :value => @receipt_no} %> <%= f.input :total_amount, :as => :hidden, :input_html => { :value => @grand_total } %>
<%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect' %>
<% end %>
1
2
3
4
5
6
7
8
9
0
.
00
DEL
CLR