review-question.html
1.58 KB
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
{% autoescape %}
{% block question %}
<div class="card border-dark mb-3">
<h5 class="card-header text-white bg-dark">
{{ i+1 }}. {{ q['title'] }}
<div class="pull-right">
<small>Classificar </small>
{% if q['answer'] is not None %}
<i class="fa fa-check-square-o" aria-hidden="true"></i>
{% else %}
<i class="fa fa-square-o" aria-hidden="true"></i>
{% end %}
</div>
</h5>
<div class="card-body">
<p id="text">
{{ q['text'] }}
</p>
{% block answer %}{% end %}
{% if t['show_points'] %}
<p class="text-right">
<small>
(Cotação: {{ round(q['points'], 2) }})
</small>
</p>
{% end %}
</div> <!-- card-body -->
{% if t['state'] == 'FINISHED' %}
<div class="card-footer">
{% if q['grade'] > 0.99 %}
<p class="text-success">
<i class="fa fa-thumbs-o-up" aria-hidden="true"></i>
{{ round(q['grade'] * q['points'], 2) }}
pontos<br>
{{ q['comments'] }}
</p>
{% elif q['grade'] > 0.49 %}
<p class="text-warning">
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
{{ round(q['grade'] * q['points'], 2) }}
pontos<br>
{{ q['comments'] }}
</p>
{% else %}
<p class="text-danger">
<i class="fa fa-thumbs-o-down" aria-hidden="true"></i>
{{ round(q['grade'] * q['points'], 2) }}
pontos<br>
{{ q['comments'] }}
</p>
{% end %}
</div> <!-- card-footer -->
{% end %}
</div>
{% end %}