templates/app/subscription/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 Abonnement {% 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-child-input" class="col-sm-3 col-form-label">
{{ form_label(form.child) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.child) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.child) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(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(form.service) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.service) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.service) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(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(form.start_date) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.start_date) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.start_date) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(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(form.expire_date) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.expire_date) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.expire_date) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(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(form.quantity) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.quantity) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.quantity) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(form.quantity) }}</small>
</div>
</div>
</div>
#}
<div class="row mb-4">
<label for="horizontal-total-input" class="col-sm-3 col-form-label">
{% trans %} Total {% endtrans %}
</label>
<div class="col-sm-9">
<input
disabled
type="number"
id="subscription_type_basic_total"
name="subscription_type_basic[total]"
required="required"
class="form-control"
placeholder=""
value="0"
/>
</div>
</div>
<div class="row mb-4">
<label
for="horizontal-discount-input"
class="col-sm-3 col-form-label"
>
{{ form_label(form.discount) }}
</label>
<div class="col-sm-9">
{{ form_widget(form.discount) }}
<div class="text-danger" style="margin-top: 0.25rem">
<small>{{ form_errors(form.discount) }}</small>
</div>
<div class="text-info" style="margin-top: 0.25rem">
<small>{{ form_help(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(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>