mirror of https://github.com/interlegis/sapl.git
				
				
			
							committed by
							
								 GitHub
								GitHub
							
						
					
				
				 16 changed files with 281 additions and 20 deletions
			
			
		| @ -0,0 +1,30 @@ | |||
| # -*- coding: utf-8 -*- | |||
| # Generated by Django 1.9.7 on 2016-09-16 13:25 | |||
| from __future__ import unicode_literals | |||
| 
 | |||
| from django.db import migrations, models | |||
| 
 | |||
| 
 | |||
| class Migration(migrations.Migration): | |||
| 
 | |||
|     dependencies = [ | |||
|         ('parlamentares', '0024_merge'), | |||
|     ] | |||
| 
 | |||
|     operations = [ | |||
|         migrations.CreateModel( | |||
|             name='Frente', | |||
|             fields=[ | |||
|                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | |||
|                 ('nome', models.CharField(max_length=80, verbose_name='Nome da Frente')), | |||
|                 ('data_criacao', models.DateField(verbose_name='Data Criação')), | |||
|                 ('data_extincao', models.DateField(blank=True, verbose_name='Data Dissolução')), | |||
|                 ('descricao', models.TextField(blank=True, verbose_name='Descrição')), | |||
|                 ('parlamentares', models.ManyToManyField(blank=True, to='parlamentares.Parlamentar', verbose_name='Parlamentares')), | |||
|             ], | |||
|             options={ | |||
|                 'verbose_name': 'Frente', | |||
|                 'verbose_name_plural': 'Frentes', | |||
|             }, | |||
|         ), | |||
|     ] | |||
| @ -0,0 +1,20 @@ | |||
| # -*- coding: utf-8 -*- | |||
| # Generated by Django 1.9.7 on 2016-09-16 13:34 | |||
| from __future__ import unicode_literals | |||
| 
 | |||
| from django.db import migrations, models | |||
| 
 | |||
| 
 | |||
| class Migration(migrations.Migration): | |||
| 
 | |||
|     dependencies = [ | |||
|         ('parlamentares', '0025_frente'), | |||
|     ] | |||
| 
 | |||
|     operations = [ | |||
|         migrations.AlterField( | |||
|             model_name='frente', | |||
|             name='data_extincao', | |||
|             field=models.DateField(blank=True, null=True, verbose_name='Data Dissolução'), | |||
|         ), | |||
|     ] | |||
| @ -0,0 +1,16 @@ | |||
| # -*- coding: utf-8 -*- | |||
| # Generated by Django 1.9.7 on 2016-09-16 14:44 | |||
| from __future__ import unicode_literals | |||
| 
 | |||
| from django.db import migrations | |||
| 
 | |||
| 
 | |||
| class Migration(migrations.Migration): | |||
| 
 | |||
|     dependencies = [ | |||
|         ('parlamentares', '0026_auto_20160916_1034'), | |||
|         ('parlamentares', '0025_auto_20160916_1030'), | |||
|     ] | |||
| 
 | |||
|     operations = [ | |||
|     ] | |||
| @ -0,0 +1,30 @@ | |||
| # -*- coding: utf-8 -*- | |||
| # Generated by Django 1.9.7 on 2016-09-19 12:03 | |||
| from __future__ import unicode_literals | |||
| 
 | |||
| from django.db import migrations, models | |||
| 
 | |||
| 
 | |||
| class Migration(migrations.Migration): | |||
| 
 | |||
|     dependencies = [ | |||
|         ('sessao', '0023_auto_20160915_1405'), | |||
|     ] | |||
| 
 | |||
|     operations = [ | |||
|         migrations.CreateModel( | |||
|             name='Bloco', | |||
|             fields=[ | |||
|                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | |||
|                 ('nome', models.CharField(max_length=80, verbose_name='Nome do Bloco')), | |||
|                 ('data_criacao', models.DateField(blank=True, null=True, verbose_name='Data Criação')), | |||
|                 ('data_extincao', models.DateField(blank=True, null=True, verbose_name='Data Dissolução')), | |||
|                 ('descricao', models.TextField(blank=True, verbose_name='Descrição')), | |||
|                 ('bancadas', models.ManyToManyField(blank=True, to='sessao.Bancada', verbose_name='Bancadas')), | |||
|             ], | |||
|             options={ | |||
|                 'verbose_name_plural': 'Blocos', | |||
|                 'verbose_name': 'Bloco', | |||
|             }, | |||
|         ), | |||
|     ] | |||
| @ -0,0 +1,21 @@ | |||
| {% extends "crud/list.html" %} | |||
| {% load i18n %} | |||
| {% load crispy_forms_tags %} | |||
| 
 | |||
| {% block base_content %} | |||
| 	{% if object_list|length == 0 %} | |||
| 	  <p>Nenhuma frente encontrada.</p> | |||
| 	{% else %} | |||
| 	  <table class="table table-striped table-hover"> | |||
| 	    <thead> | |||
| 	      <tr><th>Frentes</th></tr> | |||
| 	    </thead> | |||
| 	    <tbody> | |||
| 				{% for frente in object_list %} | |||
| 					<tr><td><a href="{% url 'sapl.parlamentares:frente_detail' frente.pk %}">{{ frente.nome }}</a></td></tr> | |||
| 				{% endfor %} | |||
| 	  	</tbody> | |||
| 	  </table> | |||
| 	{% endif %} | |||
| 	{% include "paginacao.html" %} | |||
| {% endblock %} | |||
					Loading…
					
					
				
		Reference in new issue