{% if size is not defined %}
{% set size = 'medium' %}
{% endif %}
{% set hasNext = app.request.get('_route') not in [
'express_complaint_x_params', 'express_complaint_x_steal_breaking', 'express_complaint_x_insurance_check',
'express_complaint_x_want_sinister_declaration', 'express_complaint_x_prices', 'express_complaint_x_resident_type'
] %}
<div class="row mt-3">
{% if returnUrl is defined %}
<div class="{{ hasNext or nextLabel is defined ? 'col-6' : 'col-12 col-md-6 justify-content-center justify-content-md-start ' }} mt-3 prev-btn {{ breadcrumbComplaintExpress is defined ? 'd-flex ' : 'd-none d-md-flex' }} px-0">
{% if app.request.get('_route') not in ['express_complaint_x_identity', 'express_complaint_x_identity_edit'] %}
<a href="{{ returnUrl }}" class="btn-grey submit-complaint-presentation fs-16 {{ breadcrumbComplaintExpress is defined ? 'd-flex ' : 'd-none d-md-flex' }} w-600 {{ size }} mb-30px mt-10px px-5">
{{ returnLabel is defined ? returnLabel : 'Étape précédente' }}
</a>
{% endif %}
</div>
{% endif %}
{% if hasNext or nextLabel is defined %}
<div class="{{ returnUrl is defined ? (breadcrumbComplaintExpress is defined ? 'col-6 justify-content-end' : 'col-md-6 col-12 justify-content-center justify-content-md-end') : 'col-12 justify-content-center justify-content-md-end' }} mt-3 d-flex next-btn px-0">
{% if nextUrl is defined %}
<a href="{{ nextUrl }}" class="justify-content-center fs-16 font-bold btn-sm mx-0 btn btn-blue send-btn fw-600 {{ size }} mb-30px mt-10px px-5">
{{ nextLabel is defined ? nextLabel : 'Étape suivante' }}
</a>
{% else %}
<button type="submit" class="justify-content-center fs-16 font-bold btn-sm mx-0 btn btn-blue send-btn fw-600 {{ size }} mb-30px mt-10px px-5">
{{ nextLabel is defined ? nextLabel : 'Étape suivante' }}
</button>
{% endif %}
</div>
{% endif %}
</div>