Blame view

dictionary/templates/inflection_table.html 2.31 KB
janek37 authored
1
<table class="inflection-table">
janek37 authored
2
3
4
5
6
7
8
9
    {% if tables and tables|length > 1 %}
        <caption>
            {{ inflection_characteristic.symbol }}: {{ patterns|join:" / " }}
        </caption>
    {% endif %}
    {% for row in table %}
        <tr>
            {% for cell in row %}
janek37 authored
10
11
12
                {% if cell.type != "span" %}
                    {% if cell.type == "empty" %}
                        <td class="empty"></td>
janek37 authored
13
                    {% else %}
janek37 authored
14
                        {% if cell.type == "forms" %}
janek37 authored
15
                            <td rowspan="{{ cell.rowspan }}"
janek37 authored
16
17
                                colspan="{{ cell.colspan }}"
                                {% if cell.colspan > 1 %}class="data-c"{% endif %}>
janek37 authored
18
                                <ul class="form-list">
janek37 authored
19
20
                                    {% for entry in cell.forms %}
                                        <li>
janek37 authored
21
                                            {{ entry.form|safe }}
janek37 authored
22
23
24
25
26
                                            <span class="qualifiers">
                                              {% for q in entry.qualifiers %}
                                                  {{ q.label }}
                                              {% endfor %}
                                            </span>
janek37 authored
27
28
29
30
31
32
33
                                        </li>
                                    {% endfor %}
                                </ul>
                            </td>
                        {% else %}
                            <td rowspan="{{ cell.rowspan }}"
                                colspan="{{ cell.colspan }}"
janek37 authored
34
35
36
                                {% if cell.colspan > 1 and cell.css_class == 'data' %}
                                class="data-c"
                                {% else %}class="{{ cell.css_class }}"{% endif %}>
janek37 authored
37
38
39
40
41
42
43
44
45
46
47
48
49
                                <ul class="form-list">
                                    {% for label in cell.label %}
                                        <li>
                                            {{ label|safe }}
                                        </li>
                                    {% endfor %}
                                </ul>
                            </td>
                        {% endif %}
                    {% endif %}
                {% endif %}
            {% endfor %}
        </tr>
janek37 authored
50
    {% endfor %}
janek37 authored
51
</table>