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

29 lines
921 B
Plaintext
Raw Normal View History

2016-09-22 16:29:19 -05:00
<%
content_for :section_title, "Completed Tests"
2016-11-22 16:59:54 -06:00
content_for :title, "Quiz Results - Skills Assessment Admin"
2016-09-22 16:29:19 -05:00
%>
2017-03-20 10:57:50 -05:00
<table cellspacing="0" cellpadding="0">
<tr>
<th><%= sortable "test_hash", "Test ID" %></th>
<th><%= sortable "name" %></th>
<th><%= sortable "project", "Client/Project" %></th>
<th>Recruiter</th>
<th><%= sortable "completed_at", "Submitted on" %></th>
<th>Interview?</th>
</tr>
<% @candidates.each do |candidate| %>
2016-07-31 16:34:35 -05:00
<tr>
2017-03-20 10:57:50 -05:00
<td><%= link_to candidate.test_hash, admin_result_path(candidate.test_hash) %></td>
<td><%= candidate.name if !candidate.pending? %></td>
<td><%= candidate.project %></td>
<td><%= mail_to(candidate.recruiter.email) %></td>
<td><%= candidate.completed_at.strftime('%D') unless candidate.completed_at.nil? %></td>
<td><%= candidate.interview? %></td>
2016-07-31 16:34:35 -05:00
</tr>
2017-03-20 10:57:50 -05:00
<% end %>
</table>
2016-07-31 16:34:35 -05:00
2017-03-20 10:57:50 -05:00
<%= paginate @candidates %>