<% content_for :section_title, "Candidates" content_for :title, "Candidates - Skills Assessment Admin" %>

Candidates

<%= link_to("Create New Candidate", admin_new_candidate_path, { class: "" }) if policy(Candidate).create? %> <% @candidates.each do |candidate| %> <% end %>
<%= sortable "name", "Candidate" %> <%= sortable "test_hash", "Test ID" %> <%= sortable "email" %> <%= sortable "experience" %> Progress <%= sortable "completed_at", "Completed" %> <%= sortable "reminded" %> Interview?
<%= link_to candidate.name, admin_edit_candidate_path(candidate.id) %> <%= candidate.test_hash %> <%= mail_to(candidate.email) %>
<%= link_to "resend welcome email", admin_resend_welcome_path(candidate.id), remote: true, class: '', data: { id: 'ajax-action' } %>
<%= candidate.experience %> years <%= candidate.status %> <%= candidate.completed ? link_to("Submitted", admin_result_path(candidate.test_hash)) : "" %> <%= candidate.reminded ? "Yes" : "" %> <%= candidate.interview? %>
<%= paginate @candidates %>