This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
pfwb_thesaurus/pfwb_thesaurus/templates/thesaurus/term_detail.html

80 lines
1.7 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% block content %}
<table>
<tr>
<td>
<div>
<h3>TG (Termes génériques)</h3>
{% if object.broader.count %}
<ul>
{% for term in object.broader.all %}
<li><a href="{% url 'term' pk=term.pk %}">{{term.term}}</a></li>
{% endfor %}
</ul>
{% else %}
<i>néant</i>
{% endif %}
</div>
</td>
</tr>
<tr>
<td><h2>{{object.term}}</h2>
<button data-term-id="{{object.tabellio_id}}" style="display: none">{% trans 'Select' %}</button>
{% if object.alternativeterm_set.count %}
<div>
<h3>Employé pour (équivalences)</h3>
<ul>
{% for alt in object.alternativeterm_set.all %}
<li>[{{alt.term}}]</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if object.historical_note %}
<div>
<p>{{ object.historical_note }}</p>
</div>
{% endif %}
</td>
<td>
<div>
<h3>TA (Termes associés — Voir aussi)</h3>
{% if object.related.count %}
<ul>
{% for term in object.related.all %}
<li><a href="{% url 'term' pk=term.pk %}">{{term.term}}</a></li>
{% endfor %}
</ul>
{% else %}
<i>néant</i>
{% endif %}
</div>
</td>
</tr>
<tr>
<td>
<div>
<h3>TS (Termes spécifiques)</h3>
{% if object.narrower.count %}
<ul>
{% for term in object.narrower.all %}
<li><a href="{% url 'term' pk=term.pk %}">{{term.term}}</a></li>
{% endfor %}
</ul>
{% else %}
<i>néant</i>
{% endif %}
</div>
</td>
</tr>
</table>
{% endblock %}