{% load wagtailcore_tags wagtailimages_tags core_tags i18n %}
{% load_reaction_question article as question %}
{% if question %}
{{question.title}}
{{ form.errors }}
{% if messages %}
  {% for message in messages %}
    {{message}}
  {% endfor %}
{% endif %}
<form class="reaction__form" action="{% url 'reaction-vote' article.slug question.id %}" method="post">
  {% csrf_token %}
  <div class="poll-choices">
    {% load_choices_for_reaction_question question as choices %}
        {% for choice in choices %}
           <div class="fieldset">
              <input type="submit" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.specific.get_main_language_page.id }}" />
              {% image choice.specific.image width-60 %}
              <label for="choice{{ forloop.counter }}">{{ choice.title }}</label>
          </div>
      {% endfor %}
  </div>
</form>
{% endif %}
