1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% extends "base.html.twig" %}
{% block title %} {{parent()}} {{"fonctions"|trans}} {% endblock %}

{% block body %}

<h1 class="display-5 mb-4">
    {{ (fonction.label ~ "_complet") | trans }}
</h1>

<div class="card mb-4">
    {% set vars = {
        'entries': fonction.lexicalEntries,
        'collocations': fonction.collocations,
        'routines': fonction.routines,
        'from': 'single'
    } %}
    {% include "fonction/elements.html.twig" with vars %}
</div>

{%  endblock %}

{% block javascripts %}
  {{ parent() }}
  <script src="{{asset("build/js/fonctions.js")}}"></script>
{% endblock %}