mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
894 B
31 lines
894 B
{% load i18n compilacao_filters %}
|
|
|
|
{% if not node.dispositivos_filhos_set.exists %}
|
|
<a href="{% url view.get_url_this_view node.ta_id node.pk %}" class="btn btn-default {%if active%}btn-primary{%endif%}">
|
|
{{node|nomenclatura}}
|
|
</a>
|
|
{% else %}
|
|
|
|
<div class="cp-nav-parents btn-group btn-group-sm" role="group">
|
|
<a href="{% url view.get_url_this_view node.ta_id node.pk %}" class="btn btn-default {%if active%}btn-primary{%endif%}">
|
|
{{node|nomenclatura}}
|
|
<span class="caret"></span>
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
{%for parent in node.dispositivos_filhos_set.all %}
|
|
<a href="{% url view.get_url_this_view parent.ta_id parent.pk %}">
|
|
{{parent|nomenclatura}} {% if parent.dispositivo_subsequente_id %}({% trans "Alterado" %}){% endif %}
|
|
</a>
|
|
|
|
{%endfor %}
|
|
|
|
|
|
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|