diff --git a/sigi/apps/casas/templates/admin/casas/gerentes_list.html b/sigi/apps/casas/templates/admin/casas/gerentes_list.html new file mode 100644 index 0000000..f00518f --- /dev/null +++ b/sigi/apps/casas/templates/admin/casas/gerentes_list.html @@ -0,0 +1,104 @@ +{% extends 'admin/base_site.html' %} +{% load i18n static djbs_extras %} + +{% block breadcrumbs %} + + +{% endblock %} + +{% block content_title %} +
{% translate "Lista de gerentes" %}
+{% endblock %} + +{% block content %} + {% comment %} {% endcomment %} + + {% for gerente in object_list %} +
+
+ {% if gerente.foto %} + + {% else %} + {% icon "user" %} + {% endif %} + {{ gerente.nome_completo }} +
+
+

+ + {% blocktrans with total=gerente.tot_casas %} + Atende a {{ total }} casas legislativas. + + {% endblocktrans %} +

+
+ {% for regiao, tot_casas, ufs in gerente.regioes %} +
+

+ +

+
+
+ + + {% blocktrans with total=tot_casas %} + Ver as {{ total }} casas atendidas na região {{ regiao }} no mapa. + {% endblocktrans %} + + + + + + + + {% for tipo in tipos_orgao %} + + {% endfor %} + + + + {% for uf_rec in ufs %} + + {% for value in uf_rec|slice:"1:" %} + {% if forloop.first %} + + {% else %} + + {% endif %} + {% endfor %} + + {% endfor %} + +
{% trans "Unidade da Federação" %}{% trans "Total de Casas" %}{{ tipo.nome }}
+ + {{ value }} + + + {% if forloop.counter > 2 and value > 0 %} + + {{ value }} + + {% else %} + {{ value|default:"-" }} + {% endif %} +
+
+
+
+ {% endfor %} +
+
+
+ {% endfor %} +{% endblock %} \ No newline at end of file diff --git a/sigi/static/css/base_sigi.css b/sigi/static/css/base_sigi.css index b12f269..6afbd59 100644 --- a/sigi/static/css/base_sigi.css +++ b/sigi/static/css/base_sigi.css @@ -79,4 +79,102 @@ --bs-form-valid-border-color: #39c08f; --bs-form-invalid-color: #dc3545; --bs-form-invalid-border-color: #dc3545; +} + +.user-image { + width: 24px; + height: 24px; +} + +.right-align { + text-align: right; +} + +::sigi { + .root { + /* Cores Primárias */ + --bs-primary: #00305c; + --bs-primary-rgb: 0, 48, 92; + --bs-primary-text-emphasis: #ffffff; + --bs-primary-bg-subtle: rgba(0, 48, 92, 0.1); + --bs-primary-border-subtle: rgba(0, 48, 92, 0.3); + + /* Cores Secundárias */ + --bs-secondary: #004c00; + --bs-secondary-rgb: 0, 76, 0; + --bs-secondary-text-emphasis: #ffffff; + --bs-secondary-bg-subtle: rgba(0, 76, 0, 0.1); + --bs-secondary-border-subtle: rgba(0, 76, 0, 0.3); + + /* Cores de Sucesso */ + --bs-success: #005e2c; + --bs-success-rgb: 0, 94, 44; + --bs-success-text-emphasis: #ffffff; + --bs-success-bg-subtle: rgba(0, 94, 44, 0.1); + --bs-success-border-subtle: rgba(0, 94, 44, 0.3); + + /* Cores Informativas */ + --bs-info: #004085; + --bs-info-rgb: 0, 64, 133; + --bs-info-text-emphasis: #ffffff; + --bs-info-bg-subtle: rgba(0, 64, 133, 0.1); + --bs-info-border-subtle: rgba(0, 64, 133, 0.3); + + /* Cores de Destaque (Warning) */ + --bs-warning: #c97411; + --bs-warning-rgb: 201, 116, 17; + --bs-warning-text-emphasis: #ffffff; + --bs-warning-bg-subtle: rgba(201, 116, 17, 0.1); + --bs-warning-border-subtle: rgba(201, 116, 17, 0.3); + + /* Cores de Alerta (Danger) */ + --bs-danger: #ad443d; + --bs-danger-rgb: 173, 68, 61; + --bs-danger-text-emphasis: #ffffff; + --bs-danger-bg-subtle: rgba(173, 68, 61, 0.1); + --bs-danger-border-subtle: rgba(173, 68, 61, 0.3); + + /* Cores Claras (Light) */ + --bs-light: #f8f9fa; + --bs-light-rgb: 248, 249, 250; + --bs-light-text-emphasis: #212529; + --bs-light-bg-subtle: rgba(248, 249, 250, 0.5); + --bs-light-border-subtle: rgba(248, 249, 250, 0.7); + + /* Cores Escuras (Dark) */ + --bs-dark: #212529; + --bs-dark-rgb: 33, 37, 41; + --bs-dark-text-emphasis: #ffffff; + --bs-dark-bg-subtle: rgba(33, 37, 41, 0.1); + --bs-dark-border-subtle: rgba(33, 37, 41, 0.3); + + /* Neutros e Fundo */ + --bs-white-rgb: 255, 255, 255; + --bs-black-rgb: 0, 0, 0; + --bs-body-color: #212529; + --bs-body-color-rgb: 33, 37, 41; + --bs-body-bg: #ffffff; + --bs-body-bg-rgb: 255, 255, 255; + + /* Realces */ + --bs-emphasis-color: #00305c; + --bs-emphasis-color-rgb: 0, 48, 92; + --bs-highlight-color: #c97411; + --bs-highlight-bg: rgba(201, 116, 17, 0.2); + --bs-border-color: rgba(0, 0, 0, 0.125); + --bs-border-color-translucent: rgba(33, 37, 41, 0.2); + --bs-focus-ring-color: rgba(0, 48, 92, 0.25); + + /* Links */ + --bs-link-color: #00305c; + --bs-link-color-rgb: 0, 48, 92; + --bs-link-hover-color: #004085; + --bs-link-hover-color-rgb: 0, 64, 133; + + /* Formulários */ + --bs-form-valid-color: #005e2c; + --bs-form-valid-border-color: rgba(0, 94, 44, 0.5); + --bs-form-invalid-color: #ad443d; + --bs-form-invalid-border-color: rgba(173, 68, 61, 0.5); + } } \ No newline at end of file