forked from DGNum/gestioCOF
53 lines
2.5 KiB
HTML
53 lines
2.5 KiB
HTML
{% extends "base_title.html" %}
|
|
|
|
{% block homelink %}
|
|
{% endblock %}
|
|
|
|
{% block realcontent %}
|
|
<h2>Bienvenue, {% if user.first_name %}{{ user.first_name }}{% else %}<tt>{{ user.username }}</tt>{% endif %}</h2>
|
|
{% if open_events %}
|
|
<h3>Événements</h3>
|
|
<ul>
|
|
{% for event in open_events %}
|
|
<li><a href="{% url "gestioncof.views.event" event.id %}">{{ event.title }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% if open_surveys %}
|
|
<h3>Sondages en cours</h3>
|
|
<ul>
|
|
{% for survey in open_surveys %}
|
|
<li><a href="{% url "gestioncof.views.survey" survey.id %}">{{ survey.title }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
<h3>Divers</h3>
|
|
<ul>
|
|
<!-- <li><a href="{% url "bda2.views.inscription" %}">Inscription au tirage au sort du BdA</a></li> -->
|
|
<!-- <li><a href="{% url "bda.views.revente" %}">Revente de places BdA (premier tirage)</a></li> -->
|
|
<!-- <li><a href="{% url "bda2.views.revente" %}">Revente de places BdA (second tirage)</a></li> -->
|
|
<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>
|
|
|
|
{% if user.get_profile.is_buro %}
|
|
<h3>Administration</h3>
|
|
<ul>
|
|
<li><a href="{% url "admin:index" %}">Administration générale</a></li>
|
|
<li><a href="{% url "gestioncof.views.registration" %}">Inscription d'un nouveau membre</a></li>
|
|
<br>
|
|
{% 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 %}
|
|
<br>
|
|
<li><a href="{% url "gestioncof.views.utile_cof" %}">Liens utiles du COF</a></li>
|
|
<li><a href="{% url "gestioncof.views.utile_bda" %}">Liens utiles BdA</a></li>
|
|
</ul>
|
|
{% endif %}
|
|
|
|
<h3>Pour tout problème : cof@ens.fr.</h3>
|
|
{% endblock %}
|