button to create new elections

This commit is contained in:
imperosol
2026-06-01 12:39:48 +02:00
parent 18cc60d286
commit 0f518244ff
@@ -7,7 +7,7 @@
{% block head %}
{{ super() -}}
<style type="text/css">
<style>
small {
font-size: smaller;
}
@@ -20,6 +20,9 @@
{% block content %}
<h3>{% trans %}Current elections{% endtrans %}</h3>
<a class="btn btn-blue" href="{{ url("election:create") }}">
<i class="fa fa-plus"></i>{% trans %}New election{% endtrans %}
</a>
{%- for election in object_list %}
<hr>
<section>
@@ -32,7 +35,7 @@
{% trans %} at {% endtrans %}<time>{{ election.start_candidature|localtime|time(DATETIME_FORMAT) }}</time>
{% trans %}to{% endtrans %}
<time datetime="{{ election.end_candidature }}">{{ election.end_candidature|localtime|date(DATETIME_FORMAT) }}</time>
{% trans %} at {% endtrans %}<time>{{ election.end_candidature|time(DATETIME_FORMAT) }}</time>
{% trans %} at {% endtrans %}<time>{{ election.end_candidature|localtime|time(DATETIME_FORMAT) }}</time>
</p>
<p>
{% trans %}Polls open from{% endtrans %}