2016-07-31 16:34:35 -05:00
|
|
|
<main class="summary_tpl">
|
|
|
|
<h2 class="prft-heading">Quiz Review</h2>
|
2016-11-18 17:43:24 -06:00
|
|
|
|
|
|
|
<div class="review_meta">
|
|
|
|
<div>
|
|
|
|
<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 />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="review_meta__votes">
|
|
|
|
<strong>Votes: </strong>
|
|
|
|
<%= link_to '#cast-vote-up', remote: true do %>
|
|
|
|
Yea (<%= @candidate.votes.yea.count %>)
|
|
|
|
<% end %>
|
|
|
|
<%= link_to '#cast-vote-down', remote: true do %>
|
|
|
|
Nay (<%= @candidate.votes.nay.count %>)
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="review_meta__vetos">
|
|
|
|
<strong>Manager Vetos: </strong>
|
|
|
|
<%= link_to '#request', remote: true do %>
|
|
|
|
Request Interview
|
|
|
|
<% end %>
|
|
|
|
<%= link_to '#decline', remote: true do %>
|
|
|
|
Decline Interview
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-07-31 16:34:35 -05:00
|
|
|
|
|
|
|
<% @quiz.each do |question| %>
|
2016-08-09 23:17:35 -05:00
|
|
|
<%= form_for(:answer, url: '#never-post', html:{id: 'summary-form'}) do |form| %>
|
2016-07-31 16:34:35 -05:00
|
|
|
<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">
|
2016-08-08 17:08:20 -05:00
|
|
|
<%= render partial: "quiz/#{question.input_type}", locals: {question: question, answer: question.answer, form: form} %>
|
2016-07-31 16:34:35 -05:00
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
<% end #form_tag %>
|
|
|
|
<% end #questions loop %>
|
|
|
|
|
2016-09-22 14:19:44 -05:00
|
|
|
<%= link_to(admin_results_path, { class: 'secondary-btn' }) do %>
|
2016-07-31 16:34:35 -05:00
|
|
|
<button>Back to list</button>
|
|
|
|
<% end %>
|
|
|
|
</main>
|