<div class="row">
<div class="col-xl-2"></div>
<div class="col-xl-8">
{{ form_start(form, {'method': 'POST', 'attr': {'class': 'form', 'enctype': 'multipart/form-data'}}) }}
<div class="card-body">
{% for key, field in form.children %}
{% if key != "_token" %}
<div class="row mb-6">
<label class="col-lg-3 col-form-label">{{ form_label(field) }}</label>
<div class="col-lg-6">
{{ form_widget(field) }}
</div>
</div>
{% endif %}
{% endfor %}
</div>
{% if readonly is not defined %}
<div class="card-footer">
<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-6">
<button type="submit"
class="btn btn-success mr-2">{{ button_label|default('Valider') }}</button>
<button type="reset" class="btn btn-secondary">Annuler</button>
</div>
</div>
</div>
{% endif %}
{{ form_end(form) }}
</div>
</div>