{% extends "cosinnus_event/base.html" %} {% load i18n static cosinnus_tags widget_tweaks %} {% block page_title %} {% if event.state == 2 %} {% blocktrans with title=event.title %}Vote for {{ title }}{% endblocktrans %} {% else %} {% blocktrans with title=event.title %}Archived: {{ title }}{% endblocktrans %} {% endif %} {{ block.super }} {% endblock page_title %} {% block breadcrumb %} {{ block.super }}
  • {% if event.state == 2 %} {% blocktrans with title=event.title %}Vote for {{ title }}{% endblocktrans %} {% else %} {% blocktrans with title=event.title %}Archived: {{ title }}{% endblocktrans %} {% endif %}
  • {% endblock %} {% block leftnav %} {% if event.state == 2 %} {% include "cosinnus_event/leftnav.html" with return_to="doodle" %} {% else %} {% include "cosinnus_event/leftnav.html" with return_to="archived_doodle" %} {% endif %} {% endblock leftnav %} {% block content %}
    {% include "cosinnus_event/single_event_detailed.html" with event=event hide_control_buttons="True" %}
    {% if event.state == 1 %}

    {% trans "This event has already been scheduled. Voting is closed." %}

    {% elif event.state == 3 %}

    {% trans "This event has been canceled. Voting is closed." %}

    {% elif suggestions_grouped %} {% if not votes_user_grouped %}

    {% trans "Nobody has voted for this event poll yet." %}

    {% endif %}
    {% for suggestions in suggestions_grouped %}
     {{ suggestions.0.from_date|date:"D" }}
     {{ suggestions.0.from_date|date:COSINNUS_DJANGO_DATE_SHORT_CLEAR_FORMAT }}
    {% endfor %}
    {% for suggestions in suggestions_grouped %} {% for suggestion in suggestions %}
     {{ suggestion.from_date|date:COSINNUS_DJANGO_TIME_FORMAT }}
    {% endfor %} {% endfor %}
    {% for user, votes in votes_user_grouped.items %}
    {% include "cosinnus/user/user_avatar_image.html" with user=votes.0.voter %}
    {% for vote in votes %} {% if vote.choice == 2 %}
    {% elif vote.choice == 1 %}
    ()
    {% else %}
    {% endif %} {% endfor %}
    {% endfor %}

    ()
    {% for vote_counts in vote_counts_grouped %} {% for count in vote_counts %}
    {% if count.3 %}{% endif %}{{ count.2 }}{% if count.3 %}{% endif %}
    {{ count.1 }}
    {{ count.0 }}
    {% endfor %} {% endfor %}
    {% if user|has_write_access:event and event.state == 2 %}

    {% trans "Create an event from one of the suggestions" %}

    {% for suggestions in suggestions_grouped %} {% for suggestion in suggestions %}
    {% csrf_token %} {{ formset.management_form }}
    {% endfor %} {% endfor %}
    {% endif %} {% if user.is_authenticated and event.state == 2 %}

    {% trans "When do you have time?" %}

    {% for suggestions in suggestions_grouped %}
     {{ suggestions.0.from_date|date:"D" }}
     {{ suggestions.0.from_date|date:COSINNUS_DJANGO_DATE_SHORT_CLEAR_FORMAT }}
    {% endfor %}
    {% for suggestions in suggestions_grouped %} {% for suggestion in suggestions %}
     {{ suggestion.from_date|date:COSINNUS_DJANGO_TIME_FORMAT }}
    {% endfor %} {% endfor %}
    {% csrf_token %} {{ formset.management_form }}
    {% include "cosinnus/user/user_avatar_image.html" with user=request.user %}
    {% for forms in formset_forms_grouped %} {% for form in forms %} {% captureas choice_word %}{% if form.choice.value == 2 %}yes{% elif form.choice.value == 1 %}maybe{% else %}no{% endif %}{% endcaptureas %} {{ form.suggestion.as_widget }} {% endfor %} {% endfor %}
    {% endif %}
    {% else %} {% comment %} No suggestions were added {% endcomment %}

    {% trans "There are no date suggestions for this event poll yet!" %}

    {% endif %}
    {% if user.is_authenticated and user|has_read_access:event and suggestions_grouped and event.state == 2 %} {% endif %} {% if user|has_write_access:event %} {% captureas modal_id %}deleteModal_{{event.slug}}{% endcaptureas %} {% captureas label %}{% blocktrans with title=event.title %}Do you really want to delete unscheduled event „{{ title }}“?{% endblocktrans %}{% endcaptureas %} {% captureas title %}{% trans "Delete unscheduled event" %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:event:doodle-delete' group=group slug=event.slug%}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id=modal_id label=label title=title form_action=action %} {% if event.state != 4 %} {% endif %} {% endif %}
    {% include 'cosinnus_event/event_comments.html' with event=event full_view="True" no_indent="True" comments_expanded="True" %} {% endblock content %}