{% load spirit_tags i18n %}
{% csrf_token %} {% if next %}{% endif %} {% if poll.title %}
{{ poll.title|safe }}
{% endif %}
{% for field in form %} {{ field }} {% endfor %}
{% if poll.close_at or poll.is_multiple_choice or poll.is_secret %}
{% if poll.close_at %} {% blocktrans trimmed with date=poll.close_at %}Closes on {{ date }}.{% endblocktrans %} {% endif %} {% if poll.is_multiple_choice and poll.choice_min == poll.choice_max %} {% blocktrans trimmed with choice_min=poll.choice_min %}You must select {{ choice_min }} choices.{% endblocktrans %} {% elif poll.is_multiple_choice and not poll.has_choice_min %} {% blocktrans trimmed with choice_max=poll.choice_max %}You may select up to {{ choice_max }} choices.{% endblocktrans %} {% elif poll.is_multiple_choice and poll.has_choice_min %} {% blocktrans trimmed with choice_min=poll.choice_min choice_max=poll.choice_max %}You may select no less than {{ choice_min }} and no more than {{ choice_max }} choices.{% endblocktrans %} {% endif %} {% if poll.is_secret %} {% trans "Results will be available when the poll is closed." %} {% endif %}
{% endif %}
{% if poll.can_show_results %} {% trans "Show results" %} {% endif %} {% if user.is_authenticated and user.pk == comment.user.pk %} {% if poll.is_closed %} {% trans "open" %} {% else %} {% trans "close" %} {% endif %} {% endif %}