<%= simple_form_for([:settings, @commissioner]) do |f| %>
<%= f.error_notification %>
<%= f.input :name %>
<%= f.label :emp_id, 'Employee' %>
<%= f.collection_select :emp_id, Employee.all.order('name asc'), :id, :name, {prompt: 'Select an Employee'}, {class: "form-control"} %>
<%= f.label :commission_id, 'Commission' %>
<%= f.select :commission_id, Commission.all.map {|l| [l.menu_item.name, l.id]}, {prompt: 'Select a Product'}, {class: 'form-control'} %>
<%= f.label :joined_date %>
<%= f.text_field :joined_date, {class: 'form-control datepicker', id: 'joined_date', readonly: true} %>
<%= f.label :resigned_date %>
<%= f.text_field :resigned_date, {class: 'form-control datepicker', id: 'resigned_date', readonly: true} %>
<%= f.input :is_active %>
<%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect' %>
<% end %>