@ -15,56 +15,55 @@
< table class = "table table-bordered table-hover" >
< thead class = "thead-default" >
< tr class = "active" > < th colspan = "2 " class = "text-center" > QUADRO GERAL< / th > < / tr >
< tr class = "active" > < th colspan = "3 " class = "text-center" > QUADRO GERAL< / th > < / tr >
< tr class = "active" >
< th > Tipo Matéria< / th >
< th colspan = "2" > Tipo Matéria< / th >
< th > Quantidade< / th >
< / tr >
< / thead >
< tbody >
{% for key, value in qtdes.items %}
< tr >
< td > {{key.sigla}} - {{key}}< / td >
< td colspan = "2" > {{key.sigla}} - {{key}}< / td >
< td > {{value}}< / td >
< / tr >
{% endfor %}
< / tbody >
< / table >
< table class = "table table-bordered table-hover" >
< thead class = "thead-default" >
< tr class = "active" >
< th > Matéria< / th >
< th > Ementa< / th >
< th > Autor< / th >
< th > Coautor(es)< / th >
< / tr >
< / thead >
< tbody >
{% for materia in object_list %}
< tr >
< td > < a href = "{% url 'sapl.materia:materialegislativa_detail' materia.pk %}" >
{{materia.tipo.sigla}} {{materia.numero}}/{{materia.ano}}
< / a > < / td >
< td > {{materia.ementa}}< / td >
< td >
{% for autor in materia.autoria_set.all %}
{% if autor.primeiro_autor %}
{{autor.autor}}< br / >
{% endif %}
{% endfor %}
< / td >
< td >
{% for autor in materia.autoria_set.all %}
{% if not autor.primeiro_autor %}
{{autor.autor}}< br / >
{% endif %}
{% endfor %}
< / td >
< / tr >
{% endfor %}
< / tbody >
{% for materia in object_list %}
{% ifchanged materia.autoria_set.first.autor %}
< thead class = "thead-default" >
< tr style = "border-left: hidden; border-right: hidden;" > < th colspan = "3" > < / th > < / tr >
< tr class = "active" > < th colspan = "3" class = "text-center" > Autor: {{ materia.autoria_set.first.autor }}< / th > < / tr >
< tr class = "active" >
< th width = "10%" > Matéria< / th >
< th > Ementa< / th >
< th width = "20%" > Coautor(es)< / th >
< / tr >
< / thead >
{% endifchanged %}
< tbody >
< tr >
< td > < a href = "{% url 'sapl.materia:materialegislativa_detail' materia.pk %}" >
{{materia.tipo.sigla}} {{materia.numero}}/{{materia.ano}}
< / a > < / td >
< td > {% autoescape off %}{{materia.ementa}}{% endautoescape %}< / td >
< td >
{% if materia.autoria_set.first != materia.autoria_set.last %}
{% for autor in materia.autoria_set.all %}
{% if not autor.primeiro_autor %}
{{ autor.autor }}< br / >
{% endif %}
{% endfor %}
{% endif %}
< / td >
< / tr >
< / tbody >
{% endfor %}
< / table >
{% endif %}
{% endblock base_content %}