2012-06-27 23:28:35 +02:00
|
|
|
{% extends "base_title.html" %}
|
|
|
|
|
|
|
|
{% block realcontent %}
|
|
|
|
<h2>Bienvenue, {% if user.first_name %}{{ user.first_name }}{% else %}<tt>{{ user.username }}</tt>{% endif %}</h2>
|
|
|
|
{% if events %}
|
|
|
|
<h3>Événements</h3>
|
|
|
|
<ul>
|
|
|
|
{% for event in events %}
|
|
|
|
<li><a href="{% url gestioncof.views.event event.id %}">{{ event.title }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% if surveys %}
|
|
|
|
<h3>Sondages</h3>
|
|
|
|
<ul>
|
|
|
|
{% for survey in surveys %}
|
|
|
|
<li><a href="{% url gestioncof.views.survey survey.id %}">{{ survey.title }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2012-07-11 17:39:20 +02:00
|
|
|
{% if user.get_profile.is_buro %}
|
|
|
|
<h3>Administration</h3>
|
2012-06-27 23:28:35 +02:00
|
|
|
<ul>
|
2012-07-11 17:39:20 +02:00
|
|
|
{% for event in events %}
|
|
|
|
<li><a href="{% url gestioncof.views.event_status event.id %}">Événement : {{ event.title }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
{% for survey in surveys %}
|
|
|
|
<li><a href="{% url gestioncof.views.survey_status survey.id %}">Sondage : {{ survey.title }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
<li><a href="{% url gestioncof.views.registration %}">Inscription d'un nouveau membre</a></li>
|
2012-06-27 23:28:35 +02:00
|
|
|
<li><a href="{% url admin:index %}">Administration</a></li>
|
2012-07-11 17:39:20 +02:00
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
<h3>Divers</h3>
|
|
|
|
<ul>
|
|
|
|
{% if user.get_profile.login_clipper == "seguin" or user.get_profile.login_clipper == "cmoreau" %}
|
|
|
|
<li><a href="{% url bda.views.inscription %}">Inscription au tirage au sort du BDA</a></li>
|
|
|
|
{% endif %}
|
|
|
|
<li><a href="{% url gestioncof.views.profile %}">Éditer mon profil</a></li>
|
2012-06-27 23:28:35 +02:00
|
|
|
<li><a href="{% url gestioncof.views.logout %}">Se déconnecter</a></li>
|
|
|
|
</ul>
|
|
|
|
{% endblock %}
|