Browse Source

Exibição de Autoria para Matérias Anexadas e Anexadoras na listagem de Pesquisa de Matéria Legislativa

pull/3572/head
joao 3 years ago
parent
commit
c1339e93a1
  1. 24
      sapl/templates/materia/materialegislativa_filter.html

24
sapl/templates/materia/materialegislativa_filter.html

@ -120,6 +120,18 @@
{{ a.materia_principal }} 
</a>
<strong>Data Anexação:</strong> {{a.data_anexacao}}
{% if a.materia_principal.autoria_set.all %}
<strong>Autor:</strong>
<small>
{% for ab in a.materia_principal.autoria_set.all %}
{% if not forloop.first %}
,&nbsp;{{ab.autor}}
{% else %}
&nbsp;{{ab.autor}}
{% endif %}
{% endfor %}
</small>
{% endif %}
</br>
{% endfor %}
{% endif %}
@ -130,6 +142,18 @@
{{ anexada.materia_anexada }}&nbsp;
</a>
<strong>Data Anexação:</strong> {{anexada.data_anexacao}}
{% if anexada.materia_anexada.autoria_set.all %}
<strong>Autor:</strong>
<small>
{% for a in anexada.materia_anexada.autoria_set.all %}
{% if not forloop.first %}
,&nbsp;{{a.autor}}
{% else %}
&nbsp;{{a.autor}}
{% endif %}
{% endfor %}
</small>
{% endif %}
</br>
{% endfor %}
{% endif %}

Loading…
Cancel
Save