This commit is contained in:
Lucie Galland 2021-11-25 10:00:01 +01:00
parent ec0dbd2282
commit bfb1f32132
6 changed files with 6 additions and 2 deletions

View file

@ -31,6 +31,7 @@ urlpatterns += i18n_patterns(
path("thanks", gestion_views.Thanks.as_view(), name="thanks"),
path("social", gestion_views.Social.as_view(), name="social"),
path("chef", gestion_views.Chef.as_view(), name="chef"),
path("yearbook2021", gestion_views.YearBook2021.as_view(), name="yearbook2021"),
path("profil", gestion_views.Profil.as_view(), name="profile"),
path("changename", gestion_views.ChangeName.as_view(), name="change-doodle-name"),
path("logout", auth_views.LogoutView.as_view(next_page="home"), name="logout"),

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View file

@ -64,7 +64,7 @@
<div class="dropdown-menu">
<a class="dropdown-item" href="{% url 'trombonoscope:view' %}">{% trans "Trombonoscope" %}</a>
<a class="dropdown-item" href="https://photos.cof.ens.fr/index.php/Clubs-du-COF/L'Ernestophone" target="_blank">{% trans "Galerie Photo" %}</a>
<a class="dropdown-item" href="{% static 'documents/yearbook2021.pdf' %}" target="_blank">{% trans "Year Book 2021" %}</a>
<a class="dropdown-item" href="{% url 'yearbook2021' %}" target="_blank">{% trans "Year Book 2021" %}</a>
</div>
</li>
{% if user.is_superuser or user.profile.is_chef or user.profile.is_chef_event or user.profile.is_chef_com %}

View file

@ -13,7 +13,7 @@
<ul>
<li> <a href="{% url 'trombonoscope:view' %}">{% trans "Trombonoscope" %}</a></li>
<li><a href="https://photos.cof.ens.fr/index.php/Clubs-du-COF/L'Ernestophone" target="_blank">{% trans "Galerie Photo" %}</a></li>
<li><a href="{% static 'documents/yearbook2021.pdf' %}" target="_blank">{% trans "Year Book 2021" %}</a></li>
<li><a href="{% url 'yearbook2021' %}" target="_blank">{% trans "Year Book 2021" %}</a></li>
</ul>
</div>

View file

@ -79,6 +79,9 @@ class Profil(LoginRequiredMixin, TemplateView):
class Chef(AllChefRequiredMixin, TemplateView):
template_name = "gestion/chef.html"
class YearBook2021(AllChefRequiredMixin, TemplateView):
template_name = "gestion/yearbook2021.html"
class ChangeName(LoginRequiredMixin, TemplateView):
form_class = ChangeDoodleName