On rajoute un lien vers la liste des élections et un bouton pour créer une élection

This commit is contained in:
Tom Hubrecht 2021-03-27 01:21:44 +01:00
parent 80305ae249
commit 48d169e1f4
2 changed files with 26 additions and 1 deletions

View file

@ -4,7 +4,26 @@
{% block content %} {% block content %}
<h1 class="title">{% trans "Liste des élections" %}</h1> <div class="level">
<div class="level-left">
<div class="level-item">
<h1 class="title">{% trans "Liste des élections" %}</h1>
</div>
</div>
{% if perms.elections.is_admin %}
<div class="level-right">
<div class="level-item">
<a class="button is-light is-outlined is-primary" href={% url 'election.create' %}>
<span class="icon">
<i class="fas fa-plus"></i>
</span>
<span>{% trans "Créer une élection" %}</span>
</a>
</div>
</div>
{% endif %}
</div>
<hr> <hr>
{% for e in election_list %} {% for e in election_list %}

View file

@ -68,6 +68,12 @@
<h1 class="has-text-primary-light is-size-1 is-family-secondary">Kadenios</h1> <h1 class="has-text-primary-light is-size-1 is-family-secondary">Kadenios</h1>
</a> </a>
</div> </div>
<div class="level-item px-4">
<a href="{% url "election.list" %}">
<h3 class="has-text-primary-light has-text-weight-semibold is-size-3">{% trans "Élections" %}</h3>
</a>
</div>
</div> </div>
{% block auth %} {% block auth %}