Quiz Review

Test ID: <%= @candidate.test_hash %>
Years of Experience: <%= @candidate.experience %>
Recruiter Email: <%= mail_to @candidate.recruiter.name, @candidate.recruiter.email %>
Votes: <%= link_to admin_up_vote_path(test_hash: @candidate.test_hash), remote: true do %> Yea (<%= @candidate.votes.yea.count %>) <% end %> <%= link_to admin_down_vote_path(test_hash: @candidate.test_hash), remote: true do %> Nay (<%= @candidate.votes.nay.count %>) <% end %> (Your vote: <%= current_user.my_vote(@candidate) %>)
<% if current_user.acts_as_manager? %>
Manager Vetos: <%= link_to admin_approve_vote_path(test_hash: @candidate.test_hash), remote: true do %> <%= @candidate.approved? ? "Requested" : "Request Interview" %> <% end %> <%= link_to admin_decline_vote_path(test_hash: @candidate.test_hash), remote: true do %> <%= @candidate.declined? ? "Declined" : "Decline Interview" %> <% end %>
<% else %> Candidate Interview Status: <%= @candidate.review_status %> <% end %>
<% @quiz.each do |question| %> <%= form_for(:answer, url: '#never-post', html:{id: 'summary-form'}) do |form| %>

<%= question.question %>

<% if question.attachment.present? %> <%= image_tag question.attachment %> <% end %>
<%= render partial: "quiz/#{question.input_type}", locals: {question: question, answer: question.answer, form: form} %>
<% end #form_tag %> <% end #questions loop %> <%= link_to(admin_results_path, { class: 'secondary-btn' }) do %> <% end %>