{% extends "base.html" %} {% load pipeline %} {% load widget_tweaks %} {% load settings_value %} {% load csp %} {% load i18n %} {% block title %}{% trans 'Create poll' %}{% endblock %} {% block headJS %} {{ poll_form.media }} {% endblock %} {% block content %}

{% trans 'CREATE -A- POLL' %}


{% csrf_token %}
{% trans 'Step 1' %}
{% trans 'Select Type' %}
  • {% trans 'Normal Poll' %}
    {% trans 'Retrieve opinions on various choices' %}
{% trans 'Step 2' %}
{% trans 'Enter Title' %}
{% if poll_form.title.errors %}
{{ poll_form.title.errors }}
{% endif %}
{% trans 'Step 3' %}
{% trans 'Advanced Settings' %}
{# TODO: due date, public? #}
{% value_from_settings BASE_URL %}/poll/ {% if poll_form.url.errors %}
{{ poll_form.url.errors }}
{% endif %}
{% render_field poll_form.due_date class+="form-control" id="datetimepicker" %} {% if poll_form.due_date.errors %}
{{ poll_form.due_date.errors }}
{% endif %}
{% render_field poll_form.description class+="form-control"%}
{% if request.user.is_anonymous %}

{% trans 'Log in' %}

{% csrf_token %}
{% endif %}
{% value_from_settings REGISTER_ENABLED as register %} {% if request.user.is_anonymous and register %}

{% trans 'Register for more' %}

{% blocktrans %}Registered users have access to the full width of features available.{% endblocktrans %}

{% trans 'Register' %}
{% endif %} {# TODO: own polls? #}

{% trans 'Statistics' %}

{% trans 'Polls created' %} {{ poll_count }}
{% trans 'Votes cast' %} {{ votes_count }}
{% trans 'Users' %} {{ user_count }}
{% value_from_settings PUBLIC_POLLS as public_polls_setting %} {% if public_polls_setting %}

{% trans 'Public polls' %}

{% if not public_polls %}
{% trans 'There are currently no public polls.' %}
{% else %} {% endif %}
{% endif %} {% if request.user.is_authenticated %}

{% trans 'My Polls' %}

{% trans 'You can find a list of all the polls in which you have participated on your profile page.' %}

{% trans 'Show my polls' %}
{% endif %}
{% endblock %} {% block additionalJS %} {% javascript 'create_poll' %} {% endblock %}