{% extends 'layout/app.html.twig' %} {% block title %}Nouveau dossier{% endblock %} {% block page_title %}Nouveau dossier{% endblock %} {% macro document_row(doc) %}
{{ form_row(doc.label, {row_attr: {class: 'mb-0'}}) }} {{ form_row(doc.category, {row_attr: {class: 'mb-0'}}) }} {{ form_row(doc.file, {row_attr: {class: 'mb-0'}, attr: {class: 'block w-full text-sm text-slate-600 file:mr-3 file:rounded-lg file:border-0 file:bg-brand-50 file:px-3 file:py-2 file:text-brand-700'}}) }}
{% endmacro %} {% block content %} {{ form_start(form, {attr: { 'data-controller': 'passport-lookup', 'data-passport-lookup-url-value': path('app_client_lookup'), 'data-passport-lookup-prefix-value': form.vars.name, }}) }} {{ form_errors(form) }}

1. Client

Commencez par le numéro de passeport : un client déjà connu est retrouvé automatiquement.

{{ form_row(form.client.passportNumber) }}
{{ form_row(form.client.firstName) }} {{ form_row(form.client.lastName) }} {{ form_row(form.client.phone) }} {{ form_row(form.client.email) }} {{ form_row(form.client.birthDate) }} {{ form_row(form.client.nationality) }} {{ form_row(form.client.passportExpiresAt) }} {{ form_row(form.client.address) }}
{{ form_row(form.client.notes) }}

3. Pièces à joindre

Donnez un libellé à chaque document (PDF ou image, 10 Mo max).

{% for doc in form.documents %}{{ _self.document_row(doc) }}{% endfor %}

Aucune pièce pour l'instant. Vous pourrez aussi en ajouter depuis la fiche du dossier.

{% do form.documents.setRendered %}

2. Demande

{{ form_row(form.embassy) }} {{ form_row(form.visaType) }} {{ form_row(form.travelDate) }} {{ form_row(form.feeAmount) }} {{ form_row(form.notes) }} {% if form.agent is defined %} {{ form_row(form.agent) }} {% else %}

Le dossier sera affecté à un agent par le dispatcher.

{% endif %}
Annuler
{{ form_end(form) }} {% endblock %}