mirror of https://github.com/interlegis/sapl.git
Eduardo Edson Batista Cordeiro Alves
8 years ago
12 changed files with 235 additions and 21 deletions
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.7 on 2017-02-13 14:25 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('parlamentares', '0037_votante'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterModelOptions( |
|||
name='votante', |
|||
options={'verbose_name': 'Usuários'}, |
|||
), |
|||
] |
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.7 on 2017-02-13 14:26 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('parlamentares', '0038_auto_20170213_1425'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.RemoveField( |
|||
model_name='votante', |
|||
name='ip', |
|||
), |
|||
] |
@ -0,0 +1,39 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.7 on 2017-02-13 14:37 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.conf import settings |
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('materia', '0075_auto_20170203_1019'), |
|||
('parlamentares', '0039_remove_votante_ip'), |
|||
('sessao', '0033_merge'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='VotoNominal', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('voto', models.CharField(max_length=10, verbose_name='Voto')), |
|||
('ip', models.CharField(max_length=30, verbose_name='IP')), |
|||
('data_hora', models.DateTimeField(auto_now_add=True, verbose_name='Data/Hora')), |
|||
('expediente', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='sessao.ExpedienteMateria')), |
|||
('materia', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='materia.MateriaLegislativa')), |
|||
('ordem', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='sessao.OrdemDia')), |
|||
('parlamentar', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='parlamentares.Parlamentar')), |
|||
('sessao', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sessao.SessaoPlenaria')), |
|||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'Registro do Voto do Parlamentar', |
|||
'verbose_name_plural': 'Registros dos Votos dos Parlamentares', |
|||
}, |
|||
), |
|||
] |
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.7 on 2017-02-13 14:55 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('sessao', '0034_votonominal'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.RemoveField( |
|||
model_name='votonominal', |
|||
name='expediente', |
|||
), |
|||
migrations.RemoveField( |
|||
model_name='votonominal', |
|||
name='ordem', |
|||
), |
|||
] |
@ -1,5 +1,66 @@ |
|||
head_title = {{head_title}} <br /> |
|||
sessao_id = {{sessao_id}} <br /> |
|||
materia = {{materia}} <br /> |
|||
permissao = {{permissao}} <br /> |
|||
presente = {{presente}} <br /> |
|||
{% load i18n %} |
|||
{% load staticfiles sass_tags %} |
|||
<!DOCTYPE HTML> |
|||
<html lang="pt-br"> |
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
<link rel="stylesheet" href="{% sass_src 'bootstrap-sass/assets/stylesheets/_bootstrap.scss' %}" type="text/css"> |
|||
<title>{% block head_title %}{% trans 'SAPL - Sistema de Apoio ao Processo Legislativo' %}{% endblock %}</title> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|||
<script type="text/javascript" src="{% static 'jquery/dist/jquery.js' %}"></script> |
|||
<script type="text/javascript" src="{% static 'js/jquery.runner.js' %}"></script> |
|||
|
|||
<style type="text/css"> |
|||
@media screen { |
|||
body { |
|||
background: #1c1b1b; |
|||
} |
|||
ul, li { |
|||
list-style-type: none; |
|||
} |
|||
} |
|||
</style> |
|||
</head> |
|||
|
|||
<body> |
|||
<h1><b><font color="#4FA64D"><p align="center">{{sessao}}</p></font></b></h1> |
|||
<table style="width:100%"> |
|||
<tr> |
|||
<th style="text-align:center"><font color="white" size="4">Data Início: {{hora}}</font></th> |
|||
<th style="text-align:center"><font color="white" size="4">Hora Início: {{data}}</font></th> |
|||
</tr> |
|||
</table> |
|||
<h1><font color="white"><p align="center"><span id="relogio"></span></p></font></h1> |
|||
|
|||
</br> |
|||
</br> |
|||
<h2><font color="red"><p align="center" style="font-family:Verdana">Voto: {{voto_parlamentar}}</p></font></h2> |
|||
</br> |
|||
</br> |
|||
|
|||
<h2><font color="#459170"><p align="center" style="font-family:Verdana">Matéria em Votação</p></font></h2> |
|||
<table style="width:75%; border:1px;" align="center"> |
|||
<tr><th style="text-align:center"><h4><font color="white">{{materia}}</font></th></tr> |
|||
<tr><th style="text-align:center"><h4><font color="white">{{ementa}}</font></th></tr> |
|||
<tr><th style="text-align:center"><font color="#45919D"><span id="resultado_votacao"></span></font></th></tr> |
|||
</table> |
|||
|
|||
<br /><br /> |
|||
<form method='POST'> |
|||
{% csrf_token %} |
|||
<table style="width:75%; border:1px;" align="center"> |
|||
<tr><th style="text-align:center"> |
|||
<select id="voto" name="voto" style="width:30%;"> |
|||
<option value="">Selecione</option> |
|||
<option value="Sim">Sim</option> |
|||
<option value="Não">Não</option> |
|||
<option value="Absteção">Abstenção</option> |
|||
</select> |
|||
</th></tr> |
|||
<tr><th style="text-align:center"> |
|||
<input type="submit" value="Votar" name="Votar" style="width:10%;"/> |
|||
</th></tr> |
|||
</table> |
|||
</form> |
|||
</body> |
|||
</html> |
|||
|
Loading…
Reference in new issue