mirror of https://github.com/interlegis/sapl.git
committed by
GitHub
17 changed files with 702 additions and 205 deletions
@ -0,0 +1,32 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.11 on 2017-05-04 17:51 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('materia', '0003_auto_20170403_1505'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='assuntomateria', |
|||
name='dispositivo', |
|||
field=models.CharField(blank=True, default='', max_length=200, verbose_name='Descrição do Dispositivo Legal'), |
|||
preserve_default=False, |
|||
), |
|||
migrations.AlterField( |
|||
model_name='materiaassunto', |
|||
name='assunto', |
|||
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='materia.AssuntoMateria', verbose_name='Assunto'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='materiaassunto', |
|||
name='materia', |
|||
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='materia.MateriaLegislativa', verbose_name='Matéria'), |
|||
), |
|||
] |
|||
@ -0,0 +1,25 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.11 on 2017-05-04 17:51 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('parlamentares', '0001_initial'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='coligacao', |
|||
name='numero_votos', |
|||
field=models.PositiveIntegerField(blank=True, null=True, verbose_name='Nº Votos Recebidos (Coligação)'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='mandato', |
|||
name='votos_recebidos', |
|||
field=models.PositiveIntegerField(blank=True, null=True, verbose_name='Votos Recebidos (Mandato)'), |
|||
), |
|||
] |
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,8 +0,0 @@ |
|||
.mce-content-body { |
|||
font-family: "Open Sans" "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; |
|||
font-style: normal; |
|||
font-weight: normal; |
|||
line-height: 1.5; |
|||
font-size: 1em; |
|||
color: #444444; |
|||
} |
|||
@ -0,0 +1,54 @@ |
|||
{% extends "crud/detail.html" %} |
|||
{% load i18n %} |
|||
|
|||
{% block detail_content %} |
|||
<form method="post"> |
|||
{% csrf_token %} |
|||
|
|||
<fieldset> |
|||
<legend>Votação Nominal</legend> |
|||
<div> |
|||
Matéria: {{materia.materia|safe}} |
|||
<br /> |
|||
Ementa: {{materia.ementa|safe}} |
|||
</div> |
|||
|
|||
<br /> |
|||
<fieldset> |
|||
<legend>Votos</legend> |
|||
<div class="row"> |
|||
{% for v in votos %} |
|||
<div class="col-md-6">{{v.parlamentar}}</div> |
|||
<div class="col-md-6">{{v.voto}}</div> |
|||
{% endfor %} |
|||
</div> |
|||
</fieldset> |
|||
<br /> |
|||
<br /> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<b>Resultado da Votação: </b> |
|||
{% for tipo in tipos %} |
|||
{% if votacao.tipo_resultado == tipo.id %} |
|||
{{ tipo.nome }} |
|||
{% endif %} |
|||
{% endfor %} |
|||
</div> |
|||
</div> |
|||
|
|||
<br /> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
Observações |
|||
<textarea id="observacao" name="observacao" style="width:100%;" rows="7" class="form-control">{{votacao.observacao|safe}}</textarea> |
|||
</div> |
|||
</div> |
|||
</fieldset> |
|||
</form> |
|||
{% endblock detail_content %} |
|||
|
|||
{% block foot_js %} |
|||
<script language="JavaScript"> |
|||
document.getElementById("observacao").disabled = true; |
|||
</script> |
|||
{% endblock %} |
|||
Loading…
Reference in new issue