diff --git a/sigi/apps/home/templates/home/mapfilter.html b/sigi/apps/home/templates/home/mapfilter.html index 98247b9..62824e9 100644 --- a/sigi/apps/home/templates/home/mapfilter.html +++ b/sigi/apps/home/templates/home/mapfilter.html @@ -42,8 +42,7 @@ {% for o in tipos_orgao %}

@@ -55,14 +54,13 @@

@@ -70,7 +68,7 @@

@@ -84,13 +82,13 @@

@@ -98,7 +96,7 @@

@@ -120,7 +118,7 @@

@@ -136,13 +134,13 @@

@@ -150,7 +148,7 @@

diff --git a/sigi/apps/home/views.py b/sigi/apps/home/views.py index 9f3365d..32ec260 100644 --- a/sigi/apps/home/views.py +++ b/sigi/apps/home/views.py @@ -170,6 +170,14 @@ def openmap(request): (s, n, UnidadeFederativa.objects.filter(regiao=s)) for s, n in UnidadeFederativa.REGIAO_CHOICES ] + context["pre_tipos_orgao"] = request.GET.getlist("tipo_orgao", None) + context["pre_tipos_servico"] = request.GET.getlist("tipo_servico", None) + context["pre_tipos_convenio"] = request.GET.getlist( + "tipo_convenio", None + ) + context["pre_ufs"] = request.GET.getlist("uf", None) + context["pre_gerentes"] = request.GET.getlist("gerente", None) + return render(request, "home/openmap.html", context) else: if request.user.is_anonymous():