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