skill-assessment-app/app/views/admin/result/view.html.erb

67 lines
2.4 KiB
Plaintext
Raw Normal View History

2016-11-22 16:59:54 -06:00
<%
content_for :title, "Quiz Review - Skills Assessment Admin"
%>
2017-02-10 15:46:43 -06:00
<div class="summary_tpl">
<div class="admin-review">
<h2 class="prft-heading">Quiz Review</h2>
2016-11-18 17:43:24 -06:00
2017-02-10 15:46:43 -06:00
<div class="review_meta">
<div>
2017-03-02 16:13:08 -06:00
<% unless @candidate.pending? %>
<strong>Name:</strong> <%= @candidate.name %><br />
<% end %>
2017-02-10 15:46:43 -06:00
<strong>Test ID:</strong> <%= @candidate.test_hash %><br />
<strong>Years of Experience:</strong> <%= @candidate.experience %><br />
<strong>Client/Project:</strong> <%= @candidate.project %><br />
<strong>Position Type:</strong> <%= @candidate.position %><br />
<strong>Skill Needs:</strong> <%= @candidate.skill_needs %><br />
2017-02-10 15:46:43 -06:00
<strong>Recruiter Email:</strong> <%= mail_to @candidate.recruiter.name, @candidate.recruiter.email %><br />
</div>
2016-11-18 17:43:24 -06:00
</div>
2016-11-20 13:07:53 -06:00
2017-02-10 15:46:43 -06:00
<% @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>
2016-07-31 16:34:35 -05:00
2017-02-10 15:46:43 -06:00
<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>
2016-07-31 16:34:35 -05:00
</div>
2017-02-10 15:46:43 -06:00
</article>
<% end #form_tag %>
<% end #questions loop %>
2016-07-31 16:34:35 -05:00
2017-02-10 15:46:43 -06:00
<%= link_to(admin_results_path, { class: 'secondary-btn' }) do %>
<button>Back to list</button>
<% end %>
</div>
2016-07-31 16:34:35 -05:00
2017-02-10 15:46:43 -06:00
<div class="review-comments">
<div>
<h2 class="prft-heading">Voting</h2>
<div class="review_meta">
<div><%= render partial: 'voting' %></div>
</div>
</div>
<div>
2017-03-07 16:35:59 -06:00
<h2 id="comment-header" class="prft-heading">Comments</h2>
<% if policy(QuizComment).new? %>
<%= render partial: 'comment_form', locals: {comment: @comment, test_hash: @candidate.test_hash } %>
<% end %>
2017-03-07 16:35:59 -06:00
<%= render partial: 'comment', collection: @comments, locals: { test_hash: @candidate.test_hash } %>
<a href="#comment-header">Back to top</a>
</div>
2017-02-10 15:46:43 -06:00
</div>
</div>