-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhorarios_semana_list.html
42 lines (42 loc) · 1.27 KB
/
horarios_semana_list.html
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
<table class="GridClear">
{% for dia in dias %}
{% if (loop.first) or (loop.index0 == 3) %} <tr> {% endif %}
<td style="vertical-align: top;{% if dia.is_today %}box-shadow: 1px 1px 5px 0px #CCC;background-color: rgba(226, 226, 226, 0.14);{% endif %}">
<table id="TABLE3" class="GridClear" style="display: inline-block;">
{% if dia.horarios.length > 0 %}
<thead>
<tr>
<th colspan="3" style="font-size: 10pt;">{{ dia.nome }}</th>
</tr>
<tr>
<th class="GridClearTitle">Horário</th>
<th class="GridClearTitle">Disciplina</th>
</tr>
</thead>
<tbody>
{% for horario in dia.horarios %}
<tr data-horario-sigla="{{ horario.disciplina.sigla }}" class="GridClear">
<td>{{ horario.inicio_raw }} até {{ horario.final_raw }}</td>
<td>
<span title="{{ horario.disciplina.nome }} com {{ horario.disciplina.professor }}">
{{ horario.disciplina.sigla }}
</span>
</td>
</tr>
{% endfor %}
</tbody>
{% else %}
<thead>
<tr>
<th style="font-size: 10pt;">{{ dia.nome }}</th>
</tr>
<tr>
<th class="GridClearTitle centered">Não há aula nesse dia.</th>
</tr>
</thead>
{% endif %}
</table>
</td>
{% if (loop.index0 == 2) or (loop.last) %} </tr> {% endif %}
{% endfor %}
</table>