inflection_tables.html 3.01 KB
{% load dictionary_extras %}
<div class="entry-article scheme{{ lexeme.part_of_speech.color_scheme }}">
    <h1>
        {{ lexeme.entry }}
        {{ lexeme|attribute:"zwrotność" }}
        {% if lexeme.pronunciation %}
            <span class="pronunciation">[{{ lexeme.pronunciation|safe }}]</span>
        {% endif %}
        {% if lexeme.gloss and lexeme.part_of_speech.symbol != 'skrs' %}
            <span class="gloss">{{ lexeme.gloss|safe }}</span>
        {% endif %}
    </h1>

    <p>
        {{ part_of_speech }}
        {% if lexeme.part_of_speech.symbol == 'v' %}
            {{ lexeme|attribute:"właściwy" }}
            {{ lexeme|attribute:"przechodniość" }}
        {% endif %}
        {% if lexeme.part_of_speech.symbol == 'skrs' %}
            {{ lexeme.gloss|safe }}
        {% endif %}
        <span class="qualifiers">
            {{ info.qualifiers|join:" " }}
            {% if info.commonness %}
                n. wł. {{ info.commonness|join:", " }}
            {% endif %}
        </span>
        {% if lexeme.note %}
            ◊ {{ lexeme.note|sgjp_markup }}
        {% endif %}
        <em>{{ lexeme.valence|sgjp_markup }}</em>
        <span class="sjpdor">
            {{ info.SJPDor|yesno:"[SJPDor.]," }}
        </span>
    </p>
    {% if lexeme|attribute:"rozwinięcie" %}
        <p>
            rozwinięcie: {{ lexeme|attribute:"rozwinięcie" }}
        </p>
    {% endif %}
    <p>
        {% if lexeme.part_of_speech.lexical_class_id == 'subst' %}
            {{ lexeme.lip_data.genders }}
        {% endif %}
        {{ lexeme|attribute:"aspekt" }}
        {% if tables|length == 1 %}
            {% if pattern_list|length == 1 %}
                {{ pattern_list.0.name }}
            {% else %}
                {% for p in pattern_list %}
                    <span class="highlight-pattern p{{ p.id }}" data-pattern="{{ p.id }}">{{ p.name }}</span>
                    {% if not forloop.last %}/{% endif %}
                {% endfor %}
            {% endif %}
        {% endif %}
    </p>

    <p class="separator"></p>

    <div class="inflection-tables">
        {% for gender, patterns, pronunciations, gender_qualifiers, table in tables %}
            <div class="inflection-table-container">
                {% include "inflection_table.html" %}
            </div>
        {% endfor %}
    </div>
    {% if cross_references %}
        <table class="cross-references">
            <tr>
                <th class="head" colspan="2">Odsyłacze</th>
            </tr>
            {% for cr in cross_references %}
                <tr>
                    <th>{{ cr.type.desc }}</th>
                    <td>
                        <span class="cr-link" id="cr{{ cr.to_lexeme.id }}">
                            {{ cr.to_lexeme.entry }}
                        </span>
                    </td>
                </tr>
            {% endfor %}
        </table>
    {% endif %}
    {% if lexeme.extended_note %}
        <p class="extended-note">
            {{ lexeme.extended_note|sgjp_markup }}
        </p>
    {% endif %}
</div>