diff --git a/Ernestophone/urls.py b/Ernestophone/urls.py index 081e0d5..26aa73b 100644 --- a/Ernestophone/urls.py +++ b/Ernestophone/urls.py @@ -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"), diff --git a/gestion/static/documents/yearbook2021.pdf b/gestion/static/documents/yearbook2021.pdf index 7c61f65..5eaee45 100644 Binary files a/gestion/static/documents/yearbook2021.pdf and b/gestion/static/documents/yearbook2021.pdf differ diff --git a/gestion/static/images/cover_yearbook2021.png b/gestion/static/images/cover_yearbook2021.png new file mode 100644 index 0000000..8ca3864 Binary files /dev/null and b/gestion/static/images/cover_yearbook2021.png differ diff --git a/gestion/templates/gestion/base.html b/gestion/templates/gestion/base.html index cf3d16a..834906a 100644 --- a/gestion/templates/gestion/base.html +++ b/gestion/templates/gestion/base.html @@ -64,7 +64,7 @@ {% if user.is_superuser or user.profile.is_chef or user.profile.is_chef_event or user.profile.is_chef_com %} diff --git a/gestion/templates/gestion/social.html b/gestion/templates/gestion/social.html index 695c021..6ada5e0 100644 --- a/gestion/templates/gestion/social.html +++ b/gestion/templates/gestion/social.html @@ -13,7 +13,7 @@ diff --git a/gestion/views.py b/gestion/views.py index 2549978..3797e74 100644 --- a/gestion/views.py +++ b/gestion/views.py @@ -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