election_detail.jinja 895 Bytes
Newer Older
Sli's avatar
Sli committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
{% 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>
		{% for user in resp.candidate.all() %}
			<a href="{{url('core:user_profile', user_id=user.subscriber.id)}}"><h3>{{user.subscriber.first_name}} {{user.subscriber.last_name}} ({{user.subscriber.nick_name}})</h3></a>
			{% if user.subscriber.profile_pict %}
				<img src="{{user.subscriber.profile_pict.get_download_url()}}" alt="{% trans %}Profile{% endtrans %}"/>
			{% endif %}
			{% if user.program %}
				<h4>Programme</h4>
				<p>{{user.program}}</p>
			{% endif %}
		{% endfor %}
	{% endfor %}
{% endblock %}