inflection_table.html
1.27 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
<table class='inflection-table'>
<caption>{{ inflection_characteristic.entry }}</caption>
{% for row in table %}
<tr>
{% for cell in row %}
{% if cell.type != 'span' %}
{% if cell.type == 'empty' %}
<td class='blank' ></td>
{% else %}
{% if cell.type == 'forms' %}
<td rowspan="{{ cell.rowspan }}" colspan="{{ cell.colspan }}">
<ul class='form-list'>
{% for entry in cell.forms %}
<li>
{{ entry.form }}
<span class="qualifiers">
{% for q in entry.qualifiers %}
{{ q.label }}
{% endfor %}
</span>
</li>
{% endfor %}
</ul>
</td>
{% else %}
<td rowspan="{{ cell.rowspan }}" colspan="{{ cell.colspan }}"
class="{{ cell.css_class }}">
<ul class="form-list">
{% for label in cell.label %}
<li>
{{ label|safe }}
</li>
{% endfor %}
</ul>
</td>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</table>