Tweaks
This commit is contained in:
parent
9474fcd1d7
commit
6a797d3357
2 changed files with 22 additions and 12 deletions
|
@ -4,9 +4,9 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<div class="level">
|
<div class="level is-mobile">
|
||||||
<div class="level-left">
|
<div class="level-left is-flex-shrink-1 pr-3">
|
||||||
<div class="level-item">
|
<div class="level-item is-flex-shrink-1">
|
||||||
<h1 class="title">{% trans "Liste des élections" %}</h1>
|
<h1 class="title">{% trans "Liste des élections" %}</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -29,13 +29,13 @@
|
||||||
{% for e in election_list %}
|
{% for e in election_list %}
|
||||||
<div class="panel is-primary is-radiusless">
|
<div class="panel is-primary is-radiusless">
|
||||||
<div class="panel-heading is-size-6 is-radiusless">
|
<div class="panel-heading is-size-6 is-radiusless">
|
||||||
<div class="level">
|
<div class="level is-mobile mb-0">
|
||||||
<div class="level-left is-flex-shrink-1">
|
<div class="level-left is-flex-shrink-1">
|
||||||
<div class="level-item is-flex-shrink-1">
|
<div class="level-item is-flex-shrink-1">
|
||||||
<a class="has-text-primary-light" href="{% url 'election.view' e.pk %}"><u>{{ e.name }}</u></a>
|
<a class="has-text-primary-light" href="{% url 'election.view' e.pk %}"><u>{{ e.name }}</u></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="level-item">
|
<div class="level-item is-hidden-touch">
|
||||||
<span class="tag is-primary is-light">
|
<span class="tag is-primary is-light">
|
||||||
<span class="icon-text">
|
<span class="icon-text">
|
||||||
<span>{{ e.start_date|date:"d/m/Y H:i" }}</span>
|
<span>{{ e.start_date|date:"d/m/Y H:i" }}</span>
|
||||||
|
@ -49,31 +49,41 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="level-right">
|
<div class="level-right">
|
||||||
{% if not e.visible %}
|
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
|
{% if not e.visible %}
|
||||||
<span class="tag is-warning is-light">
|
<span class="tag is-warning is-light">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-eye-slash"></i>
|
<i class="fas fa-eye-slash"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Élection invisible" %}</span>
|
<span>{% trans "Élection invisible" %}</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if e.created_by == user %}
|
{% if e.created_by == user %}
|
||||||
<div class="level-item">
|
|
||||||
<a class="has-text-primary-light ml-3 has-tooltip-light" href="{% url 'election.admin' e.pk %}" data-tooltip="{% trans "Administrer" %}">
|
<a class="has-text-primary-light ml-3 has-tooltip-light" href="{% url 'election.admin' e.pk %}" data-tooltip="{% trans "Administrer" %}">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-cog"></i>
|
<i class="fas fa-cog"></i>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="is-hidden-desktop mt-2">
|
||||||
|
<span class="tag is-primary is-light">
|
||||||
|
<span class="icon-text">
|
||||||
|
<span>{{ e.start_date|date:"d/m/Y H:i" }}</span>
|
||||||
|
<span class="icon has-text-primary">
|
||||||
|
<i class="fas fa-long-arrow-alt-right"></i>
|
||||||
|
</span>
|
||||||
|
<span>{{ e.end_date|date:"d/m/Y H:i" }}</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if e.tallied or e.results_public or e.archived %}
|
{% if e.tallied or e.results_public or e.archived %}
|
||||||
<div class="panel-block">
|
<div class="panel-block">
|
||||||
<div class="is-flex-grow-1">
|
<div class="is-flex-grow-1">
|
||||||
|
|
|
@ -223,7 +223,7 @@
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
<div class="columns is-centered">
|
<div class="columns is-centered">
|
||||||
<div class="column is-two-thirds-fullhd is-12-desktop is-12-widescreen">
|
<div class="column is-two-thirds-fullhd is-12-desktop is-12-widescreen">
|
||||||
<section id="notifications" class="section pt-3">
|
<section id="notifications" class="section pt-0">
|
||||||
|
|
||||||
{% for message in messages %}
|
{% for message in messages %}
|
||||||
<div class="notification is-{{ message.level_tag|bulma_message_tag }} is-light">
|
<div class="notification is-{{ message.level_tag|bulma_message_tag }} is-light">
|
||||||
|
|
Loading…
Reference in a new issue