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.
159 lines
8.4 KiB
159 lines
8.4 KiB
{% load i18n %}
|
|
{% load compilacao_filters %}
|
|
{% load common_tags %}
|
|
|
|
{% dispositivotree dispositivos_list %}
|
|
<div class="dpt" id="id{{node.dpt.id}}" pk="{{node.dpt.pk}}" ordem="{{node.dpt.ordem}}" name="{{node.dpt.pk}}" title="{{node.dpt.pk}} - {{node.dpt.ordem}}" formtype="get_form_base">
|
|
<div class="dpt-actions">
|
|
</div>
|
|
<div class="dpt-actions-fixed">
|
|
<a class="btn-dpt-edit btn btn-default btn-sm" pk="{{node.dpt.pk}}" title=""><span class="deactivate">{% trans 'Editar'%} </span><span class="activate">{% trans 'Em Edição'%}: </span>{% if not node.td.rotulo_prefixo_texto %}{{ node.td.nome }} {% endif %}{{ node.dpt.rotulo }}</a>
|
|
<div class="btn-group">
|
|
<a class="btn-dpt-edit btn btn-warning btn-sm activate" pk="{{node.dpt.pk}}" action="editor-help" data-toggle="modal" data-target="#modal-help"><span class="deactivate"></span><span class="activate"><i class="fa fa-question" aria-hidden="true"></i></span></a>
|
|
</div>
|
|
<div class="btn-group">
|
|
<a class="btn-dpt-edit btn btn-info btn-sm activate" pk="{{node.dpt.pk}}" action="editor-close" title="{% trans 'Fechar Edição' %}"><span class="deactivate"></span><span class="activate"><i class="fa fa-times" aria-hidden="true"></i></span></a>
|
|
</div>
|
|
{% if not node.dpt.rotulo and not node.dpt.texto and node.td.dispositivo_de_articulacao%}
|
|
{% endif %}
|
|
</div>
|
|
<div class="dpt-text {{node.td.class_css}} {%if node.dpt.fim_vigencia %}desativado{%endif%} {%if not node.filhos and node.td.dispositivo_de_articulacao %}hover-fixed{%endif%}">
|
|
{% if node.dpt.auto_inserido and node.da%}
|
|
{{ node.dpt.dispositivo_pai.tipo_dispositivo.rotulo_prefixo_html|safe }}
|
|
{% if node.da and node in node.da.alts %}
|
|
<a class="dpt-link link-rotulo" name="{{node.dpt.pk}}" href="{% url 'sapl.compilacao:ta_text_edit' node.dpt.dispositivo_pai.ta_id %}#{{node.dpt.pk}}" title="{% trans 'Abrir editor deste dispositivo em seu Texto Articulado Original'%}">{{ node.dpt.dispositivo_pai.rotulo }}</a>
|
|
{% else %}
|
|
<a class="dpt-link link-rotulo" name="{{node.dpt.pk}}">{{ node.dpt.dispositivo_pai.rotulo }}</a>
|
|
{% endif %}
|
|
|
|
{{ node.dpt.dispositivo_pai.tipo_dispositivo.rotulo_sufixo_html|safe }}
|
|
|
|
{% else %}
|
|
{{ node.td.rotulo_prefixo_html|safe }}
|
|
{% if node.da and node in node.da.alts %}
|
|
<a class="dpt-link link-rotulo" name="{{node.dpt.pk}}" href="{% url 'sapl.compilacao:ta_text_edit' node.dpt.ta_id %}#{{node.dpt.pk}}" title="{% trans 'Abrir editor deste dispositivo em seu Texto Articulado Original'%}">{{ node.dpt.rotulo }}</a>
|
|
{% else %}
|
|
<a class="dpt-link link-rotulo" name="{{node.dpt.pk}}">{{ node.dpt.rotulo }}</a>
|
|
{% endif %}
|
|
{{ node.td.rotulo_sufixo_html|safe }}
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{{ node.td.texto_prefixo_html|safe }}
|
|
|
|
{% if node.da and node in node.da.alts and not node.dpt.visibilidade %}<small>({% trans 'Dispositivo visível apenas no Texto Articulado Original'%})</small>{% endif %}
|
|
|
|
{% if not node.dpt.texto and not node.td.dispositivo_de_articulacao %}
|
|
<span class="semtexto">({{node.td}} sem texto)</span>
|
|
{%else%}
|
|
{% if node.da and node.dpt.texto_atualizador and node in node.da.alts%}{{ node.dpt.texto_atualizador|safe }}{% else %}{{ node.dpt.texto|safe }}{% endif %}
|
|
{%endif%}
|
|
{% if node.na %}
|
|
<a class="dpt-link nota-alteracao" href="{% url 'compilacao:ta_text_edit' node.da.dpt.ta_id %}#{{node.da.dpt.pk}}" title="{% trans 'Abrir Edição do Dispositivo Alterador'%}">
|
|
<small>
|
|
{{ node.td.nota_automatica_prefixo_html|safe }}
|
|
{{ node.na }}
|
|
{{ node.td.nota_automatica_sufixo_html|safe }}
|
|
</small>
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
<div class="dpt-form clearfix"></div>
|
|
<div class="dpt-actions-bottom btn-group"></div>
|
|
{% if node.alts or node.td.dispositivo_de_alteracao and node.td.dispositivo_de_articulacao %}
|
|
<div class="dpt-alts">{{ alts }}</div>
|
|
{% endif %}
|
|
{% if node.filhos %}
|
|
<div class="dpt-block">
|
|
{{ filhos }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% enddispositivotree %}
|
|
|
|
|
|
{% comment %}
|
|
|
|
{% for item in dispositivos_list %}
|
|
|
|
|
|
<div class="dpt-alts">
|
|
{% if item.alts %}
|
|
{%with dispositivos_list=item.alts %}
|
|
{%include 'compilacao/text_edit_bloco.html'%}
|
|
{%endwith%}
|
|
{% endif %}
|
|
</div>
|
|
|
|
<<<<<<< d5a8cdb5d563a8353942e0dc3c3b2484bd636ea6:templates/compilacao/text_edit_bloco.html
|
|
=======
|
|
{% if dpt.dispositivo_vigencia %}
|
|
<li>•</li>
|
|
<li>{% field_verbose_name dpt 'dispositivo_vigencia'%}: <a href="{% url 'sapl.compilacao:ta_text_edit' dpt.dispositivo_vigencia.ta_id %}#{{ dpt.dispositivo_vigencia_id }}" action="refresh" pk="{{dpt.dispositivo_vigencia.pk}}" title="{% field_verbose_name dpt 'dispositivo_vigencia'%} {% trans 'em' %}:
{{dpt.dispositivo_vigencia.ta}}">{{dpt.dispositivo_vigencia|nomenclatura}}</a> </li>
|
|
{% endif %}
|
|
>>>>>>> Fix #497 Encaps apps secundárias dentro app sapl:sapl/templates/compilacao/text_edit_bloco.html
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endfor%}
|
|
{% for dpt in object_list %}
|
|
<div class="bloco {{ dpt.tipo_dispositivo.class_css }}">
|
|
{% spaceless %}
|
|
{% if not dpt.tipo_dispositivo.dispositivo_de_alteracao %}
|
|
<div class="de" id="id{{dpt.id}}" pk="{{dpt.pk}}" ordem="{{dpt.ordem}}" name="{{dpt.pk}}" title="{{dpt.pk}} - {{dpt.ordem}}">
|
|
{{ dpt.tipo_dispositivo.rotulo_prefixo_html|safe }}
|
|
{{ dpt.rotulo }}
|
|
{{ dpt.tipo_dispositivo.rotulo_sufixo_html|safe }}
|
|
{{ dpt.tipo_dispositivo.texto_prefixo_html|safe }}
|
|
{% if dpt.texto == '' and not dpt.tipo_dispositivo.dispositivo_de_articulacao %}
|
|
<span class="semtexto">({{dpt.tipo_dispositivo}} sem texto)</span>
|
|
{%else%}
|
|
{{ dpt.texto|safe }}
|
|
{%endif%}
|
|
</div>
|
|
{% endif %}
|
|
<<<<<<< d5a8cdb5d563a8353942e0dc3c3b2484bd636ea6:templates/compilacao/text_edit_bloco.html
|
|
{% if dpt.ta_publicado_id != None and not dpt.tipo_dispositivo.dispositivo_de_articulacao %}
|
|
<a class="nota-alteracao" href="{% url 'compilacao:ta_text_edit' dpt.ta_publicado.pk %}#{{dpt.dispositivo_atualizador_id}}">
|
|
{{ dpt.tipo_dispositivo.nota_automatica_prefixo_html|safe }}
|
|
{% nota_automatica dpt ta_pub_list %}
|
|
{{ dpt.tipo_dispositivo.nota_automatica_sufixo_html|safe }}
|
|
</a>
|
|
{% endif %}
|
|
{% endspaceless %}
|
|
=======
|
|
<div class="bloco {% dispositivo_desativado dpt view.inicio_vigencia view.fim_vigencia %} {{ dpt.tipo_dispositivo.class_css }}">
|
|
{% spaceless %}
|
|
{% if not dpt.tipo_dispositivo.dispositivo_de_alteracao %}
|
|
<div class="de" id="id{{dpt.id}}" pk="{{dpt.pk}}" ordem="{{dpt.ordem}}" name="{{dpt.pk}}" title="{{dpt.pk}} - {{dpt.ordem}}">{{ dpt.tipo_dispositivo.rotulo_prefixo_html|safe }}{{ dpt.rotulo }}{{ dpt.tipo_dispositivo.rotulo_sufixo_html|safe }}{{ dpt.tipo_dispositivo.texto_prefixo_html|safe }}{% if dpt.texto == '' and not dpt.tipo_dispositivo.dispositivo_de_articulacao %}<span class="semtexto">({{dpt.tipo_dispositivo}} sem texto)</span>{%else%}{{ dpt.texto|safe }}{%endif%}</div>
|
|
{% endif %}
|
|
{% if dpt.ta_publicado_id != None and not dpt.tipo_dispositivo.dispositivo_de_articulacao %}
|
|
<a class="nota-alteracao" href="{% url 'sapl.compilacao:ta_text_edit' dpt.ta_publicado.pk %}#{{dpt.dispositivo_atualizador_id}}">
|
|
{{ dpt.tipo_dispositivo.nota_automatica_prefixo_html|safe }}
|
|
{% nota_automatica dpt ta_pub_list %}
|
|
{{ dpt.tipo_dispositivo.nota_automatica_sufixo_html|safe }}
|
|
</a>
|
|
{% endif %}
|
|
{% endspaceless %}
|
|
{% if dpt.tipo_dispositivo.dispositivo_de_alteracao %}
|
|
{%with node=dpt template_name='compilacao/text_edit_blocoalteracao.html' %}
|
|
{%include template_name%}
|
|
{%endwith%}
|
|
{% endif%}
|
|
</div>
|
|
{% endif%}
|
|
>>>>>>> Fix #497 Encaps apps secundárias dentro app sapl:sapl/templates/compilacao/text_edit_bloco.html
|
|
|
|
{% if dpt.tipo_dispositivo.dispositivo_de_alteracao %}
|
|
{%with node=dpt template_name='compilacao/text_edit_blocoalteracao.html' %}
|
|
{%include template_name%}
|
|
{%endwith%}
|
|
{% endif%}
|
|
|
|
</div>
|
|
{% endfor %}
|
|
{% endcomment %}
|
|
|