113 lines
5.1 KiB
HTML
113 lines
5.1 KiB
HTML
{% extends "base_header.html" %}
|
|
|
|
{% block homelink %}
|
|
{% endblock %}
|
|
|
|
{% block interm_content %}
|
|
<div class="container hidden-xs espace"></div>
|
|
<div class="container">
|
|
<div class="home-menu row">
|
|
<div class="{% if user.profile.is_buro %}col-sm-6 {% else %}col-sm-8 col-sm-offset-2 col-xs-12 {%endif%}normal-user-hm">
|
|
<!-- {% if open_events %}
|
|
<h3 class="block-title">Événements</h3>
|
|
<div class="hm-block">
|
|
<ul>
|
|
{% for event in open_events %}
|
|
<li><a href="{% url "gestioncof.views.event" event.id %}">{{ event.title }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %} -->
|
|
{% if open_surveys %}
|
|
<h3 class="block-title">Sondages en cours</h3>
|
|
<div class="hm-block">
|
|
<ul>
|
|
{% for survey in open_surveys %}
|
|
<li><a href="{% url "gestioncof.views.survey" survey.id %}">{{ survey.title }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
{% if user.profile.is_cof %}
|
|
{% if open_tirages %}
|
|
<h3 class="block-title">Tirages du BdA</h3>
|
|
<div class="hm-block">
|
|
{% for tirage in open_tirages %}
|
|
<ul>
|
|
<h4>{{ tirage.title }}</h4>
|
|
<li><a href="{% url "bda-tirage-inscription" tirage.id %}">Inscription</a></li>
|
|
<li><a href="{% url "bda-etat-places" tirage.id %}">État des demandes</a>
|
|
<li><a href="{% url "bda-places-attribuees" tirage.id %}">Mes places</a></li>
|
|
<li><a href="{% url "bda-revente" tirage.id %}">Revendre une place</a></li>
|
|
</ul>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<h3 class="block-title">Divers</h3>
|
|
<div class="hm-block">
|
|
<ul>
|
|
|
|
{% if user.profile.is_cof %}<li><a href="{% url "petits-cours-inscription" %}">Inscription pour donner des petits cours</a></li>{% endif %}
|
|
|
|
<li><a href="{% url "gestioncof.views.profile" %}">Éditer mon profil</a></li>
|
|
{% if not user.profile.login_clipper %}<li><a href="{% url "django.contrib.auth.views.password_change" %}">Changer mon mot de passe</a></li>{% endif %}
|
|
<li><a href="{% url "gestioncof.views.logout" %}">Se déconnecter</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% if user.profile.is_buro %}
|
|
<div class="col-sm-6 buro-user-hm">
|
|
<h3 class="block-title">Administration</h3>
|
|
<div class="hm-block">
|
|
<ul>
|
|
<h4>Général</h4>
|
|
<li><a href="{% url "admin:index" %}">Administration générale</a></li>
|
|
<li><a href="{% url "petits-cours-demandes-list" %}">Demandes de petits cours</a></li>
|
|
<li><a href="{% url "gestioncof.views.registration" %}">Inscription d'un nouveau membre</a></li>
|
|
</ul>
|
|
<ul>
|
|
<h4>Évènements & Sondages</h4>
|
|
{% 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 %}
|
|
</ul>
|
|
</div>
|
|
<h3 class="block-title">Gestion tirages BDA</h3>
|
|
<div class="hm-block">
|
|
{% for tirage in open_tirages %}
|
|
<ul>
|
|
<h4>{{ tirage.title }}</h4>
|
|
<li><a href="{% url "bda-liste-spectacles" tirage.id %}">Spectacles</a></li>
|
|
<li><a href="{% url "admin:bda_participant_changelist" %}?tirage__id__exact={{ tirage.id }}">Participants</a></li>
|
|
</ul>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<h3 class="block-title">Liens utiles</h3>
|
|
<div class="hm-block">
|
|
<ul>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div> <!-- /.row.home-menu -->
|
|
<div class="container hidden-xs espace"></div>
|
|
<div class="home-menu row {% if not user.profile.is_buro %}row-centered {%endif%}">
|
|
<div class="{% if user.profile.is_buro %}col-sm-6 {% else %}col-sm-8 col-sm-offset-2 col-xs-12 {%endif%}normal-user-hm">
|
|
<div class="foot-banner">
|
|
<h3>Pour tout problème : <tt>cof@ens.fr.</tt></h3>
|
|
</div>
|
|
</div>
|
|
</div><!-- /.row.home-menu -->
|
|
<div class="container hidden-xs espace"></div>
|
|
</div><!-- /.container -->
|
|
{% endblock %}
|