diff --git a/sigi/apps/servicos/models.py b/sigi/apps/servicos/models.py
index cdd44c5..7e4b688 100644
--- a/sigi/apps/servicos/models.py
+++ b/sigi/apps/servicos/models.py
@@ -185,4 +185,20 @@ class CasaAtendida(CasaLegislativa):
for servico in self.servico_set.all():
result.append(unicode(servico))
- return ", ".join(result)
\ No newline at end of file
+ return ", ".join(result)
+
+class CasaManifesta(models.Model):
+ casa_legislativa = models.OneToOneField(CasaLegislativa)
+ data_manifestacao = models.DateTimeField(auto_now_add=True)
+ data_atualizacao = models.DateTimeField(auto_now=True)
+ informante = models.CharField(u'Nome do informante', max_length=100)
+ cargo = models.CharField(u'Cargo do informante', max_length=100)
+
+class ServicoManifesto(models.Model):
+ casa_manifesta = models.ForeignKey(CasaManifesta)
+ servico = models.ForeignKey(TipoServico)
+ url = models.URLField(blank=True)
+ hospedagem_interlegis = models.BooleanField(u'Hospedagem no Interlegis?')
+
+ class Meta:
+ unique_together = ('casa_manifesta', 'servico')
\ No newline at end of file
diff --git a/sigi/apps/servicos/views.py b/sigi/apps/servicos/views.py
index 73129f0..83edc73 100644
--- a/sigi/apps/servicos/views.py
+++ b/sigi/apps/servicos/views.py
@@ -1,8 +1,18 @@
# -*- coding: utf-8 -*-
+from django import forms
from django.http import HttpResponse
from django.utils import simplejson
+from django.shortcuts import render_to_response, get_object_or_404
from django.db.models import Q
-from sigi.apps.servicos.models import CasaAtendida
+from sigi.apps.servicos.models import TipoServico, CasaAtendida, CasaManifesta, ServicoManifesto
+from sigi.apps.contatos.models import UnidadeFederativa
+from sigi.apps.casas.models import CasaLegislativa
+from django.template.context import RequestContext
+from django.utils.encoding import force_unicode
+from django.forms.forms import BoundField
+from django.utils.html import conditional_escape
+from django.utils.safestring import mark_safe
+from django.contrib.admin.helpers import AdminForm
def municipios_atendidos(self, servico):
municipios = []
@@ -25,4 +35,113 @@ def municipios_atendidos(self, servico):
'servicos': "
+{% if uf_list %}
+
1. Informe a Unidade da Federação onde se localiza sua Casa Legislativa
+
+{% endif %}
+
+{% if casa_list %}
+
2. Identifique sua Casa Legislativa
+
+
+{% endif %}
+
+{% if cmf %}
+
3. Informe os dados para a {{ casa.nome }} - {{ casa.municipio.uf }}
+
+{% endif %}
+
+{% if thanks %}
+
Obrigado por responder à nossa pesquisa!
+
Quadro resumo das informações prestadas:
+
+ {% for row in thanks %}
+ {{ row.0 }} | {{ row.1|default:"Não informado" }} |
+ {% endfor %}
+
+
Se desejar, você poderá alterar esses dados repetindo o processo
+{% endif %}
+
+{% endblock %}