mirror of https://github.com/interlegis/sapl.git
Eduardo Edson Batista Cordeiro Alves
9 years ago
11 changed files with 57 additions and 199 deletions
@ -0,0 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.5 on 2016-04-28 13:20 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('materia', '0028_auto_20160419_1000'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='autoria', |
|||
name='primeiro_autor', |
|||
field=models.BooleanField(choices=[(True, 'Sim'), (False, 'Não')], verbose_name='Primeiro Autor'), |
|||
), |
|||
] |
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.5 on 2016-04-28 13:20 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('parlamentares', '0016_auto_20160404_1409'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.RemoveField( |
|||
model_name='parlamentar', |
|||
name='unidade_deliberativa', |
|||
), |
|||
] |
@ -1,33 +0,0 @@ |
|||
{% extends "crud/detail.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
|||
{% block actions %} {% endblock %} |
|||
{% block detail_content %} |
|||
<fieldset> |
|||
<legend>Matéria Legislativa</legend> |
|||
{% include "materia/resumo_detail_materia.html" %} |
|||
|
|||
<fieldset> |
|||
<legend>Autorias</legend> |
|||
<table class="table table-striped table-bordered"> |
|||
<thead class="thead-default"> |
|||
<tr> |
|||
<th>Nome Autor</th> |
|||
<th>Tipo Autor</th> |
|||
<th>Primeiro Autor</th> |
|||
<th>Partido Autor</th> |
|||
</tr> |
|||
</thead> |
|||
{% for a in autorias %} |
|||
<tr> |
|||
<td><a href="{% url 'materia:autoria_edit' object.id a.id %}">{{a.autor}}</a></td> |
|||
<td>{{a.autor.tipo.descricao}}</td> |
|||
<td>{{a.primeiro_autor|yesno:"Sim,Não"}}</td> |
|||
<td>{{a.partido.sigla|default_if_none:"Não Informado"}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
</fieldset> |
|||
{% crispy form %} |
|||
</fieldset> |
|||
{% endblock %} |
@ -1,7 +0,0 @@ |
|||
{% extends "crud/detail.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
|||
{% block actions %} {% endblock %} |
|||
{% block detail_content %} |
|||
{% crispy form %} |
|||
{% endblock %} |
Loading…
Reference in new issue