{% extends "base.html.twig" %} {% block title %} {{parent()}} {{"fonctions"|trans}} {% endblock %} {% block body %}

{{"lst_fonctions"|trans}}

{% set lastGeneralf = null %} {% for i, fonction in fonctions %} {% set nextGeneralf = (fonctions[ i + 1] is defined) ? fonctions[ i + 1].generalf : null %} {% set currentGeneralf = fonction.generalf %} {% set isNewGeneralf = (currentGeneralf != lastGeneralf) %} {% if isNewGeneralf %} {% set lastGeneralf = currentGeneralf %}
{{ fonction.exemple }}
{% endif %} {% endfor %} {% include "fonction/modal.html.twig" %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}