Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

findword.html.twig 1.63 KB
Newer Older
1
2
{% import _self as my_macros %}

Arnaud Bey's avatar
Arnaud Bey committed
3
4
<div class="card">
    <div class="card-header">
Arnaud Bey's avatar
fix UI  
Arnaud Bey committed
5
        <span class="float-right">
Arnaud Bey's avatar
Arnaud Bey committed
6
            <span class="btn btn-outline-secondary btn-sm" onclick="gridHandler.generate()">
arnaudbey's avatar
add app  
arnaudbey committed
7
8
9
                <i class="fa fa-cogs" aria-hidden="true"></i>
                {{ 'generate_grid' | trans }}
            </span>
Arnaud Bey's avatar
Arnaud Bey committed
10
            <span class="btn btn-outline-secondary btn-sm" onclick="findwords.addWord()" >
arnaudbey's avatar
add app  
arnaudbey committed
11
12
13
                <i class="fa fa-plus" aria-hidden="true"></i>
                {{ 'add_findword' | trans }}
            </span>
Arnaud Bey's avatar
Arnaud Bey committed
14
            <span class='btn btn-primary btn-sm' onclick="objectives.save()">
Arnaud Bey's avatar
Arnaud Bey committed
15
                <i class="far fa-save" aria-hidden="true"></i>
Arnaud Bey's avatar
Arnaud Bey committed
16
17
                {{ 'save_objectives' | trans }}
            </span>
arnaudbey's avatar
add app  
arnaudbey committed
18
19
        </span>
    </div>
Arnaud Bey's avatar
Arnaud Bey committed
20
    <ul class="list-group list-group-flush" id="words" data-prototype="{{ my_macros.findWord_prototype(form.findWords.vars.prototype)|e }}">
arnaudbey's avatar
add app  
arnaudbey committed
21
    {% for findWord in form.findWords %}
22
	      {{ my_macros.findWord_prototype(findWord) }}
arnaudbey's avatar
add app  
arnaudbey committed
23
24
25
26
27
28
29
30
31
32
    {% endfor %}
    </ul>
</div>

{% macro findWord_prototype(findWord) %}
<li class="list-group-item findWord">
    {{ form_widget(findWord.inflection) }}
    {{ form_widget(findWord.hint) }}
    {{ form_label(findWord.lemmaEnough) }}
    {{ form_widget(findWord.lemmaEnough) }}
Arnaud Bey's avatar
fix UI  
Arnaud Bey committed
33
    <span class="float-right">
Arnaud Bey's avatar
Arnaud Bey committed
34
        <span class="btn btn-sm btn-outline-secondary disabled">
arnaudbey's avatar
add app  
arnaudbey committed
35
36
            <i class="fa fa-wikipedia-w" aria-hidden="true"></i>
        </span>
Arnaud Bey's avatar
Arnaud Bey committed
37
        <span onclick="objectives.remove(this);" class="btn btn-sm btn-danger">
arnaudbey's avatar
add app  
arnaudbey committed
38
39
40
41
42
            <i class="fa fa-times" aria-hidden="true"></i>
        </span>
    </span>
</li>
{% endmacro %}