diff --git a/election/templates/election/election_detail.jinja b/election/templates/election/election_detail.jinja index 6fa32fca..c9205da2 100644 --- a/election/templates/election/election_detail.jinja +++ b/election/templates/election/election_detail.jinja @@ -1,10 +1,65 @@ {% extends "core/base.jinja" %} {% block title %} -{% trans %}Election list{% endtrans %} +{{object.title}} {% endblock %} +{% block head %} +{{ super() -}} + +{%- endblock %} + {% block content %} +

{{ object.title }}

+
+
+

+ {% trans %}Polls close {% endtrans %} + at +

+
+
+ + {%- set election_lists = object.election_list.all() -%} + + + {%- for election_list in election_lists %} + + {%- endfor %} + + {%- for role in object.role.all() %} + + + + {%- for election_list in election_lists %} + + {%- endfor %} + + + {%- endfor %} +
{{election_list.title}}
{{role.title}}
+
    + {%- for candidature in election_list.candidature.filter(role=role) %} +
  • +
    + {%- if candidature.user.profile_pict %} + {% trans %}Profile{% endtrans %} + {%- endif %} +
    + {{ candidature.user.first_name }} {{candidature.user.nick_name or ''}} {{ candidature.user.last_name }} + {{ candidature.program or '' }} +
    +
    +
  • + {%- endfor %} +
+
+
+ {% if object.has_voted(request.user) %} A voté {% endif %}