On rajoute un lien vers la liste des élections et un bouton pour créer une élection
This commit is contained in:
parent
80305ae249
commit
48d169e1f4
2 changed files with 26 additions and 1 deletions
|
@ -4,7 +4,26 @@
|
|||
|
||||
{% 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>
|
||||
|
||||
{% for e in election_list %}
|
||||
|
|
|
@ -68,6 +68,12 @@
|
|||
<h1 class="has-text-primary-light is-size-1 is-family-secondary">Kadenios</h1>
|
||||
</a>
|
||||
</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>
|
||||
|
||||
{% block auth %}
|
||||
|
|
Loading…
Reference in a new issue