templates/ExpressComplaint/parts/_actions.html.twig line 1

Open in your IDE?
  1. {% if size is not defined %}
  2.     {% set size = 'medium' %}
  3. {% endif %}
  4. {% set hasNext = app.request.get('_route') not in [
  5.     'express_complaint_x_params', 'express_complaint_x_steal_breaking', 'express_complaint_x_insurance_check',
  6.     'express_complaint_x_want_sinister_declaration', 'express_complaint_x_prices', 'express_complaint_x_resident_type'
  7.     ] %}
  8. <div class="row mt-3">
  9.     {% if returnUrl is defined %}
  10.     <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">
  11.         {% if app.request.get('_route') not in ['express_complaint_x_identity', 'express_complaint_x_identity_edit'] %}
  12.         <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">
  13.             {{ returnLabel is defined ? returnLabel : 'Étape précédente' }}
  14.         </a>
  15.         {% endif %}
  16.     </div>
  17.     {% endif %}
  18.     {% if hasNext or nextLabel is defined %}
  19.     <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">
  20.             {% if nextUrl is defined %}
  21.                 <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">
  22.                     {{ nextLabel is defined ? nextLabel : 'Étape suivante' }}
  23.                 </a>
  24.             {% else %}
  25.                 <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">
  26.                     {{ nextLabel is defined ? nextLabel : 'Étape suivante' }}
  27.                 </button>
  28.             {% endif %}
  29.     </div>
  30.     {% endif %}
  31. </div>