diff --git a/sapl-frontend/src/apps/compilacao/scss/compilacao.scss b/sapl-frontend/src/apps/compilacao/scss/compilacao.scss index c84cf9d39..00c607126 100644 --- a/sapl-frontend/src/apps/compilacao/scss/compilacao.scss +++ b/sapl-frontend/src/apps/compilacao/scss/compilacao.scss @@ -164,6 +164,27 @@ a:link:after, a:visited:after { } .cp { + .cp-vigencias { + .nav-link { + padding: 0.5rem; + } + .dropdown-toggle::after { + zoom: 0.8; + margin: 0; + } + .dropdown-menu { + margin-left: 0.5rem; + } + .dropdown-item { + padding: 0; + a { + line-height: 1; + padding: 0.7rem; + } + } + } + + .desativado { .dtxt, .dtxt *, .dpt-link, .dpt-link * { diff --git a/sapl/templates/compilacao/subnav.html b/sapl/templates/compilacao/subnav.html new file mode 100644 index 000000000..5fe6758c0 --- /dev/null +++ b/sapl/templates/compilacao/subnav.html @@ -0,0 +1,25 @@ +{% load i18n %} +{% load compilacao_filters %} +{% load common_tags %} + diff --git a/sapl/templates/compilacao/text_list.html b/sapl/templates/compilacao/text_list.html index 05fc62893..e4bf1b7e2 100644 --- a/sapl/templates/compilacao/text_list.html +++ b/sapl/templates/compilacao/text_list.html @@ -32,76 +32,6 @@ {% block detail_content %} {{block.super}} {% endblock %} + {% include 'compilacao/text_list__embedded.html'%} -
- - {% if object_list %} -
-
- a - A -
-
- {% endif %} - - {% for key, values in view.get_vigencias.items %} - {% if forloop.first %} - - - - {% if view.inicio_vigencia and view.fim_vigencia %} - {% blocktrans with inicio_vigencia=view.inicio_vigencia fim_vigencia=view.fim_vigencia%} - Vigência entre {{inicio_vigencia}} e {{fim_vigencia}}. - {% endblocktrans%} - {% else%} - {% blocktrans with inicio_vigencia=dispositivo.inicio_vigencia%} - Vigência a partir de {{inicio_vigencia}}. - {% endblocktrans%} - {% endif %} -
- {% if view.ta_vigencia %} - {% trans 'Dada por '%}{{ta_pub_list|lookup:view.ta_vigencia}} - {% elif view.ta_vigencia and view.ta_vigencia != 0%} - {% trans 'Dada por '%}{{dispositivo.ta_publicado}} - {% endif %} -
- {% endif%} - {% endfor %} - {% else %} -
  • - -
  • - {% endif %} - {% endfor %} - - - - {% include 'compilacao/text_list_bloco.html'%} -
    {% endblock base_content %} diff --git a/sapl/templates/compilacao/text_list__embedded.html b/sapl/templates/compilacao/text_list__embedded.html index 908f8a039..d5ad78391 100644 --- a/sapl/templates/compilacao/text_list__embedded.html +++ b/sapl/templates/compilacao/text_list__embedded.html @@ -16,14 +16,14 @@ {% if forloop.first %} @@ -48,11 +48,14 @@ {% endif%} {% endfor %} {% else %} -
  • -