{{ js_template|safe }}
<div class="poll-block" data-private="{% if private_results %}1{% endif %}">
{# If no form is present, the Javascript will load the results instead. #}
{% if private_results or not choice %}
  <h3 class="poll-header">{{display_name}}</h3>
  <form>
      <div class="poll-question-container">
          {{question|safe}}
      </div>
      <ul class="poll-answers">
      {% for key, value in answers %}
          <li class="poll-answer">
              <input type="radio" name="choice" id="{{url_name}}-answer-{{key}}" value="{{key}}" {% if choice == key %}checked{% endif %}/>
              {% if value.img %}
              <div class="poll-image">
                  <label for="{{url_name}}-answer-{{key}}" class="poll-image-label">
                      {% if value.img %}
                      <img src="{{value.img}}" />
                      {% endif %}
                  </label>
              </div>
              {% endif %}
              <label class="poll-answer" for="{{url_name}}-answer-{{key}}">{{value.label|safe}}</label>
          </li>
      {% endfor %}
      </ul>
      <input class="input-main" type="button" name="poll-submit" value="{% if choice %}Resubmit{% else %}Submit{% endif %}" disabled />
  </form>
      <div class="poll-voting-thanks{% if not choice %} poll-hidden{% endif %}"><span>Thank you for your submission!</span></div>
      {% if feedback %}
      <div class="poll-feedback-container{% if not choice %} poll-hidden{% endif %}">
          <hr />
          <h3 class="poll-header">Feedback</h3>
          <div class="poll-feedback">
              {{feedback|safe}}
          </div>
      </div>
      {% endif %}
{% endif %}
</div>
