54 lines
1.9 KiB
Plaintext
54 lines
1.9 KiB
Plaintext
<%
|
|
content_for :title, "Quiz Review - Skills Assessment Admin"
|
|
%>
|
|
|
|
<div class="summary_tpl">
|
|
<div class="admin-review">
|
|
<h2 class="prft-heading">Quiz Review</h2>
|
|
|
|
<div class="review_meta">
|
|
<div>
|
|
<strong>Test ID:</strong> <%= @candidate.test_hash %><br />
|
|
<strong>Years of Experience:</strong> <%= @candidate.experience %><br />
|
|
<strong>Client/Project:</strong> <%= @candidate.project %><br />
|
|
<strong>Recruiter Email:</strong> <%= mail_to @candidate.recruiter.name, @candidate.recruiter.email %><br />
|
|
</div>
|
|
|
|
<div><%= render partial: 'voting' %></div>
|
|
</div>
|
|
|
|
<% @quiz.each do |question| %>
|
|
<%= form_for(:answer, url: '#never-post', 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">
|
|
<% if question.attachment.present? %>
|
|
<%= image_tag question.attachment %>
|
|
<% end %>
|
|
<fieldset disabled class="answer-block">
|
|
<%= render partial: "quiz/#{question.input_type}", locals: {question: question, answer: question.answer, form: form} %>
|
|
</fieldset>
|
|
</div>
|
|
</article>
|
|
<% end #form_tag %>
|
|
<% end #questions loop %>
|
|
|
|
<%= link_to(admin_results_path, { class: 'secondary-btn' }) do %>
|
|
<button>Back to list</button>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="review-comments">
|
|
<h2 class="prft-heading">Comments</h2>
|
|
<%= render partial: 'comment', collection: @comments, locals: { test_hash: @candidate.test_hash } %>
|
|
<% if policy(QuizComment).new? %>
|
|
<%= render partial: 'comment_form', locals: {comment: @comment, test_hash: @candidate.test_hash } %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|