Template updates
This commit is contained in:
parent
50b9759b25
commit
d7d0717940
19 changed files with 197 additions and 126 deletions
|
@ -17,7 +17,7 @@
|
||||||
<div class="field is-grouped is-centered">
|
<div class="field is-grouped is-centered">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<button class="button is-fullwidth is-outlined is-primary is-light">
|
<button class="button is-fullwidth is-outlined is-primary is-light">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Enregistrer" %}</span>
|
<span>{% trans "Enregistrer" %}</span>
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-primary" href="{% url 'election.voters' election.pk %}#v_{{ anchor }}">
|
<a class="button is-primary" href="{% url 'election.voters' election.pk %}#v_{{ anchor }}">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-undo-alt"></i>
|
<i class="fas fa-undo-alt"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Retour" %}</span>
|
<span>{% trans "Retour" %}</span>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
{# Liste des votant·e·s #}
|
{# Liste des votant·e·s #}
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<a class="button is-primary is-light is-outlined" href="{% url 'election.voters' election.pk %}">
|
<a class="button is-primary is-light is-outlined" href="{% url 'election.voters' election.pk %}">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-list"></i>
|
<i class="fas fa-list"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Votant·e·s" %}</span>
|
<span>{% trans "Votant·e·s" %}</span>
|
||||||
|
@ -51,11 +51,15 @@
|
||||||
{# Dates d'ouverture de l'élection #}
|
{# Dates d'ouverture de l'élection #}
|
||||||
<div class="level-left">
|
<div class="level-left">
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<span class="tag is-medium is-primary">{{ election.start_date|date:"d/m/Y H:i" }}</span>
|
<span class="tag is-medium is-primary">
|
||||||
|
<span class="icon-text">
|
||||||
|
<span>{{ election.start_date|date:"d/m/Y H:i" }}</span>
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-long-arrow-alt-right"></i>
|
<i class="fas fa-long-arrow-alt-right"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="tag is-medium is-primary">{{ election.end_date|date:"d/m/Y H:i" }}</span>
|
<span>{{ election.end_date|date:"d/m/Y H:i" }}</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{# Créateurice de l'élection #}
|
{# Créateurice de l'élection #}
|
||||||
|
@ -69,10 +73,12 @@
|
||||||
<div class="level-right">
|
<div class="level-right">
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<div class="tag is-medium is-outlined is-success is-light">
|
<div class="tag is-medium is-outlined is-success is-light">
|
||||||
|
<span class="icon-text">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Votre vote a bien été enregistré." %}</span>
|
<span>{% trans "Votre vote a bien été enregistré." %}</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -87,10 +93,12 @@
|
||||||
<div class="column is-one-third tile is-parent">
|
<div class="column is-one-third tile is-parent">
|
||||||
<a class="tile is-child notification is-primary" href="{% url 'election.vote' election.questions.first.pk %}">
|
<a class="tile is-child notification is-primary" href="{% url 'election.vote' election.questions.first.pk %}">
|
||||||
<div class="subtitle has-text-centered">
|
<div class="subtitle has-text-centered">
|
||||||
|
<span class="icon-text">
|
||||||
<span class="icon has-text-white">
|
<span class="icon has-text-white">
|
||||||
<i class="fas fa-vote-yea"></i>
|
<i class="fas fa-vote-yea"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-3">{% trans "Voter" %}</span>
|
<span class="ml-3">{% trans "Voter" %}</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -114,19 +122,23 @@
|
||||||
{% if election.restricted %}
|
{% if election.restricted %}
|
||||||
<a class="tile is-child notification is-primary" href="{% url 'auth.election' election.pk %}?next={% url 'election.view' election.pk %}">
|
<a class="tile is-child notification is-primary" href="{% url 'auth.election' election.pk %}?next={% url 'election.view' election.pk %}">
|
||||||
<div class="subtitle has-text-centered mb-2">
|
<div class="subtitle has-text-centered mb-2">
|
||||||
|
<span class="icon-text">
|
||||||
<span class="icon has-text-white">
|
<span class="icon has-text-white">
|
||||||
<i class="fas fa-unlock"></i>
|
<i class="fas fa-unlock"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-3">{% trans "Connexion par identifiants" %}</span>
|
<span class="ml-3">{% trans "Connexion par identifiants" %}</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="tile is-child notification is-primary" href="{% url 'authens:login.cas' %}">
|
<a class="tile is-child notification is-primary" href="{% url 'authens:login.cas' %}">
|
||||||
<div class="subtitle has-text-centered mb-2">
|
<div class="subtitle has-text-centered mb-2">
|
||||||
|
<span class="icon-text">
|
||||||
<span class="icon has-text-white">
|
<span class="icon has-text-white">
|
||||||
<i class="fas fa-school"></i>
|
<i class="fas fa-school"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-3">{% trans "Connexion via CAS" %}</span>
|
<span class="ml-3">{% trans "Connexion via CAS" %}</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -164,6 +176,7 @@
|
||||||
<div class="panel-block">
|
<div class="panel-block">
|
||||||
{% if election.tallied and election.results_public %}
|
{% if election.tallied and election.results_public %}
|
||||||
<span class="tag {% if o.winner %}is-success{% else %}is-primary{% endif %}">
|
<span class="tag {% if o.winner %}is-success{% else %}is-primary{% endif %}">
|
||||||
|
<span class="icon-text">
|
||||||
{% if q.vote_type == "select" %}
|
{% if q.vote_type == "select" %}
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-vote-yea"></i>
|
<i class="fas fa-vote-yea"></i>
|
||||||
|
@ -178,6 +191,7 @@
|
||||||
<span>{{ forloop.counter }}</span>
|
<span>{{ forloop.counter }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<span class="ml-2">{{ o.text }}</span>
|
<span class="ml-2">{{ o.text }}</span>
|
||||||
|
|
|
@ -16,10 +16,12 @@
|
||||||
<div class="dropdown is-right">
|
<div class="dropdown is-right">
|
||||||
<div class="dropdown-trigger">
|
<div class="dropdown-trigger">
|
||||||
<button class="button" aria-haspopup="true" aria-controls="dropdown-menu">
|
<button class="button" aria-haspopup="true" aria-controls="dropdown-menu">
|
||||||
<span class="icon is-small">
|
<span class="icon-text">
|
||||||
|
<span class="icon">
|
||||||
<i class="fas fa-cog" aria-hidden="true"></i>
|
<i class="fas fa-cog" aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Actions" %}</span>
|
<span>{% trans "Actions" %}</span>
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -102,11 +104,15 @@
|
||||||
{# Dates d'ouverture de l'élection #}
|
{# Dates d'ouverture de l'élection #}
|
||||||
<div class="level-left">
|
<div class="level-left">
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<span class="tag is-medium is-primary">{{ election.start_date|date:"d/m/Y H:i" }}</span>
|
<span class="tag is-medium is-primary">
|
||||||
|
<span class="icon-text">
|
||||||
|
<span>{{ election.start_date|date:"d/m/Y H:i" }}</span>
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-long-arrow-alt-right"></i>
|
<i class="fas fa-long-arrow-alt-right"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="tag is-medium is-primary">{{ election.end_date|date:"d/m/Y H:i" }}</span>
|
<span>{{ election.end_date|date:"d/m/Y H:i" }}</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -130,17 +136,21 @@
|
||||||
{% if election.start_date > current_time %}
|
{% if election.start_date > current_time %}
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<a class="tag is-outlined is-light is-danger" href="{% url 'election.del-question' q.pk %}">
|
<a class="tag is-outlined is-light is-danger" href="{% url 'election.del-question' q.pk %}">
|
||||||
|
<span class="icon-text">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-times"></i>
|
<i class="fas fa-times"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Supprimer" %}</span>
|
<span>{% trans "Supprimer" %}</span>
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="tag is-outlined is-light is-info" href="{% url 'election.mod-question' q.pk %}">
|
<a class="tag is-outlined is-light is-info ml-1" href="{% url 'election.mod-question' q.pk %}">
|
||||||
|
<span class="icon-text">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-edit"></i>
|
<i class="fas fa-edit"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Modifier" %}</span>
|
<span>{% trans "Modifier" %}</span>
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -155,8 +165,23 @@
|
||||||
{# Liste des options possibles #}
|
{# Liste des options possibles #}
|
||||||
{% for o in q.options.all %}
|
{% for o in q.options.all %}
|
||||||
<div class="panel-block">
|
<div class="panel-block">
|
||||||
{% if election.tallied %}
|
{% if election.start_date > current_time %}
|
||||||
|
<span class="tags has-addons mb-0">
|
||||||
|
<a class="tag is-danger is-light is-outlined has-tooltip-primary mb-0" data-tooltip="{% trans "Supprimer" %}" href="{% url 'election.del-option' o.pk %}">
|
||||||
|
<span class="icon">
|
||||||
|
<i class="fas fa-times"></i>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<a class="tag is-info is-light is-outlined has-tooltip-primary mb-0" data-tooltip="{% trans "Modifier" %}" href="{% url 'election.mod-option' o.pk %}">
|
||||||
|
<span class="icon">
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
{% elif election.tallied %}
|
||||||
<span class="tag {% if o.winner %}is-success{% else %}is-primary{% endif %}">
|
<span class="tag {% if o.winner %}is-success{% else %}is-primary{% endif %}">
|
||||||
|
<span class="icon-text">
|
||||||
{% if q.vote_type == "select" %}
|
{% if q.vote_type == "select" %}
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-vote-yea"></i>
|
<i class="fas fa-vote-yea"></i>
|
||||||
|
@ -172,6 +197,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</span>
|
||||||
|
|
||||||
<span class="ml-2">{{ o.text }}</span>
|
<span class="ml-2">{{ o.text }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -27,40 +27,60 @@
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
{% for e in election_list %}
|
{% for e in election_list %}
|
||||||
<div class="message is-primary">
|
<div class="panel is-primary">
|
||||||
<div class="message-header is-size-6 is-radiusless">
|
<div class="panel-heading is-size-6 is-radiusles">
|
||||||
<div>
|
<div class="level">
|
||||||
<a href="{% url 'election.view' e.pk %}">{{ e.name }}</a>
|
<div class="level-left is-flex-shrink-1">
|
||||||
<span class="tag is-primary is-light ml-3">{{ e.start_date|date:"d/m/Y H:i" }}</span>
|
<div class="level-item is-flex-shrink-1">
|
||||||
<span class="icon has-text-primary-light">
|
<a class="has-text-primary-light" href="{% url 'election.view' e.pk %}"><u>{{ e.name }}</u></a>
|
||||||
<i class="fas fa-long-arrow-alt-right"></i>
|
|
||||||
</span>
|
|
||||||
<span class="tag is-primary is-light">{{ e.end_date|date:"d/m/Y H:i" }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div class="level-item">
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<div class="level-right">
|
||||||
{% if e.tallied %}
|
{% if e.tallied %}
|
||||||
<span class="tag is-success is-light ml-3">{% trans "Élection dépouillée" %}</span>
|
<div class="level-item">
|
||||||
|
<span class="tag is-success is-light">{% trans "Élection dépouillée" %}</span>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if e.results_public %}
|
{% if e.results_public %}
|
||||||
<span class="tag is-info is-light ml-3">{% trans "Élection publiée" %}</span>
|
<div class="level-item">
|
||||||
|
<span class="tag is-info is-light">{% trans "Élection publiée" %}</span>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if e.archived %}
|
{% if e.archived %}
|
||||||
<span class="tag is-danger is-light ml-3">{% trans "Élection archivée" %}</span>
|
<div class="level-item">
|
||||||
|
<span class="tag is-danger is-light">{% trans "Élection archivée" %}</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>
|
||||||
<p class="message-body">
|
</div>
|
||||||
|
|
||||||
|
<p class="panel-block">
|
||||||
{{ e.description|linebreaksbr }}
|
{{ e.description|linebreaksbr }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<div class="field is-grouped is-centered">
|
<div class="field is-grouped is-centered">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<button class="button is-fullwidth is-outlined is-primary is-light">
|
<button class="button is-fullwidth is-outlined is-primary is-light">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Enregistrer" %}</span>
|
<span>{% trans "Enregistrer" %}</span>
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-primary" href="{% url 'election.admin' election.pk %}">
|
<a class="button is-primary" href="{% url 'election.admin' election.pk %}">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-undo-alt"></i>
|
<i class="fas fa-undo-alt"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Retour" %}</span>
|
<span>{% trans "Retour" %}</span>
|
||||||
|
|
|
@ -6,14 +6,14 @@
|
||||||
|
|
||||||
<div class="level">
|
<div class="level">
|
||||||
{# Titre de l'élection #}
|
{# Titre de l'élection #}
|
||||||
<div class="level-left">
|
<div class="level-left is-flex-shrink-1">
|
||||||
<h1 class="title">{{ election.name }}</h1>
|
<h1 class="title">{{ election.name }}</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="level-right">
|
<div class="level-right">
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<a class="button is-primary" href="{% if can_delete %}{% url 'election.admin' election.pk %}{% else %}{% url 'election.view' election.pk %}{% endif %}">
|
<a class="button is-primary" href="{% if can_delete %}{% url 'election.admin' election.pk %}{% else %}{% url 'election.view' election.pk %}{% endif %}">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-undo-alt"></i>
|
<i class="fas fa-undo-alt"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Retour" %}</span>
|
<span>{% trans "Retour" %}</span>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<div class="field is-grouped is-centered">
|
<div class="field is-grouped is-centered">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<button class="button is-fullwidth is-outlined is-primary is-light">
|
<button class="button is-fullwidth is-outlined is-primary is-light">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Envoyer" %}</span>
|
<span>{% trans "Envoyer" %}</span>
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-primary" href="{% url 'election.upload-voters' election.pk %}">
|
<a class="button is-primary" href="{% url 'election.upload-voters' election.pk %}">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-undo-alt"></i>
|
<i class="fas fa-undo-alt"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Retour" %}</span>
|
<span>{% trans "Retour" %}</span>
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<div class="field is-grouped is-centered">
|
<div class="field is-grouped is-centered">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<button class="button is-fullwidth is-outlined is-primary is-light">
|
<button class="button is-fullwidth is-outlined is-primary is-light">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Enregistrer" %}</span>
|
<span>{% trans "Enregistrer" %}</span>
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-primary" href="{% url 'election.admin' option.question.election.pk %}#o_{{ option.pk }}">
|
<a class="button is-primary" href="{% url 'election.admin' option.question.election.pk %}#o_{{ option.pk }}">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-undo-alt"></i>
|
<i class="fas fa-undo-alt"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Retour" %}</span>
|
<span>{% trans "Retour" %}</span>
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<div class="field is-grouped is-centered">
|
<div class="field is-grouped is-centered">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<button class="button is-fullwidth is-outlined is-primary is-light">
|
<button class="button is-fullwidth is-outlined is-primary is-light">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Enregistrer" %}</span>
|
<span>{% trans "Enregistrer" %}</span>
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-primary" href="{% url 'election.admin' question.election.pk %}#q_{{ question.pk }}">
|
<a class="button is-primary" href="{% url 'election.admin' question.election.pk %}#q_{{ question.pk }}">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-undo-alt"></i>
|
<i class="fas fa-undo-alt"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Retour" %}</span>
|
<span>{% trans "Retour" %}</span>
|
||||||
|
|
|
@ -12,10 +12,12 @@
|
||||||
</th>
|
</th>
|
||||||
{% for i in range %}
|
{% for i in range %}
|
||||||
<th class="has-text-centered">
|
<th class="has-text-centered">
|
||||||
|
<span class="icon-text">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-layer-group"></i>
|
<i class="fas fa-layer-group"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{{ i }}</span>
|
<span>{{ i }}</span>
|
||||||
|
</span>
|
||||||
</th>
|
</th>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -25,10 +27,12 @@
|
||||||
{% with loser=forloop.counter %}
|
{% with loser=forloop.counter %}
|
||||||
<tr>
|
<tr>
|
||||||
<th class="has-text-centered">
|
<th class="has-text-centered">
|
||||||
|
<span class="icon-text">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-layer-group"></i>
|
<i class="fas fa-layer-group"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{{ forloop.counter }}</span>
|
<span>{{ forloop.counter }}</span>
|
||||||
|
</span>
|
||||||
</th>
|
</th>
|
||||||
|
|
||||||
{% for cell in line %}
|
{% for cell in line %}
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<a class="button is-primary" href="{% url 'election.admin' election.pk %}">
|
<a class="button is-primary" href="{% url 'election.admin' election.pk %}">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-undo-alt"></i>
|
<i class="fas fa-undo-alt"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Retour" %}</span>
|
<span>{% trans "Retour" %}</span>
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
<div class="field is-grouped is-centered">
|
<div class="field is-grouped is-centered">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<button class="button is-fullwidth is-outlined is-primary is-light">
|
<button class="button is-fullwidth is-outlined is-primary is-light">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Importer" %}</span>
|
<span>{% trans "Importer" %}</span>
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
<div class="field is-grouped is-centered">
|
<div class="field is-grouped is-centered">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<a class="button is-fullwidth is-outlined is-primary is-light modal-button" data-target="modal-confirm" id="confirm-button">
|
<a class="button is-fullwidth is-outlined is-primary is-light modal-button" data-target="modal-confirm" id="confirm-button">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Enregistrer" %}</span>
|
<span>{% trans "Enregistrer" %}</span>
|
||||||
|
@ -128,7 +128,7 @@
|
||||||
|
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-primary" href="{% url 'election.view' question.election.pk %}">
|
<a class="button is-primary" href="{% url 'election.view' question.election.pk %}">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-undo-alt"></i>
|
<i class="fas fa-undo-alt"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Retour" %}</span>
|
<span>{% trans "Retour" %}</span>
|
||||||
|
@ -148,14 +148,14 @@
|
||||||
|
|
||||||
<footer class="modal-card-foot">
|
<footer class="modal-card-foot">
|
||||||
<button class="button is-fullwidth is-outlined is-primary is-light">
|
<button class="button is-fullwidth is-outlined is-primary is-light">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Confirmer" %}</span>
|
<span>{% trans "Confirmer" %}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<a class="button is-primary button-close">
|
<a class="button is-primary button-close">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-times"></i>
|
<i class="fas fa-times"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Annuler" %}</span>
|
<span>{% trans "Annuler" %}</span>
|
||||||
|
|
|
@ -19,15 +19,16 @@
|
||||||
<div class="field is-grouped is-centered">
|
<div class="field is-grouped is-centered">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<button class="button is-fullwidth is-outlined is-primary is-light">
|
<button class="button is-fullwidth is-outlined is-primary is-light">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Enregistrer" %}</span>
|
<span>{% trans "Enregistrer" %}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-primary" href="{% url 'election.view' election_id %}">
|
<a class="button is-primary" href="{% url 'election.view' election_id %}">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-undo-alt"></i>
|
<i class="fas fa-undo-alt"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Retour" %}</span>
|
<span>{% trans "Retour" %}</span>
|
||||||
|
|
|
@ -12,22 +12,26 @@
|
||||||
<div class="tile is-ancestor">
|
<div class="tile is-ancestor">
|
||||||
<div class="tile is-parent">
|
<div class="tile is-parent">
|
||||||
<a class="tile is-child notification is-primary" href="{% url "authens:login.cas" %}?next={{ next }}">
|
<a class="tile is-child notification is-primary" href="{% url "authens:login.cas" %}?next={{ next }}">
|
||||||
<div class="subtitle has-text-centered mb-2">
|
<div class="subtitle has-text-centered">
|
||||||
|
<span class="icon-text">
|
||||||
<span class="icon has-text-white">
|
<span class="icon has-text-white">
|
||||||
<i class="fas fa-school"></i>
|
<i class="fas fa-school"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-3">{% trans "Connexion via CAS" %}</span>
|
<span class="ml-3">{% trans "Connexion via CAS" %}</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tile is-parent">
|
<div class="tile is-parent">
|
||||||
<a class="tile is-child notification" href="{% url "authens:login.pwd" %}?next={{ next }}">
|
<a class="tile is-child notification" href="{% url "authens:login.pwd" %}?next={{ next }}">
|
||||||
<div class="subtitle has-text-centered mb-2">
|
<div class="subtitle has-text-centered">
|
||||||
|
<span class="icon-text">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-key"></i>
|
<i class="fas fa-key"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-3">{% trans "Connexion par mot de passe" %}</span>
|
<span class="ml-3">{% trans "Connexion par mot de passe" %}</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<div class="field is-grouped is-centered">
|
<div class="field is-grouped is-centered">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<button class="button is-fullwidth is-outlined is-primary is-light">
|
<button class="button is-fullwidth is-outlined is-primary is-light">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Enregistrer" %}</span>
|
<span>{% trans "Enregistrer" %}</span>
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-primary" href="{% url 'authens:login' %}?next={{ next }}">
|
<a class="button is-primary" href="{% url 'authens:login' %}?next={{ next }}">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-undo-alt"></i>
|
<i class="fas fa-undo-alt"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Retour" %}</span>
|
<span>{% trans "Retour" %}</span>
|
||||||
|
@ -41,10 +41,12 @@
|
||||||
<div class="help has-text-centered">
|
<div class="help has-text-centered">
|
||||||
<span>{% trans "Mot de passe oublié :" %}</span>
|
<span>{% trans "Mot de passe oublié :" %}</span>
|
||||||
<a class="tag has-text-primary" href="{% url 'authens:reset.pwd' %}">
|
<a class="tag has-text-primary" href="{% url 'authens:reset.pwd' %}">
|
||||||
<span>{% trans "Réinitialiser mon mot de passe." %}</span>
|
<span class="icon-text">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-lock-open"></i>
|
<i class="fas fa-lock-open"></i>
|
||||||
</span>
|
</span>
|
||||||
|
<span>{% trans "Réinitialiser mon mot de passe." %}</span>
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<div class="field is-grouped is-centered">
|
<div class="field is-grouped is-centered">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<button class="button is-fullwidth is-outlined is-primary is-light">
|
<button class="button is-fullwidth is-outlined is-primary is-light">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Envoyer un mail" %}</span>
|
<span>{% trans "Envoyer un mail" %}</span>
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-primary" href="{% url 'authens:login.pwd' %}?next={{ next }}">
|
<a class="button is-primary" href="{% url 'authens:login.pwd' %}?next={{ next }}">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-undo-alt"></i>
|
<i class="fas fa-undo-alt"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Retour" %}</span>
|
<span>{% trans "Retour" %}</span>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<div class="field is-grouped is-centered">
|
<div class="field is-grouped is-centered">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<button class="button is-fullwidth is-outlined is-primary is-light">
|
<button class="button is-fullwidth is-outlined is-primary is-light">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Enregistrer" %}</span>
|
<span>{% trans "Enregistrer" %}</span>
|
||||||
|
|
|
@ -17,14 +17,14 @@
|
||||||
|
|
||||||
<footer class="modal-card-foot">
|
<footer class="modal-card-foot">
|
||||||
<button class="button is-fullwidth is-outlined is-primary is-light">
|
<button class="button is-fullwidth is-outlined is-primary is-light">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Enregistrer" %}</span>
|
<span>{% trans "Enregistrer" %}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<a class="button is-primary button-close">
|
<a class="button is-primary button-close">
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-undo-alt"></i>
|
<i class="fas fa-undo-alt"></i>
|
||||||
</span>
|
</span>
|
||||||
<span>{% trans "Annuler" %}</span>
|
<span>{% trans "Annuler" %}</span>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<a class="button is-fullwidth is-outlined is-primary is-light" href="{% url 'authens:login' %}">
|
<a class="button is-fullwidth is-outlined is-primary is-light" href="{% url 'authens:login' %}">
|
||||||
<span>{% trans "Se reconnecter" %}</span>
|
<span>{% trans "Se reconnecter" %}</span>
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-unlock"></i>
|
<i class="fas fa-unlock"></i>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-primary" href="{% url 'kadenios' %}">
|
<a class="button is-primary" href="{% url 'kadenios' %}">
|
||||||
<span>{% trans "Accueil" %}</span>
|
<span>{% trans "Accueil" %}</span>
|
||||||
<span class="icon is-small">
|
<span class="icon">
|
||||||
<i class="fas fa-home"></i>
|
<i class="fas fa-home"></i>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue