{% extends "base.html" %} {% load i18n %} {% load crispy_forms_filters %} {% block content %}

{% trans "survey"|capfirst %} {{ survey.survey_id }}

{% trans "Name:" %}
{{ survey.name }}
{% trans "One answer per team:" %}
{{ survey.invite_team|yesno }}
{% if not survey.invite_team %}
{% trans "Coaches can answer the survey:" %}
{{ survey.invite_coaches|yesno }}
{% endif %} {% if survey.tournament %}
{% trans "Tournament restriction:" %}
{{ survey.tournament }}
{% endif %}
{% trans "Completion rate:" %}
{{ survey.completed.count }}/{{ survey.participants.count }}

{% for participant in survey.participants %} {% if survey.invite_team %} {% else %} {% endif %} {% if participant in survey.completed.all %} {% else %} {% endif %} {% endfor %}
{% trans "participant"|capfirst %} {% trans "completed"|capfirst %}
{% trans "Team" %} {{ participant.name }} ({{ participant.trigram }}){{ participant.user.first_name }} {{ participant.user.last_name }} ({% trans "team" %} {{ participant.team.trigram }}){% trans "Yes" %}{% trans "No" %}
{% trans "Update survey" as modal_title %} {% trans "Update" as modal_button %} {% url "survey:survey_update" pk=survey.pk as modal_action %} {% include "base_modal.html" with modal_id="updateSurvey" %} {% endblock %} {% block extrajavascript %} {% endblock %}