From 8ccc793a436145cb0fd07b4cd41b5ba5d65336bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Tue, 21 Oct 2014 23:26:36 -0200 Subject: [PATCH] Improve dropdown info in Servicos SEIT dashboard display --- sigi/context_processors.py | 2 +- templates/snippets/modules/charts-convenios.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sigi/context_processors.py b/sigi/context_processors.py index 6a34092..2dd7c4f 100644 --- a/sigi/context_processors.py +++ b/sigi/context_processors.py @@ -167,7 +167,7 @@ def busca_informacoes_seit(): for tipo_servico in TipoServico.objects.all(): por_mes = [] for mes in range(1,13): - por_mes.append({'mes': '%s/%s' % (mes,datetime.date.today().year), + por_mes.append({'mes': '%02d/%s' % (mes,datetime.date.today().year), 'total': tipo_servico.servico_set.filter(data_desativacao=None, data_ativacao__year=mes_atual.year, data_ativacao__month=mes).count()}) result.append( diff --git a/templates/snippets/modules/charts-convenios.html b/templates/snippets/modules/charts-convenios.html index 37186e3..3f24b5b 100644 --- a/templates/snippets/modules/charts-convenios.html +++ b/templates/snippets/modules/charts-convenios.html @@ -65,12 +65,12 @@ {{ servico.novos_mes_atual }} {% else %} - + {{ servico.nome }} - - + + {% for mes in servico.novos_por_mes %} - + {% endfor %}