forked from DGNum/gestioCOF
Déplace les templates dans les apps
This commit is contained in:
parent
c5db003842
commit
8408942d41
71 changed files with 0 additions and 0 deletions
45
gestioncof/templates/event_status.html
Normal file
45
gestioncof/templates/event_status.html
Normal file
|
@ -0,0 +1,45 @@
|
|||
{% extends "base_title.html" %}
|
||||
{% load utils %}
|
||||
|
||||
{% block realcontent %}
|
||||
<h2>Événement: {{ event.title }}{% if user.is_staff %} – <a href="{% url 'admin:gestioncof_event_change' event.id %}">Administration</a>{% endif %}</h2>
|
||||
{% if event.details %}
|
||||
<p>{{ event.details }}</p>
|
||||
{% endif %}
|
||||
{% include "tristate_js.html" %}
|
||||
<h3>Filtres</h3>
|
||||
<form method="post" action="{% url 'gestioncof.views.event_status' event.id %}">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" class="btn-submit" value="Filtrer" />
|
||||
</form>
|
||||
<h3>Résultats globaux</h3>
|
||||
{% for option in options %}
|
||||
<h4>{{ option.value }}</h4>
|
||||
<ul>
|
||||
{% for choice in option.choices.all %}
|
||||
<li>{{ choice.value }} : {{ choices_count|key:choice.id }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
<h3>Réponses individuelles</h3>
|
||||
<ul>
|
||||
{% for user_choice in user_choices %}{% with user_choice.user as auser %}
|
||||
{% if user_choice.options.all %}
|
||||
<li>
|
||||
{% if auser.first_name and auser.last_name %}{{ auser.first_name }} {{ auser.last_name }}
|
||||
{% else %}<tt>{{ auser.username }}</tt>{% endif %} :
|
||||
<ul>
|
||||
{% for choice in user_choice.options.all %}
|
||||
<li>{{ choice.event_option.name }} : {{ choice.value }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endwith %}{% endfor %}
|
||||
</ul>
|
||||
<h3>Mailing list</h3>
|
||||
<textarea style="width: 100%; height: 100px; margin-top: 10px;">
|
||||
{% spaceless %}{% for user_choice in user_choices %}{% with user_choice.user as auser %}{% if user_choice.options.all %}{% if auser.email %}{{ auser.email }}{% else %}{{ auser.username }}{% endif %}, {% endif %}{% endwith %}{% endfor %}
|
||||
{% endspaceless %}</textarea>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue