gestioCOF/gestioncof/templates/home.html

176 lines
8 KiB
HTML
Raw Normal View History

{% extends "gestioncof/base_header.html" %}
core -- Install django-allauth-ens Refer to allauth doc for an accurate features list: http://django-allauth.readthedocs.io/en/latest/ Users can now change their password, ask for a password reset, or set one if they don't have one. In particular, it allows users whose account has been created via a clipper authentication to configure a password before losing their clipper. Even if they have already lost it, they are able to get one using the "Reset password" functionality. Allauth multiple emails management is deactivated. Requests to the related url redirect to the home page. All the login and logout views are replaced by the allauth' ones. It also concerns the Django and Wagtail admin sites. Note that users are no longer logged out of the clipper CAS server when they authenticated via this server. Instead a message suggests the user to disconnect. Clipper connections and `login_clipper` --------------------------------------- - Non-empty `login_clipper` are now unique among `CofProfile` instances. - They are created once for users with a non-empty 'login_clipper' (with the data migration 0014_create_clipper_connections). - The `login_clipper` of CofProfile instances are sync with their clipper connections: * `CofProfile.sync_clipper_connections` method updates the connections based on `login_clipper`. * Signals receivers `sync_clipper…` update `login_clipper` based on connections creations/updates/deletions. Misc ---- - Add NullCharField (model field) which allows to use `unique=True` on CharField (even with empty strings). - Parts of kfet mixins for TestCase are now in shared.tests.testcase, as they are used elsewhere than in the kfet app.
2017-10-19 01:12:52 +02:00
{% load i18n %}
{% load wagtailcore_tags %}
2012-06-27 23:28:35 +02:00
{% 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">
2015-09-13 18:23:47 +02:00
<!-- {% if open_events %}
2016-07-27 00:10:20 +02:00
<h3 class="block-title">Événements<span class="pull-right glyphicon glyphicon-calendar"></span></h3>
<div class="hm-block">
2012-06-27 23:28:35 +02:00
<ul>
{% for event in open_events %}
<li><a href="{% url "event.details" event.id %}">{{ event.title }}</a></li>
2012-06-27 23:28:35 +02:00
{% endfor %}
</ul>
</div>
{% endif %} -->
{% 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>
<div class="hm-block">
2012-06-27 23:28:35 +02:00
<ul>
{% for survey in open_surveys %}
<li><a href="{% url "survey.details" survey.id %}">{{ survey.title }}</a></li>
2012-06-27 23:28:35 +02:00
{% endfor %}
</ul>
</div>
{% endif %}
2015-09-13 18:23:47 +02:00
2016-06-01 16:08:15 +02:00
{% if user.profile.is_cof %}
{% 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>
<div class="hm-block">
{% for tirage in open_tirages %}
2016-06-01 16:08:15 +02:00
<ul>
<h4>{{ tirage.title }}</h4>
{% 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-manage" tirage.id %}">Gérer les places que je revends</a></li>
<li><a href="{% url "bda-revente-tirages" tirage.id %}">Voir les reventes en cours</a></li>
<li><a href="{% url "bda-revente-subscribe" tirage.id %}">Indiquer les spectacles qui m'intéressent</a></li>
<li><a href="{% url "bda-revente-shotgun" tirage.id %}">Places disponibles immédiatement</a></li>
{% endif %}
2016-06-01 16:08:15 +02:00
</ul>
{% endfor %}
</div>
{% endif %}
2017-01-26 20:40:55 +01:00
{% endif %}
<h3 class="block-title">K-Fêt<span class="pull-right"><i class="fa fa-coffee"></i></span></h3>
<div class="hm-block">
<ul>
{# TODO: Since Django 1.9, we can store result with "as", allowing proper value management (if None) #}
<li><a href="{% slugurl "k-fet" %}">Page d'accueil</a></li>
2017-01-26 20:40:55 +01:00
<li><a href="https://www.cof.ens.fr/k-fet/calendrier">Calendrier</a></li>
{% if perms.kfet.is_team %}
<li><a href="{% url 'kfet.kpsul' %}">K-Psul</a></li>
{% endif %}
</ul>
</div>
core -- Install django-allauth-ens Refer to allauth doc for an accurate features list: http://django-allauth.readthedocs.io/en/latest/ Users can now change their password, ask for a password reset, or set one if they don't have one. In particular, it allows users whose account has been created via a clipper authentication to configure a password before losing their clipper. Even if they have already lost it, they are able to get one using the "Reset password" functionality. Allauth multiple emails management is deactivated. Requests to the related url redirect to the home page. All the login and logout views are replaced by the allauth' ones. It also concerns the Django and Wagtail admin sites. Note that users are no longer logged out of the clipper CAS server when they authenticated via this server. Instead a message suggests the user to disconnect. Clipper connections and `login_clipper` --------------------------------------- - Non-empty `login_clipper` are now unique among `CofProfile` instances. - They are created once for users with a non-empty 'login_clipper' (with the data migration 0014_create_clipper_connections). - The `login_clipper` of CofProfile instances are sync with their clipper connections: * `CofProfile.sync_clipper_connections` method updates the connections based on `login_clipper`. * Signals receivers `sync_clipper…` update `login_clipper` based on connections creations/updates/deletions. Misc ---- - Add NullCharField (model field) which allows to use `unique=True` on CharField (even with empty strings). - Parts of kfet mixins for TestCase are now in shared.tests.testcase, as they are used elsewhere than in the kfet app.
2017-10-19 01:12:52 +02:00
<h3 class="block-title">
<span class="pull-right glyphicon glyphicon-user"></span>
{% trans "Mon compte" %}
</h3>
<div class="hm-block">
<ul>
<li>
<a href="{% url "profile.edit" %}">
{% trans "Éditer mon profil" %}
</a>
</li>
<li>
{# This also allows for clipper users to set a password. #}
<a href="{% url "account_change_password" %}">
{% trans "Changer mon mot de passe" %}
</a>
</li>
<li>
<a href="{% url "socialaccount_connections" %}">
{% trans "Connexion par tiers" %}
</a>
</li>
</ul>
</div>
2017-01-26 20:40:55 +01:00
{% if user.profile.is_cof %}
2016-07-27 00:10:20 +02:00
<h3 class="block-title">Divers<span class="pull-right glyphicon glyphicon-question-sign"></span></h3>
<div class="hm-block">
2013-10-01 15:27:19 +02:00
<ul>
<li><a href="{% url "calendar" %}">Calendrier dynamique</a></li>
core -- Install django-allauth-ens Refer to allauth doc for an accurate features list: http://django-allauth.readthedocs.io/en/latest/ Users can now change their password, ask for a password reset, or set one if they don't have one. In particular, it allows users whose account has been created via a clipper authentication to configure a password before losing their clipper. Even if they have already lost it, they are able to get one using the "Reset password" functionality. Allauth multiple emails management is deactivated. Requests to the related url redirect to the home page. All the login and logout views are replaced by the allauth' ones. It also concerns the Django and Wagtail admin sites. Note that users are no longer logged out of the clipper CAS server when they authenticated via this server. Instead a message suggests the user to disconnect. Clipper connections and `login_clipper` --------------------------------------- - Non-empty `login_clipper` are now unique among `CofProfile` instances. - They are created once for users with a non-empty 'login_clipper' (with the data migration 0014_create_clipper_connections). - The `login_clipper` of CofProfile instances are sync with their clipper connections: * `CofProfile.sync_clipper_connections` method updates the connections based on `login_clipper`. * Signals receivers `sync_clipper…` update `login_clipper` based on connections creations/updates/deletions. Misc ---- - Add NullCharField (model field) which allows to use `unique=True` on CharField (even with empty strings). - Parts of kfet mixins for TestCase are now in shared.tests.testcase, as they are used elsewhere than in the kfet app.
2017-10-19 01:12:52 +02:00
<li><a href="{% url "petits-cours-inscription" %}">Inscription pour donner des petits cours</a></li>
</ul>
</div>
{% endif %}
</div>
{% if user.profile.is_buro %}
<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>
<div class="hm-block">
2012-06-27 23:28:35 +02:00
<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 "registration" %}">Inscription d'un nouveau membre</a></li>
<li><a href="{% url "liste-clubs" %}">Gestion des clubs</a></li>
</ul>
<ul>
<h4>Évènements & Sondages</h4>
{% for event in events %}
<li><a href="{% url "event.details.status" event.id %}">Événement : {{ event.title }}</a></li>
{% endfor %}
{% for survey in surveys %}
<li><a href="{% url "survey.details.status" survey.id %}">Sondage : {{ survey.title }}</a></li>
{% 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>
<div class="hm-block">
{% 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>
{% 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 %}
</div>
2016-07-27 00:10:20 +02:00
<h3 class="block-title">Liens utiles<span class="pull-right glyphicon glyphicon-link"></span></h3>
<div class="hm-block">
<ul>
<li><a href="{% url "utile_cof" %}">Liens utiles du COF</a></li>
<li><a href="{% url "utile_bda" %}">Liens utiles BdA</a></li>
</ul>
</div>
</div>
{% endif %}
</div> <!-- /.row.home-menu -->
<div class="container hidden-xs espace"></div>
2016-07-11 21:48:11 +02:00
{% if not user.profile.is_buro %}
<div class="home-menu row row-centered">
<div class="col-sm-8 col-sm-offset-2 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-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 %}
<div class="container hidden-xs espace"></div>
</div><!-- /.container -->
2012-06-27 23:28:35 +02:00
{% endblock %}