templates/app/child/edit-modal.html.twig line 1
<div
id="edit-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(edit_form) }}
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="add-modal-label">
{% trans %} Modifier l'enfant {% endtrans %}
</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<input
type="hidden"
id="child_type_basic_edit_id"
name="child_type_basic[id]"
/>
<input
type="hidden"
name="child_type_basic[_token]"
value="{{ csrf_token('edit_child') }}"
/>
<div class="row mb-4">
<label
for="horizontal-firstname-input"
class="col-sm-3 col-form-label"
>
{{ form_label(edit_form.first_name) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.first_name) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.first_name) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_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(edit_form.last_name) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.last_name) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.last_name) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_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(edit_form.gender) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.gender) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.gender) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_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(edit_form.birth_date) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.birth_date) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.birth_date) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_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(edit_form.birth_place) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.birth_place) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.birth_place) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_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(edit_form.section) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.section) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.section) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_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(edit_form.blood) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.blood) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.blood) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_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(edit_form.photo) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.photo) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.photo) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_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>