Sith/election/templates/election/election_list.jinja

43 lines
1.6 KiB
Plaintext
Raw Normal View History

2016-12-05 19:18:03 +00:00
{% extends "core/base.jinja" %}
{% block title %}
{%- trans %}Election list{% endtrans %}
{%- endblock %}
{% block head %}
{{ super() -}}
<style type="text/css">
small {
font-size: smaller;
}
time {
font-weight: bolder;
}
</style>
{%- endblock %}
2016-12-05 19:18:03 +00:00
{% block content %}
<h3>{% trans %}Current elections{% endtrans %}</h3>
{%- for election in object_list %}
<hr>
<section>
<h4>
<a href="{{ url('election:detail', election_id=election.id) }}">{{ election }}</a>
</h4>
<p>
{% trans %}Applications open from{% endtrans %}
2016-12-25 22:36:34 +00:00
<time datetime="{{ election.start_candidature }}">{{ election.start_candidature|localtime|date("l d F Y") }}</time>{% trans %} at {% endtrans %}<time>{{ election.start_candidature|localtime|time("G:i") }}</time>
{% trans %}to{% endtrans %}
2016-12-25 22:36:34 +00:00
<time datetime="{{ election.end_candidature }}">{{ election.end_candidature|localtime|date("l d F Y") }}</time>{% trans %} at {% endtrans %}<time>{{ election.end_candidature|time("G:i") }}</time>
</p>
<p>
{% trans %}Polls open from{% endtrans %}
2016-12-25 22:36:34 +00:00
<time datetime="{{ election.start_date }}">{{ election.start_date|localtime|date("l d F Y") }}</time>{% trans %} at {% endtrans %}<time>{{ election.start_date|localtime|time("G:i") }}</time>
{% trans %}to{% endtrans %}
2016-12-25 22:36:34 +00:00
<time datetime="{{ election.end_date }}">{{ election.end_date|localtime|date("l d F Y") }}</time>{% trans %} at {% endtrans %}<time>{{ election.end_date|localtime|time("G:i") }}</time>
</p>
<p>{{ election.description }}</p>
</section>
{%- endfor %}
{%- endblock %}