2017-02-12 19:36:17 +01:00
|
|
|
{% extends "cof/base_header.html" %}
|
2012-06-27 23:28:35 +02:00
|
|
|
|
2013-09-05 22:20:52 +02:00
|
|
|
{% block homelink %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2016-07-11 19:59:32 +02:00
|
|
|
{% block interm_content %}
|
|
|
|
<div class="container hidden-xs espace"></div>
|
|
|
|
<div class="container">
|
|
|
|
<div class="home-menu row">
|
2017-02-11 17:21:59 +01:00
|
|
|
<div class="{% if user.profile.cof.is_buro %}col-sm-6 {% else %}col-sm-8 col-sm-offset-2 col-xs-12 {%endif%}normal-user-hm">
|
2016-07-11 19:59:32 +02:00
|
|
|
{% if open_surveys %}
|
2016-07-27 00:10:20 +02:00
|
|
|
<h3 class="block-title">Sondages en cours<span class="pull-right glyphicon glyphicon-stats"></span></h3>
|
2016-07-11 19:59:32 +02:00
|
|
|
<div class="hm-block">
|
2012-06-27 23:28:35 +02:00
|
|
|
<ul>
|
2013-09-05 22:20:52 +02:00
|
|
|
{% for survey in open_surveys %}
|
2017-02-23 00:31:08 +01:00
|
|
|
<li><a href="{% url "survey" survey.id %}">{{ survey.title }}</a></li>
|
2012-06-27 23:28:35 +02:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2016-07-11 19:59:32 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2015-09-13 18:23:47 +02:00
|
|
|
|
2016-06-01 16:08:15 +02:00
|
|
|
|
2017-02-11 17:21:59 +01:00
|
|
|
{% if user.profile.cof.is_cof %}
|
2016-07-11 19:59:32 +02:00
|
|
|
{% if open_tirages %}
|
2016-07-27 00:10:20 +02:00
|
|
|
<h3 class="block-title">Tirages du BdA<span class="pull-right glyphicon glyphicon-th-list"></span></h3>
|
2016-07-11 19:59:32 +02:00
|
|
|
<div class="hm-block">
|
|
|
|
{% for tirage in open_tirages %}
|
2016-06-01 16:08:15 +02:00
|
|
|
<ul>
|
2016-07-11 19:59:32 +02:00
|
|
|
<h4>{{ tirage.title }}</h4>
|
2016-08-03 17:54:12 +02:00
|
|
|
{% if tirage.fermeture > now %}
|
|
|
|
<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>
|
|
|
|
{% else %}
|
|
|
|
<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>
|
2016-09-27 16:57:39 +02:00
|
|
|
<li><a href="{% url "bda-liste-revente" tirage.id %}">S'inscrire à BdA-Revente</a></li>
|
2016-10-06 13:46:18 +02:00
|
|
|
<li><a href="{% url "bda-shotgun" tirage.id %}">Places disponibles immédiatement</a></li>
|
2016-08-03 17:54:12 +02:00
|
|
|
{% endif %}
|
2016-06-01 16:08:15 +02:00
|
|
|
</ul>
|
2016-07-11 19:59:32 +02:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2016-07-27 00:10:20 +02:00
|
|
|
<h3 class="block-title">Divers<span class="pull-right glyphicon glyphicon-question-sign"></span></h3>
|
2016-07-11 19:59:32 +02:00
|
|
|
<div class="hm-block">
|
2013-10-01 15:27:19 +02:00
|
|
|
<ul>
|
2017-02-23 00:31:08 +01:00
|
|
|
<li><a href="{% url "calendar" %}">Calendrier dynamique</a></li>
|
2017-02-11 17:21:59 +01:00
|
|
|
{% if user.profile.cof.is_cof %}<li><a href="{% url "petits-cours-inscription" %}">Inscription pour donner des petits cours</a></li>{% endif %}
|
2013-10-01 15:27:19 +02:00
|
|
|
|
2017-02-11 18:41:47 +01:00
|
|
|
<li><a href="{% url "gestion:profile" %}">Éditer mon profil</a></li>
|
2017-02-23 00:31:08 +01:00
|
|
|
{% if not user.profile.login_clipper %}<li><a href="{% url "password_change" %}">Changer mon mot de passe</a></li>{% endif %}
|
2013-09-05 22:20:52 +02:00
|
|
|
</ul>
|
2016-07-11 19:59:32 +02:00
|
|
|
</div>
|
2016-08-03 15:53:35 +02:00
|
|
|
{% endif %}
|
2016-07-11 19:59:32 +02:00
|
|
|
</div>
|
2017-02-11 17:21:59 +01:00
|
|
|
{% if user.profile.cof.is_buro %}
|
2016-07-11 19:59:32 +02:00
|
|
|
<div class="col-sm-6 buro-user-hm">
|
2016-07-27 00:10:20 +02:00
|
|
|
<h3 class="block-title">Administration<span class="pull-right glyphicon glyphicon-cog"></span></h3>
|
2016-07-11 19:59:32 +02:00
|
|
|
<div class="hm-block">
|
2012-06-27 23:28:35 +02:00
|
|
|
<ul>
|
2016-07-11 19:59:32 +02:00
|
|
|
<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>
|
2017-02-23 00:31:08 +01:00
|
|
|
<li><a href="{% url "registration" %}">Inscription d'un nouveau membre</a></li>
|
2016-07-11 19:59:32 +02:00
|
|
|
</ul>
|
|
|
|
<ul>
|
|
|
|
<h4>Évènements & Sondages</h4>
|
|
|
|
{% for event in events %}
|
2017-02-23 00:31:08 +01:00
|
|
|
<li><a href="{% url "event.status" event.id %}">Événement : {{ event.title }}</a></li>
|
2016-07-11 19:59:32 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% for survey in surveys %}
|
2017-02-23 00:31:08 +01:00
|
|
|
<li><a href="{% url "survey.status" survey.id %}">Sondage : {{ survey.title }}</a></li>
|
2016-07-11 19:59:32 +02:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2016-09-27 16:57:39 +02:00
|
|
|
<h3 class="block-title">Gestion tirages BdA<span class="pull-right glyphicon glyphicon-list"></span></h3>
|
2016-07-11 19:59:32 +02:00
|
|
|
<div class="hm-block">
|
2016-08-29 16:32:04 +02:00
|
|
|
{% if active_tirages %}
|
|
|
|
{% for tirage in active_tirages %}
|
2016-07-12 19:23:10 +02:00
|
|
|
<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>
|
2016-08-03 17:54:12 +02:00
|
|
|
{% if tirage.fermeture < now %}
|
|
|
|
<li><a href="{% url "bda-etat-places" tirage.id %}">Ratios</a></li>
|
|
|
|
{% endif %}
|
2016-07-12 19:23:10 +02:00
|
|
|
</ul>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
Pas de tirage ouvert pour l'instant.
|
2012-07-11 17:39:20 +02:00
|
|
|
{% endif %}
|
2016-07-11 19:59:32 +02:00
|
|
|
</div>
|
2013-09-05 22:20:52 +02:00
|
|
|
|
2016-07-27 00:10:20 +02:00
|
|
|
<h3 class="block-title">Liens utiles<span class="pull-right glyphicon glyphicon-link"></span></h3>
|
2016-07-11 19:59:32 +02:00
|
|
|
<div class="hm-block">
|
|
|
|
<ul>
|
2017-02-23 00:31:08 +01:00
|
|
|
<li><a href="{% url "utile_cof" %}">Liens utiles du COF</a></li>
|
|
|
|
<li><a href="{% url "utile_bda" %}">Liens utiles BdA</a></li>
|
2016-07-11 19:59:32 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div> <!-- /.row.home-menu -->
|
|
|
|
<div class="container hidden-xs espace"></div>
|
2017-02-11 17:21:59 +01:00
|
|
|
{% if not user.profile.cof.is_buro %}
|
2016-07-11 21:48:11 +02:00
|
|
|
<div class="home-menu row row-centered">
|
|
|
|
<div class="col-sm-8 col-sm-offset-2 col-xs-12 normal-user-hm">
|
2016-07-11 19:59:32 +02:00
|
|
|
<div class="foot-banner">
|
|
|
|
<h3>Pour tout problème : <tt>cof@ens.fr.</tt></h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.row.home-menu -->
|
2016-07-12 19:23:10 +02:00
|
|
|
{% else %}
|
|
|
|
<div class="home-menu row row-centered">
|
|
|
|
<div class="visible-xs-block col-xs-12 normal-user-hm">
|
|
|
|
<div class="foot-banner">
|
|
|
|
<h3>Pour tout problème : <tt>cof@ens.fr.</tt></h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.row.home-menu -->
|
2016-07-11 21:48:11 +02:00
|
|
|
{% endif %}
|
2016-07-11 19:59:32 +02:00
|
|
|
<div class="container hidden-xs espace"></div>
|
|
|
|
</div><!-- /.container -->
|
2012-06-27 23:28:35 +02:00
|
|
|
{% endblock %}
|