{% extends "base.html" %}
{% load i18n %}


{% block content %}

<h1 class="title">{{ question.election.name }}</h1>
<h3 class="subtitle">{% trans "Vote pour la question :" %} {{ question.text }} ({{ q_index }}/{{ q_total }})</h3>
<hr>

<div class="message is-primary">
  <p class="message-body">
  <b><i>{{ vote_rule|safe }}</i></b>
  </p>
</div>

<div class="columns is-centered">
  <div class="column is-two-thirds">
    <form action="" method="post">
      {% csrf_token %}

      {% include "forms/formset.html" %}

      <div class="field is-grouped is-centered">
        <div class="control is-expanded">
          <button class="button is-fullwidth is-outlined is-primary is-light">
            <span class="icon is-small">
              <i class="fas fa-check"></i>
            </span>
            <span>{% trans "Enregistrer" %}</span>
          </button>
        </div>
        <div class="control">
          <a class="button is-primary" href="{% url 'election.view' question.election.pk %}">
            <span class="icon is-small">
              <i class="fas fa-undo-alt"></i>
            </span>
            <span>{% trans "Retour" %}</span>
          </a>
        </div>
      </div>
    </form>
  </div>
</div>

{% endblock %}
