{% extends 'base.html.twig' %}

{% block title %}Créer un établissement{% endblock %}

{% block body %}
    <div class="container mt-4">
        <h1 class="mb-4">Créer un nouvel établissement</h1>

        {{ form_start(form) }}
            <div class="row">
                <div class="col-md-6">
                    {{ form_row(form.numero_uai) }}
                    {{ form_row(form.secteur) }}
                    {{ form_row(form.appellation_officielle) }}
                    {{ form_row(form.adresse) }}
                    {{ form_row(form.code_postal) }}
                    {{ form_row(form.commune) }}
                    {{ form_row(form.latitude) }}
                    {{ form_row(form.longitude) }}
                </div>
                <div class="col-md-6">
                    {{ form_row(form.nature_uai) }}
                    {{ form_row(form.nature_libe) }}
                    {{ form_row(form.etat_etablissement_libe) }}
                    {{ form_row(form.code_departement) }}
                    {{ form_row(form.code_region) }}
                    {{ form_row(form.code_academie) }}
                    {{ form_row(form.code_commune) }}
                    {{ form_row(form.departement) }}
                    {{ form_row(form.region) }}
                    {{ form_row(form.academie) }}
                    {{ form_row(form.type_contrat) }}
                    {{ form_row(form.libelle_type_contrat) }}
                    {{ form_row(form.code_ministere) }}
                    {{ form_row(form.libelle_ministere) }}
                    {{ form_row(form.date_ouverture) }}


                </div>
            </div>

            <div class="d-flex justify-content-end mt-4">
                <button type="submit" class="btn btn-primary">Créer</button>
            </div>
        {{ form_end(form) }}
    </div>
{% endblock %}
