2016-07-31 09:56:02 -05:00
|
|
|
<main class="summary_tpl">
|
|
|
|
<h1>Candidates</h1>
|
|
|
|
|
2016-07-31 16:34:35 -05:00
|
|
|
<%= link_to(new_candidate_path, { class: 'secondary-btn' }) do %>
|
|
|
|
<button>Create New Candidate</button>
|
|
|
|
<% end %>
|
2016-07-31 09:56:02 -05:00
|
|
|
|
|
|
|
<table cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<th>Candidate</th>
|
2016-08-05 14:13:45 -05:00
|
|
|
<th>Test ID</th>
|
2016-07-31 09:56:02 -05:00
|
|
|
<th>Email</th>
|
|
|
|
<th>Experience</th>
|
2016-08-12 12:44:19 -05:00
|
|
|
<th>Progress</th>
|
|
|
|
<th>Completed</th>
|
|
|
|
<th>Reminded</th>
|
2016-07-31 09:56:02 -05:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% @candidates.each do |candidate| %>
|
|
|
|
<tr>
|
2016-09-16 11:36:48 -05:00
|
|
|
<td><%= link_to candidate.name, 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 />
|
|
|
|
<%= link_to "resend welcome email", resend_welcome_path(candidate.id), remote: true, class: '', data: { id: 'ajax-action' } %>
|
|
|
|
</td>
|
2016-07-31 09:56:02 -05:00
|
|
|
<td><%= candidate.experience %> years</td>
|
|
|
|
<td><%= candidate.status %></td>
|
2016-08-12 12:44:19 -05:00
|
|
|
<td><%= candidate.completed ? "Submitted" : "" %></td>
|
|
|
|
<td><%= candidate.reminded ? "Yes" : "" %></td>
|
2016-07-31 09:56:02 -05:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
</main>
|