{% extends 'base.html' %} {% load static i18n %} {% block title %}{% trans "Hired Stage" %} {{ job.title }} - ATS{% endblock %} {% block customCSS %} {% endblock %} {% block content %}

{% trans "Hired Applications" %} - {{ job.title }}

{% trans "Successfully Hired:" %} {{ applications|length }}

{% trans "Congratulations!" %}

{% trans "These applications have successfully completed the hiring process and joined your team." %}

{% if job.source %}
{% trans "ERP Sync Status" %}
{% trans "Source:" %} {{ job.source.name }}
{% trans "Sync Status:" %} {{ job.source.get_sync_status_display }}
{% trans "Last Sync:" %} {% if job.source.last_sync_at %} {{ job.source.last_sync_at|date:"M d, Y H:i" }} {% else %} {% trans "Never" %} {% endif %}
{% trans "Hired Candidates:" %} {{ applications|length }}
{# Manual sync button commented out - sync is now automatic via Django signals #} {# #}
{% trans "ERP sync is automatically triggered when candidates are moved to 'Hired' stage. Use the 'Sync to Sources' button for manual re-syncs if needed." %}
{% else %}
{% trans "No ERP source configured for this job. Automatic sync is disabled." %}
{% endif %}
{% include 'jobs/partials/applicant_tracking.html' %}
{% comment %} {% if applications %}
{% csrf_token %} {# MODIFIED: Using d-flex for horizontal alignment and align-items-end to align everything based on the baseline of the button/select #}
{# Select Input Group #}
{# Button #} {# email button#}
{% endif %} {% endcomment %}
{% csrf_token %} {% comment %} {% endcomment %} {% for application in applications %} {% comment %} {% endcomment %} {% endfor %}
{% if applications %}
{% endif %}
{% trans "Name" %} {% trans "Contact" %} {% trans "Applied Position" %} {% trans "Hired Date" %} {% trans "Status" %} {% trans "Actions" %}
{{ application.name }}
{{ application.email }}
{{ application.phone }}
{{ job.title }}
{{ job.department }}
{% if application.offer_date %} {{ application.offer_date|date:"M d, Y" }} {% else %} -- {% endif %}
{% trans "Hired" %}
{% if not applications %} {% endif %}
{% endblock %} {% block customJS %} {% endblock %}