templates/inc/pages_navigation.html.twig line 1

Open in your IDE?
  1. <div class="back-btn pb-2">
  2.     {% if app.getRequest().attributes.get('_route') == 'user_edit' and harpe is defined and harpe is not null %}
  3.         <div class="float-right"><a href="{{ path('harpe_edit', {'id': harpe.getId(), 'usr': user.getToken()}) }}">Etape suivante <img src="{{ asset('img/east_red_24dp.svg') }}" alt="next"></a></div>
  4.     {% endif %}
  5.     {% if app.getRequest().attributes.get('_route') == 'harpe_edit' %}
  6.         {% if user is defined and user.getToken() != null %}<a href="{{ path('user_edit', {'usr': user.getToken()}) }}"><img src="{{ asset('img/west_red_24dp.svg') }}" alt="back"> Etape précédente</a>{% endif %}
  7.         {% if user is defined and user.getIban() is not empty %}
  8.             <div class="float-right"><a href="{{ path('infos_bancaires', {'usr': user.getToken()}) }}">Etape suivante <img src="{{ asset('img/east_red_24dp.svg') }}" alt="next"></a></div>
  9.         {% endif %}
  10.     {% endif %}
  11.     {% if app.getRequest().attributes.get('_route') == 'harpe_new' %}
  12.         {% if user is defined and user.getToken() != null %}<a href="{{ path('user_edit', {'usr': user.getToken()}) }}"><img src="{{ asset('img/west_red_24dp.svg') }}" alt="back"> Etape précédente</a>{% endif %}
  13.     {% endif %}
  14.     {% if app.getRequest().attributes.get('_route') == 'infos_bancaires' %}
  15.         {% if user is defined and user.getToken() != null and harpe is defined and harpe is not null %}<a href="{{ path('harpe_edit', {'id': harpe.getId(), 'usr': user.getToken()}) }}"><img src="{{ asset('img/west_red_24dp.svg') }}" alt="back"> Etape précédente</a>{% endif %}
  16.         {% if link_to_next_step is defined %}
  17.             <div class="float-right"><a href="{{ link_to_next_step }}">Etape suivante <img src="{{ asset('img/east_red_24dp.svg') }}" alt="next"></a></div>
  18.         {% endif %}
  19.     {% endif %}
  20.     {% if app.getRequest().attributes.get('_route') == 'user_signature' %}
  21.         <a href="{{ path('infos_bancaires', {'usr': user.getToken()}) }}"><img src="{{ asset('img/west_red_24dp.svg') }}" alt="back"> Etape précédente</a>
  22.         {% if link_to_next_step is defined %}
  23.             <div class="float-right"><a href="{{ link_to_next_step }}">Etape suivante <img src="{{ asset('img/east_red_24dp.svg') }}" alt="next"></a></div>
  24.         {% endif %}
  25.     {% endif %}
  26.     {% if app.getRequest().attributes.get('_route') == 'paiement' %}
  27.         <a href="{{ path('infos_bancaires', {'usr': user.getToken()}) }}"><img src="{{ asset('img/west_red_24dp.svg') }}" alt="back"> Etape précédente</a>
  28.     {% endif %}
  29. </div>