expression_info.html 1.8 KB
<div class="title">Znaczenia:</div>

{% for meaning in meanings %}
{% if meaning.meaning.wikilink %}
<br><strong>Wikipedia:</strong> <a href="{{ meaning.meaning.wikilink }}">{{ meaning.meaning.wikilink }}</a>
{% endif %}
<br><strong>Dziedzina:</strong> {% for domain in meaning.meaning.domains.all %}{% if forloop.first %}{{ domain.name }}{% else %}; {{ domain.name }}{% endif %}{% endfor %}

{% if meaning.meaning.status %}
<br><strong>Status:</strong> <span style="color:{{ meaning.status.display_color }}">{{ meaning.meaning.status.name }}</span>
<button type="button" onclick="editMeaning({{ meaning.meaning.pk }})">Edytuj</button>
{% else %}
<br><strong>Status:</strong> <span style="color:{{ meaning.status.display_color }}">{{ meaning.meaning.status.name }}</span>
<button type="button" onclick="editMeaning({{ meaning.meaning.pk }})">Dodaj</button>
{% endif %}
<table id="selExpressions" class="display dataTable" cellspacing="0" width="100%" role="grid" aria-describedby="expressions_info" style="width: 100%;">
<thead>
    <tr role="row"><th rowspan="1" colspan="1">Wyrażenie</th><th rowspan="1" colspan="1">Źródło</th></tr>
</thead>
<tbody>
{% for expr in meaning.orig_expressions %}
    {% if not expr.main_expression %}
    <tr role="row" class="{% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}">
        <td class="sorting_1"><a href="{{ expr.link.exact_link }}">{{ expr.text }}</a></td>
        <td><a href="{{ expr.link.source.url }}">{{ expr.link.source.name }}</a></td>
    </tr>
    {% endif %}
{% endfor %}
{% for expr in meaning.gen_expressions %}
    <tr role="row" class="{% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}">
        <td class="sorting_1"><a href="#">{{ expr|upper }}</a></td>
        <td><a href="#">AUTO</a></td>
    </tr>
{% endfor %}
</tbody>
</table>
{% endfor %}