kpsul/templates/gestioncof/home.html
2012-07-11 17:39:20 +02:00

42 lines
2 KiB
HTML

{% 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 %}
{% if user.get_profile.is_buro %}
<h3>Administration</h3>
<ul>
{% 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>
<li><a href="{% url admin:index %}">Administration</a></li>
</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>
<li><a href="{% url gestioncof.views.logout %}">Se déconnecter</a></li>
</ul>
{% endblock %}