ATS/templates/recruitment/partials/interview-results.html
2026-02-01 19:47:32 +03:00

24 lines
1.2 KiB
HTML

{% load i18n %}
<td class="px-4 py-3 text-center border-b border-gray-200" id="interview-result-{{ application.pk }}">
{% if not application.interview_status %}
<button type="button"
class="px-3 py-1.5 bg-yellow-400 hover:bg-yellow-500 text-yellow-900 rounded-lg transition text-xs font-medium"
onclick="openCandidateModal('{% url 'update_application_status' job.slug application.slug 'interview' 'passed' %}')"
title="{% trans 'Add Result' %}">
<i data-lucide="plus" class="w-3 h-3"></i>
</button>
{% else %}
<button type="button"
class="px-3 py-1.5 {% if application.interview_status == 'Passed' %}bg-green-500 hover:bg-green-600 text-white{% else %}bg-red-500 hover:bg-red-600 text-white{% endif %} rounded-lg transition text-xs font-medium"
onclick="openCandidateModal('{% url 'update_application_status' job.slug application.slug 'interview' 'passed' %}')"
title="{% trans 'Update Result' %}">
{{ application.interview_status }}
</button>
{% endif %}
</td>
<script>
if (typeof lucide !== 'undefined') {
lucide.createIcons();
}
</script>