{% extends "gestion/base.html" %} {% load i18n %} {% load autotranslate %} {% get_current_language as current_language %} {% block titre %}{{ event.nom.capitalize }}{% endblock %} {% block content %}

{{ event.nom.capitalize }}

{% blocktrans with date=event.date%} Le {{ date }}{% endblocktrans %} {% if event.fin %} {% blocktrans with debut=event.debut|time:"H:i" fin=event.fin|time:"H:i" %} de {{ debut}} à {{ fin }}{% endblocktrans %} {% else %} {% blocktrans with debut=event.debut|time:"H:i" %} à {{ debut }}{% endblocktrans %} {% endif %} {% blocktrans with lieu=event.lieu %}- {{ lieu }}{% endblocktrans %}

{% if user.is_authenticated and event.desc_users %}
{% autotranslate current_language event.desc_users event.desc_users_en %}
{% endif %} {% if user.is_authenticated and not event.desc_users and event.desc_users_en %}

{{event.desc_users_en|safe}}

{% endif %}
{% if user.is_authenticated %}

{% trans "Participants" %}

{% blocktrans with nboui=nboui nbpe=nbpe nbnon=nbnon %}{{ nboui }} ont répondu oui, {{ nbpe }} peut-être, et {{ nbnon }} non{% endblocktrans %}

{% if participants %} {% endif %} {% for p in participants %} {% if p.participant.doodlename %} {% else %} {% endif %} {% if p.reponse == "oui" %} {% elif p.reponse == "pe" %} {% elif p.reponse == "non" %} {% endif %} {% empty %} {% blocktrans%} Pas de réponse pour l'instant{% endblocktrans %} {% endfor %}
{% trans "Ernestophoniste" %} {% trans "Réponse" %} {% trans "Commentaire" %}
{{ p.participant.doodlename }}{{ p.participant.user.username }}{% trans "Oui" %}{{ p.details }}{% trans "Peut-être" %}{{ p.details }}{% trans "Non" %} {{ p.details }}

{% trans "Répondre à l'événement" %}

{% endif %}
{% if instrument_count and user.profile.is_chef %} {% for instrument, sure, maybe, namesoui, namespe,namesnon in instrument_count %} {% if namesoui or namespe %} {% else %} {% endif %} {% endfor %}
{% trans "Instrument" %} {% trans "Oui" %} {% trans "Peut-être" %}
{{ instrument }}
{% trans "Oui" %} {% trans "Peut-être" %}
    {% for name in namesoui %}
  • {{name}}
  • {% endfor %}
    {% for name in namespe %}
  • {{name}}
  • {% endfor %}
{{ instrument }}
{% trans "Non" %}
    {% for name in namesnon %}
  • {{name}}
  • {% endfor %}
{{ sure }} {{ maybe }}
{% endif %} {% if multi_instrumentistes and user.profile.is_chef %}

{% blocktrans count counter=multi_instrumentistes|length %}Multi-instrumentiste présent :{% plural %}Multi-instrumentistes présents{% endblocktrans %}

{% for participant in multi_instrumentistes %} {% endfor %}
{% trans "Nom" %} {% trans "Instrument" %} {% trans "Instrument·s bonus" %} {% trans "Réponse" %}
{% if participant.participant.doodlename %} {{participant.participant.doodlename}} {% else %} {{participant.participant.user.username}} {% endif %} {% if participant.dont_play_main == 'Oui' %} {{participant.instrument}} {% elif participant.participant.instru == "Autre" %} {{participant.participant.instru_autre}} {% else %} {{ participant.participant.instru }} {% endif %} {% if participant.dont_play_main == 'Oui' %} {% if participant.participant.instru == "Autre" %} {{participant.participant.instru_autre}} {% else %} {{ participant.participant.instru }} {% endif %}
{% endif %} {% if participant.instrument != participant.participant.instru_bonus %} {{ participant.participant.instru_bonus }} {% endif %}
{{participant.reponse}}
{% endif %}
{% endblock %}