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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{% if from is not defined or from != 'single' %}
  <h1 class="display-4">{{(fonction.label ~ "_complet")|trans}}</h1>
  <h2 class="display-5">{{(fonction.label ~ "_desc")|trans}}</h1>
  <div class="mt-4 mb-4">
    <mark class="p-2">
     <i>{{fonction.exemple}}</i>
    </mark>
  </div>
{% endif %}

{% if entries is not empty %}
<div class="accordion">
  <div class="card">
    <div class="card-header">
      <h2 class="mb-0">
        <button class="btn btn-link btn-block text-left" type="button" data-toggle="collapse" data-target="#collapseEntries" aria-expanded="true">
          {{"lst_words"|trans}} ({{entries|length}})
        </button>
      </h2>
    </div>
    <div id="collapseEntries" class="collapse show">
      <div class="card-body">
          <div class='colonnes-2' id='entries'>
          {% for entry in entries %}
            <div data-id="{{entry.id}}" class="entry listeentry">
              <a target="_blank" class="itemColonnes" href="{{ path("lexicalentry_display", {'id': entry.id}) }}">
                {{entry.lemma.value}}
              </a>
              ({{entry.meaning}})
              <span class="badge badge-sm badge-inverted-secondary entry-popover" role="button" data-entry="{{entry.id}}" tabindex="0" data-trigger="focus" data-html=true data-toggle="popover" title="{{"examples"|trans}}" data-content="...">?</span>
            </div>
          {% endfor %}
          </div>
      </div>
    </div>
  </div>
</div>
{% endif %}

{% if collocations is not empty %}
<div class="accordion">
  <div class="card">
    <div class="card-header">
      <h2 class="mb-0">
        <button class="btn btn-link btn-block text-left" type="button" data-toggle="collapse" data-target="#collapseCollocations" aria-expanded="true">
          {{"collocations"|trans}} ({{collocations|length}})
        </button>
      </h2>
    </div>
    <div id="collapseCollocations" class="collapse show">
      <div class="card-body">
          <div class='colonnes-2' id='collocations'>
          {% for collocation in collocations %}
            <div data-id="{{collocation.id}}" class="entry listecollocation">
              <a target="_blank" class="itemColonnes" href="{{ path("collocation_display", {'id': collocation.id}) }}">
                {{collocation.complement|raw}}
              </a>
              <span class="badge badge-sm badge-inverted-secondary collocation-popover" role="button" data-collocation="{{collocation.id}}" tabindex="0" data-trigger="focus" data-html=true data-toggle="popover" title="{{"examples"|trans}}" data-content="...">?</span>
            </div>
          {% endfor %}
          </div>
      </div>
    </div>
  </div>
</div>
{% endif %}

{% if routines is not empty %}
<div class="accordion">
  <div class="card">
    <div class="card-header">
      <h2 class="mb-0">
        <button class="btn btn-link btn-block text-left" type="button" data-toggle="collapse" data-target="#collapseRoutines" aria-expanded="true">
          {{"routines"|trans}} ({{routines|length}})
        </button>
      </h2>
    </div>
    <div id="collapseRoutines" class="collapse show">
      <div class="card-body">
          <div class='colonnes-2' id='routines'>
          {% for routine in routines %}
            <div data-id="{{routine.id}}" class="entry listeroutine">
              <a target="_blank" class="itemColonnes" href="{{ path("routine_display", {'id': routine.id}) }}">
                  {{ routine.realisation|replace({'&': "<br/>"})|raw }}
              </a>
              <span class="badge badge-sm badge-inverted-secondary routine-popover" role="button" data-routine="{{routine.id}}" tabindex="0" data-trigger="focus" data-html=true data-toggle="popover" title="{{"examples"|trans}}" data-content="...">?</span>
            </div>
          {% endfor %}
          </div>
      </div>
    </div>
  </div>
</div>
{% endif %}