{% load static i18n %} {% load widget_tweaks %}
{% trans "Schedule New Onsite Interview" %} for **{{ candidate.name }}**

{% trans "Job" %}: {{ job.title }}

{% trans "Location Type" %}: {% trans "Onsite" %}

{# The action_url is passed from the view and points back to the POST handler #}
{% csrf_token %} {# --- HIDDEN FIELDS (application, job, status) --- #} {# These fields are crucial for creating the ScheduledInterview record #} {{ form.application }} {{ form.job }} {{ form.status }} {# --- TOPIC FIELD --- #}
{{ form.topic|add_class:"form-control"|attr:"required" }} {% for error in form.topic.errors %}
{{ error }}
{% endfor %}
{# --- ADDRESS FIELD --- #}
{{ form.physical_address|add_class:"form-control"|attr:"required" }} {% for error in form.physical_address.errors %}
{{ error }}
{% endfor %}
{# --- ROOM NUMBER FIELD --- #}
{{ form.room_number|add_class:"form-control" }} {% for error in form.room_number.errors %}
{{ error }}
{% endfor %}

{# --- START TIME FIELD --- #}
{# Assumes start_time widget is DateTimeInput with type='datetime-local' #} {{ form.start_time|add_class:"form-control"|attr:"required" }} {% for error in form.start_time.errors %}
{{ error }}
{% endfor %}
{# --- DURATION FIELD --- #}
{{ form.duration|add_class:"form-control"|attr:"required" }} {% for error in form.duration.errors %}
{{ error }}
{% endfor %}