<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">
{% if readonly is not defined %}
<div class="row mb-6">
<label class="col-lg-4 col-form-label fw-bold fs-6">Photo</label>
<div class="col-lg-8">
<div class="image-input image-input-outline" data-kt-image-input="true"
style="background-image: url({{ asset('assets/theme/media/avatars/blank.png') }})">
<div class="image-input-wrapper w-125px h-125px"
style="background-image: url({{ employee | avatar }})"></div>
<label class="btn btn-icon btn-circle btn-active-color-primary w-25px h-25px bg-body shadow"
data-kt-image-input-action="change" data-bs-toggle="tooltip"
title="Changer">
<i class="bi bi-pencil-fill fs-7"></i>
<input type="file" name="pictureFile" accept=".png, .jpg, .jpeg"/>
<input type="hidden" name="no_picture"/>
</label>
<span class="btn btn-icon btn-circle btn-active-color-primary w-25px h-25px bg-body shadow"
data-kt-image-input-action="cancel" data-bs-toggle="tooltip"
title="Annuler"><i class="bi bi-x fs-2"></i></span>
<span class="btn btn-icon btn-circle btn-active-color-primary w-25px h-25px bg-body shadow"
data-kt-image-input-action="remove" data-bs-toggle="tooltip"
title="Supprimer"><i class="bi bi-x fs-2"></i></span>
</div>
<div class="form-text">Allowed file types: png, jpg, jpeg.</div>
</div>
</div>
{% endif %}
{% 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>