election_detail.jinja 904 Bytes
Newer Older
Sli's avatar
Sli committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
{% extends "core/base.jinja" %}

{% block title %}
{% trans %}Election list{% endtrans %}
{% endblock %}

{% block content %}
	{% if object.has_voted(request.user) %}
		A voté
	{% endif %}
	<h1>{{object.title}}</h1>
	<p>{{object.description}}</p>
	<p>{% trans %}End :{% endtrans %} {{object.end_date}}</p>
	{% for resp in object.responsability.all() %}
		<h2>{{resp.title}}</h2>
Sli's avatar
Sli committed
16 17 18 19
		{% for candidate in resp.candidate.all() %}
			<a href="{{url('core:user_profile', user_id=candidate.user.id)}}"><h3>{{candidate.user.first_name}} {{candidate.user.last_name}} ({{candidate.user.nick_name}})</h3></a>
			{% if candidate.user.profile_pict %}
				<img src="{{candidate.user.profile_pict.get_download_url()}}" alt="{% trans %}Profile{% endtrans %}"/>
Sli's avatar
Sli committed
20
			{% endif %}
Sli's avatar
Sli committed
21
			{% if candidate.program %}
Sli's avatar
Sli committed
22
				<h4>Programme</h4>
Sli's avatar
Sli committed
23
				<p>{{candidate.program}}</p>
Sli's avatar
Sli committed
24 25 26 27
			{% endif %}
		{% endfor %}
	{% endfor %}
{% endblock %}