diff --git a/votai_general_theme/templates/elections/area.html b/votai_general_theme/templates/elections/area.html index f56122e2..5deda4b0 100644 --- a/votai_general_theme/templates/elections/area.html +++ b/votai_general_theme/templates/elections/area.html @@ -60,24 +60,16 @@
  • Candidaturas
  • {{area.name}}
  • Candidatos para {{area}}

    - {% if area.get_containing_filterable_areas %} -

    Comunas de {{area}}

    - {% for comuna in area.get_containing_filterable_areas %} - {{comuna}} - {% if not forloop.last %} - , - {% endif%} - {% endfor %} - {% endif %} - -{% for p in area.parents %} + {% for p in area.parents %} {% with p.elections.first as election %} {% if election %} - {{p}} + {{p}} {% endif %} {% endwith %} {% endfor %} + + {% for p in area.parents %} diff --git a/votai_general_theme/templates/elections/election_card.html b/votai_general_theme/templates/elections/election_card.html index 0922c1ae..3e989e8c 100644 --- a/votai_general_theme/templates/elections/election_card.html +++ b/votai_general_theme/templates/elections/election_card.html @@ -3,7 +3,18 @@
    {% if election %} +

    {{election.name}}

    + {% if election.area.get_containing_filterable_areas %} +

    Comunas

    + {% for comuna in election.area.get_containing_filterable_areas %} + {{comuna}} + {% if not forloop.last %} + , + {% endif%} + {% endfor %} + {% endif %} +
    {% for candidate in election.candidates.all %}