2016-07-31 16:34:35 -05:00
|
|
|
<main class="summary_tpl">
|
|
|
|
<h2 class="prft-heading">Quiz Review</h2>
|
|
|
|
<p>
|
|
|
|
<strong>Test ID:</strong> <%= @candidate.test_hash %><br />
|
|
|
|
<strong>Years of Experience:</strong> <%= @candidate.experience %><br />
|
|
|
|
<strong>Recruiter Email:</strong> <%= mail_to @candidate.recruiter.name, @candidate.recruiter.email %><br />
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<% @quiz.each do |question| %>
|
|
|
|
<%= form_for(:answer, url: post_summary_path, html:{id: 'summary-form'}) do |form| %>
|
|
|
|
<article class="answer-sec <%= question.input_type %>-type" data-qid="<%= question.question_id %>">
|
|
|
|
<div class="question-heading">
|
|
|
|
<div class="question-title">
|
|
|
|
<h3><%= question.question %></h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="answer-container">
|
2016-08-04 20:12:14 -05:00
|
|
|
<% if question.attachment.present? %>
|
|
|
|
<%= image_tag question.attachment %>
|
|
|
|
<% end %>
|
2016-07-31 16:34:35 -05:00
|
|
|
<fieldset disabled class="answer-block">
|
|
|
|
<%= hidden_field_tag 'answer[question_id]', question.question_id %>
|
2016-08-07 09:36:08 -05:00
|
|
|
<%= render partial: "quiz/#{question.input_type}", locals: {question: question, form: form} %>
|
2016-07-31 16:34:35 -05:00
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
<% end #form_tag %>
|
|
|
|
<% end #questions loop %>
|
|
|
|
|
|
|
|
<%= link_to(review_path, { class: 'secondary-btn' }) do %>
|
|
|
|
<button>Back to list</button>
|
|
|
|
<% end %>
|
|
|
|
</main>
|