templates/app/payment/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 nouveau paiement {% 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-subscription-input"
class="col-sm-3 col-form-label"
>
{{ form_label(form.subscription) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.subscription) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.subscription) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.subscription) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label
for="horizontal-payed_by-input"
class="col-sm-3 col-form-label"
>
{{ form_label(form.payed_by) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.payed_by) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.payed_by) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.payed_by) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label for="horizontal-amount-input" class="col-sm-3 col-form-label">
{{ form_label(form.amount) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.amount) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.amount) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.amount) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label for="horizontal-date-input" class="col-sm-3 col-form-label">
{{ form_label(form.date) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.date) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.date) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.date) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label
for="horizontal-description-input"
class="col-sm-3 col-form-label"
>
{{ form_label(form.description) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.description) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.description) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.description) }}</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>