diff --git a/app/org_eleicoes/votepeloclima/candidature/static/scss/candidaturesearch.scss b/app/org_eleicoes/votepeloclima/candidature/static/scss/candidaturesearch.scss index ed940671..fc0d44cd 100644 --- a/app/org_eleicoes/votepeloclima/candidature/static/scss/candidaturesearch.scss +++ b/app/org_eleicoes/votepeloclima/candidature/static/scss/candidaturesearch.scss @@ -117,6 +117,25 @@ legend.form-label { color: var(--bs-secondary); } } + + .state-city { + font-size: 12px; + } +} + +.pagination { + --bs-pagination-bg: var(--bs-tertiary-bg); + --bs-pagination-color: var(--bs-secondary); + --bs-pagination-hover-color: var(--bs-secondary); + + --bs-pagination-active-color: var(--bs-tertiary-bg); + --bs-pagination-active-bg: var(--bs-secondary); + --bs-pagination-active-border-color: var(--bs-secondary); + --bs-pagination-focus-color: var(--bs-secondary); + + .page-link:focus { + box-shadow: none; + } } // Hide Inputs diff --git a/app/org_eleicoes/votepeloclima/candidature/templates/candidature/candidature_search.html b/app/org_eleicoes/votepeloclima/candidature/templates/candidature/candidature_search.html index 856696a5..ba79e45e 100644 --- a/app/org_eleicoes/votepeloclima/candidature/templates/candidature/candidature_search.html +++ b/app/org_eleicoes/votepeloclima/candidature/templates/candidature/candidature_search.html @@ -45,7 +45,7 @@
Filtrar resul Foto de {{ candidature.legal_name }}
-

{{ candidature.get_state_display }} - {{ candidature.get_city_display }}

+

{{ candidature.get_state_display }} - {{ candidature.get_city_display }}

{{ candidature.ballot_name }}
@@ -55,9 +55,6 @@
{{ candidature.get_intended_position_display }} | {{ candidature.get_politic

{{ candidature.get_proposes_display|join:" / "|escape }}

- {% if candidature.is_collective_mandate %} - Candidatura Coletiva - {% endif %}
{% endfor %} +
diff --git a/app/org_eleicoes/votepeloclima/candidature/views/filters.py b/app/org_eleicoes/votepeloclima/candidature/views/filters.py index b485542e..be36652a 100644 --- a/app/org_eleicoes/votepeloclima/candidature/views/filters.py +++ b/app/org_eleicoes/votepeloclima/candidature/views/filters.py @@ -9,6 +9,7 @@ class CandidatureSearchView(ListView): model = Candidature template_name = "candidature/candidature_search.html" context_object_name = "candidatures" + paginate_by = 12 search_filter_fields = [ "legal_name", diff --git a/app/org_eleicoes/votepeloclima/static/scss/icons.scss b/app/org_eleicoes/votepeloclima/static/scss/icons.scss index 60d54943..9250f57d 100644 --- a/app/org_eleicoes/votepeloclima/static/scss/icons.scss +++ b/app/org_eleicoes/votepeloclima/static/scss/icons.scss @@ -329,4 +329,22 @@ background-repeat: no-repeat; display: inline-block; background-image: url('data:image/svg+xml,'); +} + +.ds-paginator-previous { + width: 12px; + height: 13px; + background-size: contain; + background-repeat: no-repeat; + display: inline-block; + background-image: url('data:image/svg+xml,'); +} + +.ds-paginator-next { + width: 12px; + height: 13px; + background-size: contain; + background-repeat: no-repeat; + display: inline-block; + background-image: url('data:image/svg+xml,'); } \ No newline at end of file