mirror of https://github.com/interlegis/sapl.git
Edward
7 years ago
committed by
GitHub
27 changed files with 602 additions and 41 deletions
@ -0,0 +1,44 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.13 on 2017-11-23 13:07 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
import sapl.comissoes.models |
|||
import sapl.utils |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('comissoes', '0002_auto_20170809_1236'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='Reuniao', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('numero', models.PositiveIntegerField(verbose_name='Número')), |
|||
('nome', models.CharField(max_length=100, verbose_name='Nome da Reunião')), |
|||
('tema', models.CharField(max_length=100, verbose_name='Tema da Reunião')), |
|||
('data', models.DateField(verbose_name='Data')), |
|||
('hora_inicio', models.CharField(max_length=5, verbose_name='Horário (hh:mm)')), |
|||
('hora_fim', models.CharField(max_length=5, verbose_name='Horário (hh:mm)')), |
|||
('local_reuniao', models.CharField(blank=True, max_length=100, verbose_name='Local Reunião')), |
|||
('observacao', models.CharField(blank=True, max_length=150, verbose_name='Observação')), |
|||
('url_audio', models.URLField(blank=True, max_length=150, verbose_name='URL Arquivo Áudio (Formatos MP3 / AAC)')), |
|||
('url_video', models.URLField(blank=True, max_length=150, verbose_name='URL Arquivo Vídeo (Formatos MP4 / FLV / WebM)')), |
|||
('upload_pauta', models.FileField(blank=True, null=True, upload_to=sapl.comissoes.models.pauta_upload_path, validators=[sapl.utils.restringe_tipos_de_arquivo_txt], verbose_name='Pauta da Reunião')), |
|||
('upload_ata', models.FileField(blank=True, null=True, upload_to=sapl.comissoes.models.ata_upload_path, validators=[sapl.utils.restringe_tipos_de_arquivo_txt], verbose_name='Ata da Reunião')), |
|||
('upload_anexo', models.FileField(blank=True, null=True, upload_to=sapl.comissoes.models.anexo_upload_path, verbose_name='Anexo da Reunião')), |
|||
('comissao', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='comissoes.Comissao', verbose_name='Comissão')), |
|||
('periodo', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='comissoes.Periodo', verbose_name='Periodo da Composicão da Comissão')), |
|||
('tipo', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='comissoes.TipoComissao', verbose_name='Tipo')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'Reunião de Comissão', |
|||
'verbose_name_plural': 'Reuniões de Comissão', |
|||
}, |
|||
), |
|||
] |
@ -0,0 +1,16 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.13 on 2018-02-26 10:41 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('comissoes', '0004_auto_20180102_1652'), |
|||
('comissoes', '0003_reuniao'), |
|||
] |
|||
|
|||
operations = [ |
|||
] |
@ -0,0 +1,25 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.13 on 2018-02-27 11:42 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('comissoes', '0005_merge'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='url_audio', |
|||
field=models.URLField(blank=True, max_length=150, null=True, verbose_name='URL Arquivo Áudio (Formatos MP3 / AAC)'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='url_video', |
|||
field=models.URLField(blank=True, max_length=150, null=True, verbose_name='URL Arquivo Vídeo (Formatos MP4 / FLV / WebM)'), |
|||
), |
|||
] |
@ -0,0 +1,25 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.13 on 2018-02-27 13:25 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('comissoes', '0006_auto_20180227_0842'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='hora_fim', |
|||
field=models.CharField(max_length=5, verbose_name='Horário de Término (hh:mm)'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='hora_inicio', |
|||
field=models.CharField(max_length=5, verbose_name='Horário de Início (hh:mm)'), |
|||
), |
|||
] |
@ -0,0 +1,25 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.13 on 2018-02-27 14:11 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('comissoes', '0007_auto_20180227_1025'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='url_audio', |
|||
field=models.URLField(blank=True, max_length=150, verbose_name='URL Arquivo Áudio (Formatos MP3 / AAC)'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='url_video', |
|||
field=models.URLField(blank=True, max_length=150, verbose_name='URL Arquivo Vídeo (Formatos MP4 / FLV / WebM)'), |
|||
), |
|||
] |
@ -0,0 +1,41 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.13 on 2018-03-01 13:11 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('comissoes', '0008_auto_20180227_1111'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='local_reuniao', |
|||
field=models.CharField(blank=True, max_length=100, verbose_name='Local da Reunião'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='observacao', |
|||
field=models.TextField(blank=True, max_length=150, verbose_name='Observação'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='tipo', |
|||
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='comissoes.TipoComissao', verbose_name='Tipo de Comissão'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='url_audio', |
|||
field=models.URLField(blank=True, max_length=150, verbose_name='URL do Arquivo de Áudio (Formatos MP3 / AAC)'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='url_video', |
|||
field=models.URLField(blank=True, max_length=150, verbose_name='URL do Arquivo de Vídeo (Formatos MP4 / FLV / WebM)'), |
|||
), |
|||
] |
@ -0,0 +1,25 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.13 on 2018-03-06 12:18 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('comissoes', '0009_auto_20180301_1011'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='hora_fim', |
|||
field=models.TimeField(verbose_name='Horário de Término (hh:mm)'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='reuniao', |
|||
name='hora_inicio', |
|||
field=models.TimeField(verbose_name='Horário de Início (hh:mm)'), |
|||
), |
|||
] |
@ -0,0 +1,34 @@ |
|||
{% extends "crud/list.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
|||
|
|||
{% block base_content %} |
|||
{% if not show_results %} |
|||
{% crispy filter.form %} |
|||
{% endif %} |
|||
|
|||
{% if show_results %} |
|||
<div class="actions btn-group pull-right" role="group"> |
|||
<a href="{% url 'sapl.base:data_fim_prazo_tramitacoes' %}" class="btn btn-default">{% trans 'Fazer nova pesquisa' %}</a> |
|||
</div> |
|||
<br /><br /><br /><br /> |
|||
<table class="table table-bordered table-hover"> |
|||
<thead class="thead-default" > |
|||
<tr class="active"> |
|||
<th>Matéria</th> |
|||
<th>Ementa</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for materia in object_list %} |
|||
<tr> |
|||
<td><a href="{% url 'sapl.materia:tramitacao_list' materia.pk %}"> |
|||
{{materia.tipo.descricao}} - {{materia.tipo.sigla}} {{materia.numero}}/{{materia.ano}} |
|||
</a></td> |
|||
<td>{{materia.ementa}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endif %} |
|||
{% endblock base_content %} |
@ -1,8 +0,0 @@ |
|||
{% extends "comissoes/comissao_detail.html" %} |
|||
{% load i18n %} |
|||
|
|||
{% block actions %}{% endblock actions %} |
|||
|
|||
{% block detail_content %} |
|||
TODO ... Reuniões |
|||
{% endblock detail_content %} |
Loading…
Reference in new issue