2016-09-22 16:29:19 -05:00
|
|
|
<%
|
|
|
|
content_for :section_title, "Candidates"
|
2016-11-22 16:59:54 -06:00
|
|
|
content_for :title, "Candidates - Skills Assessment Admin"
|
2016-09-22 16:29:19 -05:00
|
|
|
%>
|
2016-07-31 09:56:02 -05:00
|
|
|
<main class="summary_tpl">
|
2016-09-22 13:30:30 -05:00
|
|
|
<%= link_to(admin_new_candidate_path, { class: 'secondary-btn' }) do %>
|
2016-07-31 16:34:35 -05:00
|
|
|
<button>Create New Candidate</button>
|
2016-11-11 16:17:20 -06:00
|
|
|
<% end if policy(Candidate).create? %>
|
2016-07-31 09:56:02 -05:00
|
|
|
|
|
|
|
<table cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
2017-02-24 15:54:11 -06:00
|
|
|
<th><%= sortable "name", "Candidate" %></th>
|
|
|
|
<th><%= sortable "test_hash", "Test ID" %></th>
|
|
|
|
<th><%= sortable "email" %></th>
|
|
|
|
<th><%= sortable "experience" %></th>
|
2016-08-12 12:44:19 -05:00
|
|
|
<th>Progress</th>
|
2017-02-24 15:54:11 -06:00
|
|
|
<th><%= sortable "completed_at", "Completed" %></th>
|
|
|
|
<th><%= sortable "reminded" %></th>
|
2016-11-28 15:40:25 -06:00
|
|
|
<th>Interview?</th>
|
2016-07-31 09:56:02 -05:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% @candidates.each do |candidate| %>
|
|
|
|
<tr>
|
2016-09-22 13:30:30 -05:00
|
|
|
<td><%= link_to candidate.name, admin_edit_candidate_path(candidate.id) %></td>
|
2016-08-05 14:13:45 -05:00
|
|
|
<td><%= candidate.test_hash %></td>
|
2016-09-15 10:01:31 -05:00
|
|
|
<td>
|
|
|
|
<%= mail_to(candidate.email) %>
|
|
|
|
<br />
|
2016-09-22 13:30:30 -05:00
|
|
|
<%= link_to "resend welcome email", admin_resend_welcome_path(candidate.id), remote: true, class: '', data: { id: 'ajax-action' } %>
|
2016-09-15 10:01:31 -05:00
|
|
|
</td>
|
2016-07-31 09:56:02 -05:00
|
|
|
<td><%= candidate.experience %> years</td>
|
|
|
|
<td><%= candidate.status %></td>
|
2016-11-18 17:43:24 -06:00
|
|
|
<td><%= candidate.completed ? link_to("Submitted", admin_result_path(candidate.test_hash)) : "" %></td>
|
2016-08-12 12:44:19 -05:00
|
|
|
<td><%= candidate.reminded ? "Yes" : "" %></td>
|
2016-11-28 15:40:25 -06:00
|
|
|
<td><%= candidate.interview? %></td>
|
2016-07-31 09:56:02 -05:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
2017-02-24 15:54:11 -06:00
|
|
|
<%= paginate @candidates %>
|
2016-07-31 09:56:02 -05:00
|
|
|
</main>
|