{% extends 'base.html' %} {% load static i18n widget_tweaks %} {% block title %}{{ title }} - ATS{% endblock %} {% block customCSS %} {% endblock %} {% block content %}

{% trans "Create New Assignment" %}

{% trans "Assign a job to an external hiring agency" %}

{% trans "Back to Assignments" %}
{% csrf_token %}
{# Wrapper Div for styling consistency (Assumes agency is a SELECT field) #}
{{ form.agency|attr:'class:form-select' }}
{% if form.agency.errors %}
{% for error in form.agency.errors %}{{ error }}{% endfor %}
{% endif %}
{# Wrapper Div for styling consistency (Assumes job is a SELECT field) #}
{{ form.job|attr:'class:form-select' }}
{% if form.job.errors %}
{% for error in form.job.errors %}{{ error }}{% endfor %}
{% endif %}
{# Wrapper Div for styling consistency (Assumes max_candidates is an INPUT field) #}
{{ form.max_candidates|attr:'class:form-control' }}
{% if form.max_candidates.errors %}
{% for error in form.max_candidates.errors %}{{ error }}{% endfor %}
{% endif %} {% trans "Maximum number of candidates the agency can submit" %}
{# Wrapper Div for styling consistency (Assumes deadline_date is an INPUT field) #}
{{ form.deadline_date|attr:'class:form-control' }}
{% if form.deadline_date.errors %}
{% for error in form.deadline_date.errors %}{{ error }}{% endfor %}
{% endif %} {% trans "Date and time when submission period ends" %}
{# Wrapper Div for styling consistency (Assumes admin_notes is a TEXTAREA field) #}
{{ form.admin_notes|attr:'class:form-control' }}
{% if form.admin_notes.errors %}
{% for error in form.admin_notes.errors %}{{ error }}{% endfor %}
{% endif %} {% trans "Internal notes about this assignment (not visible to agency)" %}
{% trans "Cancel" %}
{% endblock %} {% block customJS %} {% endblock %}