mirror of https://github.com/interlegis/sapl.git
6 changed files with 112 additions and 4 deletions
@ -0,0 +1,20 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.9.5 on 2016-08-10 20:37 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('materia', '0041_remove_proposicao_data_incorporação'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AddField( |
||||
|
model_name='proposicao', |
||||
|
name='data_devolução', |
||||
|
field=models.DateTimeField(blank=True, null=True, verbose_name='Data de Devolução'), |
||||
|
), |
||||
|
] |
@ -0,0 +1,20 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.9.5 on 2016-08-10 20:38 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('materia', '0042_proposicao_data_devolução'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.RenameField( |
||||
|
model_name='proposicao', |
||||
|
old_name='data_devolução', |
||||
|
new_name='data_devolucao', |
||||
|
), |
||||
|
] |
@ -0,0 +1,37 @@ |
|||||
|
{% extends "base.html" %} |
||||
|
{% load i18n %} |
||||
|
{% block base_content %} |
||||
|
{% if not object_list %} |
||||
|
<p>{{ NO_ENTRIES_MSG }}</p> |
||||
|
{% else %} |
||||
|
<table class="table table-striped table-hover"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>Data do Recebimento</th> |
||||
|
<th>Tipo</th> |
||||
|
<th>Descrição</th> |
||||
|
<th>Autor</th> |
||||
|
<th>Vínculo</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
{% for prop in object_list %} |
||||
|
<tr> |
||||
|
<td><a href="{% url 'sapl.materia:proposicao_detail' prop.pk %}">{{ prop.data_recebimento|date:"d/m/Y H:i:s" }}</a></td> |
||||
|
<td>{{ prop.tipo.descricao }}</td> |
||||
|
<td>{{ prop.descricao }}</td> |
||||
|
<td>{{ prop.autor }}</td> |
||||
|
<td> |
||||
|
{% if prop.materia_gerada %} |
||||
|
<a href="{% url 'sapl.materia:materialegislativa_detail' prop.materia_gerada.pk %}">{{ prop.materia_gerada.tipo.sigla }} {{ prop.materia_gerada.numero }}/{{ prop.materia_gerada.ano }}</a> |
||||
|
{% elif prop.documento_gerado %} |
||||
|
<a href="{% url 'sapl.materia:documentoacessorio_detail' prop.documento_gerado.pk %}">{{ prop.documento_gerado.materia.tipo.sigla }} {{ prop.documento_gerado.materia.numero }}/{{ prop.documento_gerado.materia.ano }}</a> |
||||
|
{% endif %} |
||||
|
</td> |
||||
|
</tr> |
||||
|
{% endfor %} |
||||
|
</tbody> |
||||
|
</table> |
||||
|
{% endif %} |
||||
|
{% include 'paginacao.html'%} |
||||
|
{% endblock %} |
Loading…
Reference in new issue