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.
28 lines
823 B
28 lines
823 B
{% load i18n %}
|
|
{% load 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}}
|
|
</a>
|
|
{%endfor %}
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|