{% extends 'base.html' %} {% load static i18n %} {% block title %}{{ agency.name }} - {% trans "Agency Details" %} - ATS{% endblock %} {% block customCSS %} {% endblock %} {% block content %}

{{ agency.name }}

{% trans "Hiring Agency Details and Application Management" %}

{% trans "All Assignments" %} {% trans "Assign job" %} {% trans "Edit Agency" %} {% trans "Back to Agencies" %}

{{ agency.name }}

{% if agency.contact_person %}

{% trans "Contact:" %} {{ agency.contact_person }}

{% endif %} {% if agency.email %}

{{ agency.email }}

{% endif %}
{% if agency.website %} {% trans "Website" %} {% endif %} {% if agency.email %} {% trans "Email" %} {% endif %}
{% trans "Contact Information" %}
{% if agency.phone %}
{% trans "Phone" %}
{{ agency.phone }}
{% endif %} {% if agency.email %}
{% trans "Email" %}
{{ agency.email }}
{% endif %} {% if agency.website %}
{% trans "Website" %}
{% endif %}
{% trans "Location Information" %}
{% if agency.address %}
{% trans "Address" %}
{{ agency.address }}
{% endif %} {% if agency.city %}
{% trans "City" %}
{{ agency.city }}
{% endif %} {% if agency.country %}
{% trans "Country" %}
{{ agency.get_country_display }}
{% endif %}
{% if agency.description %}
{% trans "Description" %}

{{ agency.description|linebreaks }}

{% endif %} {% if generated_password and request.user.is_staff %}
{% trans "Agency Login Information" %}
{% trans "Username" %}
{{ agency.user.username }}
{% trans "Generated Password" %}
{{ generated_password }}
{% endif %}
{% if applications %} {% for application in applications %}
{{ application.name }}
{{ application.email }} {% if application.phone %} {{ application.phone }} {% endif %} {{ application.job.title}}
{{ application.get_stage_display }}
{{ application.created_at|date:"M d, Y" }}
{% endfor %} {% else %}
{% trans "No applications yet" %}

{% trans "This agency hasn't submitted any applications yet." %}

{% endif %}
{% comment %} NOTE: You will need to pass an 'assigned_jobs' list from your Django view context to populate this section. {% endcomment %} {% if job_assignments %} {% for assignment in job_assignments%}
{{ assignment.job.get_location_display }} {% if assessment.job.department %} {{ assignment.job.department|default:"" }} {% endif %}
{% trans "Assigned" %}
{% trans "Assigned On:" %} {{ assignment.created_at|date:"M d, Y" }}
{% endfor %} {% else %}
{% trans "No jobs assigned" %}

{% trans "There are no open job assignments for this agency." %}

{% trans "Assign New Job" %}
{% endif %}
{% trans "Application Statistics" %}
{{ total_applications }}
{% trans "Total" %}
{{ active_applications }}
{% trans "Active" %}
{{ hired_applications }}
{% trans "Hired" %}
{{ rejected_applications }}
{% trans "Rejected" %}
{% trans "Agency Information" %}

{% trans "Created:" %}
{{ agency.created_at|date:"F d, Y" }}

{% trans "Last Updated:" %}
{{ agency.updated_at|date:"F d, Y" }}

{% trans "Agency ID:" %}
{{ agency.slug }}

{% endblock %}