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

50 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2016-11-22 16:59:54 -06:00
<%
content_for :title, "Quiz Review - Skills Assessment Admin"
%>
2017-03-20 10:57:50 -05:00
<div>
<h1>Quiz Review</h1>
2016-11-18 17:43:24 -06:00
2017-03-20 10:57:50 -05:00
<div>
<% unless @candidate.pending? %>
<strong>Name:</strong> <%= @candidate.name %><br />
<% end %>
<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 />
<strong>Recruiter Email:</strong> <%= mail_to @candidate.recruiter.name, @candidate.recruiter.email %><br />
</div>
2016-07-31 16:34:35 -05:00
2017-03-20 10:57:50 -05:00
<% @quiz.each do |question| %>
2017-05-01 16:17:41 -05:00
<%= form_for(:answer, url: '#never-post', html:{id: "summary-#{question.to_i}"}) do |form| %>
2017-03-20 10:57:50 -05:00
<h2><%= question.question %></h2>
<%= image_tag question.attachment if question.attachment.present? %>
2016-07-31 16:34:35 -05:00
2017-03-20 10:57:50 -05:00
<fieldset disabled>
2017-05-01 16:17:41 -05:00
<legend>Response</legend>
2017-03-20 10:57:50 -05:00
<%= render partial: "quiz/#{question.input_type}", locals: {question: question, answer: question.answer, form: form} %>
</fieldset>
2017-02-10 15:46:43 -06:00
<% end %>
2017-03-20 10:57:50 -05:00
<% end %>
2016-07-31 16:34:35 -05:00
2017-03-20 10:57:50 -05:00
<%= link_to("Back to list", admin_results_path, { class: "" }) %>
</div>
<div>
<div>
<h1>Voting</h1>
<div><%= render partial: 'voting' %></div>
</div>
2017-03-20 10:57:50 -05:00
<div>
<h1 id="comment-header">Comments</h1>
<% if policy(QuizComment).new? %>
<%= render partial: 'comment_form', locals: {comment: @comment, test_hash: @candidate.test_hash } %>
<% end %>
<%= render partial: 'comment', collection: @comments, locals: { test_hash: @candidate.test_hash } %>
<a href="#comment-header">Back to top</a>
2017-02-10 15:46:43 -06:00
</div>
</div>