{% extends 'base.html' %}
{% load crispy_forms_tags %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-lg-6 col-md-8">
        <div class="card shadow-lg border-0 rounded-lg mt-5">
            <div class="card-header bg-main-action text-white">
                <h3 class="text-center font-weight-light my-4">Set Interview Location</h3>
            </div>
            <div class="card-body">
                <form method="post" action="{% url 'confirm_schedule_interviews_view' job.slug %}" enctype="multipart/form-data">
                    {% csrf_token %}
                    
                    {# Renders the single 'location' field using the crispy filter #}
                    {{ form|crispy }} 
                    
                    <div class="d-flex align-items-center justify-content-between mt-4 mb-0">
                       
                        <a href="{% url 'list_meetings' %}" class="btn btn-secondary me-2">
                            <i class="fas fa-times me-1"></i> Close
                        </a>
                        
                     
                        <button type="submit" class="btn btn-primary">
                            <i class="fas fa-save me-1"></i> Save Location
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock content %}