templates/app/subscription/edit-modal.html.twig line 1
<div
id="edit-modal"
class="modal fade"
tabindex="-1"
role="dialog"
aria-labelledby="edit-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="edit-modal-label">
{% trans %} Modifier l'abonnement {% 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="subscription_type_basic_edit_id"
name="subscription_type_basic[id]"
/>
<input
type="hidden"
name="subscription_type_basic[_token]"
value="{{ csrf_token('edit_subscription') }}"
/>
<div class="row mb-4">
<label for="horizontal-child-input" class="col-sm-3 col-form-label">
{{ form_label(edit_form.child) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.child) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.child) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_form.child) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label for="horizontal-service-input" class="col-sm-3 col-form-label">
{{ form_label(edit_form.service) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.service) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.service) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_form.service) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label
for="horizontal-start_date-input"
class="col-sm-3 col-form-label"
>
{{ form_label(edit_form.start_date) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.start_date) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.start_date) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_form.start_date) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label
for="horizontal-expire_date-input"
class="col-sm-3 col-form-label"
>
{{ form_label(edit_form.expire_date) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.expire_date) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.expire_date) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_form.expire_date) }}</small>
</div>
</div>
</div>
{#
<div class="row mb-4">
<label
for="horizontal-quantity-input"
class="col-sm-3 col-form-label"
>
{{ form_label(edit_form.quantity) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.quantity) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.quantity) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_form.quantity) }}</small>
</div>
</div>
</div>
#}
<div class="row mb-4">
<label
for="horizontal-discount-input"
class="col-sm-3 col-form-label"
>
{{ form_label(edit_form.discount) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.discount) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.discount) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_form.discount) }}</small>
</div>
</div>
</div>
<div class="row mb-4">
<label
for="horizontal-description-input"
class="col-sm-3 col-form-label"
>
{{ form_label(edit_form.description) }}
</label>
<div class="col-sm-9">
{{ form_widget(edit_form.description) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(edit_form.description) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(edit_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>