mirror of https://github.com/interlegis/sigi.git
Eduardo Edson Batista Cordeiro Alves
9 years ago
committed by
Luciano Almeida
14 changed files with 446 additions and 14 deletions
@ -0,0 +1,29 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.6 on 2016-06-28 16:09 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('usuarios', '0006_remove_usuario_search_text'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.RemoveField( |
|||
model_name='usuario', |
|||
name='habilitado', |
|||
), |
|||
migrations.AlterField( |
|||
model_name='usuario', |
|||
name='conveniado', |
|||
field=models.BooleanField(default=False, verbose_name='Conveniado?'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='usuario', |
|||
name='responsavel', |
|||
field=models.BooleanField(default=False, verbose_name='Rspons\xe1vel?'), |
|||
), |
|||
] |
@ -0,0 +1,31 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.6 on 2016-06-29 13:56 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.conf import settings |
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
import django.utils.timezone |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('usuarios', '0007_auto_20160628_1609'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='Atesto', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('data', models.DateTimeField(default=django.utils.timezone.now)), |
|||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'Atesto', |
|||
'verbose_name_plural': 'Atestos', |
|||
}, |
|||
), |
|||
] |
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.6 on 2016-06-29 13:57 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('usuarios', '0008_atesto'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='usuario', |
|||
name='atesto_conveniado', |
|||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='usuarios.Atesto'), |
|||
), |
|||
] |
@ -0,0 +1,45 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.6 on 2016-06-29 14:48 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('usuarios', '0009_usuario_atesto_conveniado'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='AtestoConvenio', |
|||
fields=[ |
|||
('atesto_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='usuarios.Atesto')), |
|||
], |
|||
bases=('usuarios.atesto',), |
|||
), |
|||
migrations.CreateModel( |
|||
name='AtestoResponsavel', |
|||
fields=[ |
|||
('atesto_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='usuarios.Atesto')), |
|||
], |
|||
bases=('usuarios.atesto',), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='usuario', |
|||
name='atesto_conveniado', |
|||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='usuarios.AtestoConvenio'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='usuario', |
|||
name='responsavel', |
|||
field=models.BooleanField(default=False, verbose_name='Respons\xe1vel?'), |
|||
), |
|||
migrations.AddField( |
|||
model_name='usuario', |
|||
name='atesto_responsavel', |
|||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='usuarios.AtestoResponsavel'), |
|||
), |
|||
] |
@ -0,0 +1,24 @@ |
|||
{% extends "admin/base_site.html" %} |
|||
{% load i18n crispy_forms_tags %} |
|||
|
|||
{% block content %} |
|||
<table class="table table-striped table-bordered"> |
|||
<thead class="thead-default"> |
|||
<tr> |
|||
<th>Dados da Casa Legislativa</th> |
|||
</tr> |
|||
</thead> |
|||
<tr> |
|||
<td> |
|||
<b>Casa:</b> {{casa}}<br /> |
|||
<b>CNJ:</b> {{casa.cnpj}}<br /> |
|||
<b>Município:</b> {{casa.municipio}}<br /> |
|||
<b>Email:</b> {{casa.email}}<br /> |
|||
<b>Cep:</b> {{casa.cep}}<br /> |
|||
<b>Página:</b> {{casa.pagina_web}}<br /> |
|||
<b>Telefone:</b> {{casa.telefone}}<br /> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
{% crispy form %} |
|||
{% endblock %} |
@ -0,0 +1,24 @@ |
|||
{% extends "admin/base_site.html" %} |
|||
{% load i18n crispy_forms_tags %} |
|||
|
|||
{% block content %} |
|||
{% if object_list|length >= 1 %} |
|||
<fieldset> |
|||
<legend>Lista para atesto de convênio</legend> |
|||
<table class="table table-striped table-bordered"> |
|||
<thead class="thead-default"> |
|||
<tr> |
|||
<th>Casa Legislativa</th> |
|||
</tr> |
|||
</thead> |
|||
{% for object in object_list %} |
|||
<tr> |
|||
<td><a href="{% url 'usuarios:convenio_update' object.pk %}">{{object.casa_legislativa}}</a></td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
</fieldset> |
|||
{% else %} |
|||
<p align='center'><font size='4'>Não há nenhum usuário para ser verificado.</font></p> |
|||
{% endif %} |
|||
{% endblock %} |
@ -0,0 +1,33 @@ |
|||
{% extends "admin/base_site.html" %} |
|||
{% load i18n crispy_forms_tags %} |
|||
|
|||
{% block content %} |
|||
<table class="table table-striped table-bordered"> |
|||
<thead class="thead-default"> |
|||
<tr> |
|||
<th>Dados informado pelo Usuário</th> |
|||
<th>Dados da Casa Legislativa</th> |
|||
</tr> |
|||
</thead> |
|||
<tr> |
|||
<td> |
|||
<b>Nome completo:</b> {{usuario.nome_completo}}<br /> |
|||
<b>Email:</b> {{usuario.email}}<br /> |
|||
<b>CPF:</b> {{usuario.cpf}}<br /> |
|||
<b>RG:</b> {{usuario.rg}}<br /> |
|||
<b>Cargo:</b> {{usuario.cargo}}<br /> |
|||
<b>Vinculo:</b> {{usuario.vinculo}}<br /> |
|||
</td> |
|||
<td> |
|||
<b>Casa:</b> {{casa}}<br /> |
|||
<b>CNJ:</b> {{casa.cnpj}}<br /> |
|||
<b>Município:</b> {{casa.municipio}}<br /> |
|||
<b>Email:</b> {{casa.email}}<br /> |
|||
<b>Cep:</b> {{casa.cep}}<br /> |
|||
<b>Página:</b> {{casa.pagina_web}}<br /> |
|||
<b>Telefone:</b> {{casa.telefone}}<br /> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
{% crispy form %} |
|||
{% endblock %} |
@ -0,0 +1,26 @@ |
|||
{% extends "admin/base_site.html" %} |
|||
{% load i18n crispy_forms_tags %} |
|||
|
|||
{% block content %} |
|||
{% if object_list|length >= 1 %} |
|||
<fieldset> |
|||
<legend>Lista para atesto de responsável</legend> |
|||
<table class="table table-striped table-bordered"> |
|||
<thead class="thead-default"> |
|||
<tr> |
|||
<th>Nome Usuário</th> |
|||
<th>Casa Legislativa</th> |
|||
</tr> |
|||
</thead> |
|||
{% for object in object_list %} |
|||
<tr> |
|||
<td><a href="{% url 'usuarios:responsavel_update' object.pk %}">{{object.nome_completo}}</a></td> |
|||
<td>{{object.casa_legislativa}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
</fieldset> |
|||
{% else %} |
|||
<p align='center'><font size='4'>Não há nenhum usuário para ser verificado.</font></p> |
|||
{% endif %} |
|||
{% endblock %} |
Loading…
Reference in new issue