<%= simple_form_for([:settings,@promotion]) do |f| %> <%= f.error_notification %>
<%= f.input :promo_code %>
Promo Start Date <%= f.date_field :promo_start_date, :placeholder => "From Date" , :class => "form-control"%>
Promo End Date <%= f.date_field :promo_end_date ,:placeholder => "To Date" , :class => "form-control"%>
<%= f.input :promo_start_hour %>
<%= f.input :promo_end_hour %>
<%= f.input :promo_day %>
<%= f.input :promo_type,input_html: { class: "" }, collection: %w{Quantity Net_off Net_price Percentage},:class => 'form-control' ,:label => "" %>
<%= f.input :original_product,collection: MenuItem.order("name desc"),input_html: { selected: 2 } %>
<%= f.input :min_qty %>
<%= f.button :submit %>
<% end %>