From 2603d1ecef323e6ffdaab73f691039e26fb55409 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Sun, 10 Feb 2019 16:19:47 -0200 Subject: [PATCH] ajustes de layout no painel --- sapl/templates/painel/mensagem.html | 159 +++++++++--------- sapl/templates/painel/parlamentares.html | 52 +++--- sapl/templates/painel/votacao.html | 195 ++++++++++++----------- sapl/templates/painel/voto_nominal.html | 15 +- 4 files changed, 228 insertions(+), 193 deletions(-) diff --git a/sapl/templates/painel/mensagem.html b/sapl/templates/painel/mensagem.html index 9a1486789..99b32dcad 100644 --- a/sapl/templates/painel/mensagem.html +++ b/sapl/templates/painel/mensagem.html @@ -1,4 +1,5 @@ -{% load i18n %} +{% load i18n %} +{% load common_tags %} {% load render_bundle from webpack_loader %} {% load webpack_static from webpack_loader %} @@ -13,8 +14,11 @@ {% block head_title %}{% trans 'SAPL - Sistema de Apoio ao Processo Legislativo' %}{% endblock %} - - {% render_bundle 'global'%} + + {% render_chunk_vendors 'css' %} + {% render_bundle 'global' 'css' %} + {% render_bundle 'painel' 'css' %} + -

{{ context.title }}

@@ -108,4 +40,81 @@ + + {% render_chunk_vendors 'js' %} + {% render_bundle 'global' 'js' %} + {% render_bundle 'painel' 'js' %} + + diff --git a/sapl/templates/painel/parlamentares.html b/sapl/templates/painel/parlamentares.html index 527d08d14..583f4886f 100644 --- a/sapl/templates/painel/parlamentares.html +++ b/sapl/templates/painel/parlamentares.html @@ -1,4 +1,6 @@ -{% load i18n %} +{% load i18n %} +{% load common_tags %} + {% load render_bundle from webpack_loader %} {% load webpack_static from webpack_loader %} @@ -14,7 +16,10 @@ {% block head_title %}{% trans 'SAPL - Sistema de Apoio ao Processo Legislativo' %}{% endblock %} - {% render_bundle 'global'%} + {% render_chunk_vendors 'css' %} + {% render_bundle 'global' 'css' %} + {% render_bundle 'painel' 'css' %} + + + +

{{ context.title }}

+ +

+

+

+

+

+ + + + +
+
    +
+
+ + + + {% render_chunk_vendors 'js' %} + {% render_bundle 'global' 'js' %} + {% render_bundle 'painel' 'js' %} + - - -

{{ context.title }}

- -

-

-

-

-

- - - - -
-
    -
-
- - diff --git a/sapl/templates/painel/votacao.html b/sapl/templates/painel/votacao.html index 00e44dc2a..7f55d6e04 100644 --- a/sapl/templates/painel/votacao.html +++ b/sapl/templates/painel/votacao.html @@ -1,4 +1,4 @@ -{% load i18n %} +{% load i18n %} {% load render_bundle from webpack_loader %} {% load webpack_static from webpack_loader %} @@ -8,111 +8,116 @@ - - - - {% block head_title %}{% trans 'SAPL - Sistema de Apoio ao Processo Legislativo' %}{% endblock %} - + + + + {% block head_title %}{% trans 'SAPL - Sistema de Apoio ao Processo Legislativo' %}{% endblock %} + - {% render_bundle 'global'%} + {% render_chunk_vendors 'css' %} + {% render_bundle 'global' 'css' %} + {% render_bundle 'painel' 'css' %} + + + +

{{ context.title }}

+ +

+

+

+

+

+ + + + +
+
    +
+
+
+ + + + {% render_chunk_vendors 'js' %} + {% render_bundle 'global' 'js' %} + {% render_bundle 'painel' 'js' %} + + - - -

{{ context.title }}

- -

-

-

-

-

- - - - -
-
    -
-
-
- - + $("#counter").text(counter); + counter++; + }, + error: function(err) { + console.error(err); + }, + dataType: "json", + //complete: setTimeout(function() {poll()}, 5000), + timeout: 20000 // TODO: decrease + }) + })(); + }); + diff --git a/sapl/templates/painel/voto_nominal.html b/sapl/templates/painel/voto_nominal.html index f7fdf7782..aa1a8f9cf 100644 --- a/sapl/templates/painel/voto_nominal.html +++ b/sapl/templates/painel/voto_nominal.html @@ -1,4 +1,5 @@ {% load i18n %} +{% load common_tags %} {% load render_bundle from webpack_loader %} {% load webpack_static from webpack_loader %} @@ -9,7 +10,9 @@ {% block head_title %}{% trans 'SAPL - Sistema de Apoio ao Processo Legislativo' %}{% endblock %} - {% render_bundle 'global'%} + {% render_chunk_vendors 'css' %} + {% render_bundle 'global' 'css' %} + {% render_bundle 'painel' 'css' %} @@ -122,6 +129,10 @@ +{% render_chunk_vendors 'js' %} +{% render_bundle 'global' 'js' %} +{% render_bundle 'painel' 'js' %} +