2016-09-16 11:36:48 -05:00
|
|
|
<%= render partial: 'shared/form_model_errors', locals: { obj: candidate } %>
|
|
|
|
|
2016-09-16 13:40:23 -05:00
|
|
|
<%= form_for candidate, url: action, method: :post do |form| %>
|
2017-03-20 10:57:50 -05:00
|
|
|
<div>
|
2016-09-16 11:36:48 -05:00
|
|
|
<%= form.label :name, "Candidate name" %>
|
|
|
|
<%= form.text_field :name %>
|
|
|
|
</div>
|
|
|
|
|
2017-03-20 10:57:50 -05:00
|
|
|
<div>
|
2016-09-16 11:36:48 -05:00
|
|
|
<%= form.label :email, "Candidate email" %>
|
|
|
|
<%= form.email_field :email %>
|
|
|
|
</div>
|
|
|
|
|
2017-03-20 10:57:50 -05:00
|
|
|
<div>
|
2016-09-16 11:36:48 -05:00
|
|
|
<%= form.label :experience, "Years of experience" %>
|
|
|
|
<%= form.select :experience, experience_options(candidate.experience), include_blank: false %>
|
|
|
|
</div>
|
|
|
|
|
2017-03-20 10:57:50 -05:00
|
|
|
<div>
|
2017-02-08 16:05:37 -06:00
|
|
|
<%= form.label :project, "Client or project" %>
|
|
|
|
<%= form.text_field :project %>
|
|
|
|
</div>
|
|
|
|
|
2017-03-20 10:57:50 -05:00
|
|
|
<div>
|
2017-02-27 11:11:28 -06:00
|
|
|
<%= form.radio_button :position, 'full-time' %>
|
|
|
|
<%= form.label "position_full-time", "Full-time" %>
|
|
|
|
|
|
|
|
<%= form.radio_button :position, 'contract' %>
|
|
|
|
<%= form.label :position_contract, "Contract" %>
|
|
|
|
</div>
|
|
|
|
|
2017-03-20 10:57:50 -05:00
|
|
|
<div>
|
2017-02-27 11:11:28 -06:00
|
|
|
<%= form.label :skill_needs, "Specific skill needs" %>
|
|
|
|
<%= form.text_field :skill_needs %>
|
|
|
|
</div>
|
|
|
|
|
2017-03-20 10:57:50 -05:00
|
|
|
<div>
|
2016-09-16 11:36:48 -05:00
|
|
|
<%= form.label :quiz_id, "Quiz" %>
|
|
|
|
<%= form.select :quiz_id, quiz_options(quizzes, candidate.quiz_id), include_blank: (quizzes.size > 1) %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= submit_tag %>
|
|
|
|
<% end %>
|