44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
<%= render partial: 'shared/form_model_errors', locals: { obj: candidate } %>
|
|
|
|
<%= form_for candidate, url: action, method: :post do |form| %>
|
|
<div class="form-group">
|
|
<%= form.label :name, "Candidate name" %>
|
|
<%= form.text_field :name %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= form.label :email, "Candidate email" %>
|
|
<%= form.email_field :email %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= form.label :experience, "Years of experience" %>
|
|
<%= form.select :experience, experience_options(candidate.experience), include_blank: false %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= form.label :project, "Client or project" %>
|
|
<%= form.text_field :project %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= form.radio_button :position, 'full-time' %>
|
|
<%= form.label "position_full-time", "Full-time" %>
|
|
|
|
<%= form.radio_button :position, 'contract' %>
|
|
<%= form.label :position_contract, "Contract" %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= form.label :skill_needs, "Specific skill needs" %>
|
|
<%= form.text_field :skill_needs %>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<%= form.label :quiz_id, "Quiz" %>
|
|
<%= form.select :quiz_id, quiz_options(quizzes, candidate.quiz_id), include_blank: (quizzes.size > 1) %>
|
|
</div>
|
|
|
|
<%= submit_tag %>
|
|
<% end %>
|