templates/app/child/add-modal.html.twig line 1
<div
id="add-modal"
class="modal fade"
tabindex="-1"
role="dialog"
aria-labelledby="add-modal-label"
aria-hidden="true"
data-bs-backdrop="static"
data-bs-keyboard="true"
>
<div class="modal-dialog modal-md">
{{ form_start(form) }}
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="add-modal-label">
{% trans %} Créer un nouvel Enfant {% endtrans %}
</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<div class="row mb-4">
<label
for="horizontal-firstname-input"
class="col-sm-3 col-form-label"
>
{{ form_label(form.first_name) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.first_name) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.first_name) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.first_name) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label
for="horizontal-firstname-input"
class="col-sm-3 col-form-label"
>
{{ form_label(form.last_name) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.last_name) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.last_name) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.last_name) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label
for="horizontal-firstname-input"
class="col-sm-3 col-form-label"
>
{{ form_label(form.gender) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.gender) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.gender) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.gender) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label
for="horizontal-firstname-input"
class="col-sm-3 col-form-label"
>
{{ form_label(form.birth_date) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.birth_date) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.birth_date) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.birth_date) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label
for="horizontal-firstname-input"
class="col-sm-3 col-form-label"
>
{{ form_label(form.birth_place) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.birth_place) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.birth_place) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.birth_place) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label for="horizontal-section-input" class="col-sm-3 col-form-label">
{{ form_label(form.section) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.section) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.section) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.section) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label
for="horizontal-firstname-input"
class="col-sm-3 col-form-label"
>
{{ form_label(form.blood) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.blood) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.blood) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.blood) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label
for="horizontal-firstname-input"
class="col-sm-3 col-form-label"
>
{{ form_label(form.photo) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.photo) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.photo) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.photo) }}</small>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary waves-effect"
data-bs-dismiss="modal"
>
{% trans %} Annuler {% endtrans %}
</button>
<button type="submit" class="btn btn-primary waves-effect waves-light">
{% trans %} Sauvegarder {% endtrans %}
</button>
</div>
</div>
{{ form_end(form) }}
</div>
</div>