Commit e6b37ef3 authored by Jean-Baptiste Lenglet's avatar Jean-Baptiste Lenglet Committed by Sli

Added date ranges in the elections list view.

parent 521b6151
{% extends "core/base.jinja" %}
{% block title %}
{% trans %}Election list{% endtrans %}
{% endblock %}
{%- trans %}Election list{% endtrans %}
{%- endblock %}
{% block head %}
{{ super() -}}
<style type="text/css">
small {
font-size: smaller;
}
</style>
{%- endblock %}
{% block content %}
{% for el in object_list %}
<p><a href="{{ url('election:detail', election_id=el.id) }}">{{el}}</a></p>
{% endfor %}
{% endblock %}
\ No newline at end of file
<h3>{% trans %}Current elections{% endtrans %}</h3>
<hr>
<ul>
{%- for election in object_list %}
<p>
<a href="{{ url('election:detail', election_id=election.id) }}">{{election}}</a>
<small>{% trans %}From{% endtrans %} {{ election.start_date|date("l d F Y") }} {% trans %}to{% endtrans %} {{ election.end_date|date("l d F Y") }}</small>
</p>
{%- endfor %}
</ul>
{%- endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment