diff --git a/app/views/home/_home_timeline.html.haml b/app/views/home/_home_timeline.html.haml index b776e8e46..a51789e35 100644 --- a/app/views/home/_home_timeline.html.haml +++ b/app/views/home/_home_timeline.html.haml @@ -1,5 +1,6 @@ -%h1= "Année scolaire #{selected_school_year}" += render 'school_years/announcement' +%h1= "Année scolaire #{selected_school_year}" - if @establishment_facade.students_count <= 0 = t("errors.school_years.not_found").html_safe - else diff --git a/app/views/school_years/_announcement.haml b/app/views/school_years/_announcement.haml new file mode 100644 index 000000000..457f08707 --- /dev/null +++ b/app/views/school_years/_announcement.haml @@ -0,0 +1,6 @@ +.fr-callout.fr-icon-information-line + %h3.fr-callout__title Accès à la nouvelle année scolaire + %p.fr-callout__text + = "Vous pouvez désormais commencer à saisir de nouvelles PFMPs pour l'année scolaire #{SchoolYear.current} en cliquant ci-dessous mais aussi dès à présent en sélectionnant l'année choisie dans le bandeau de navigation. Vous pouvez à tout moment rebasculer vers l'année précédente pour saisir d'éventuelles PFMPs manquantes." + %button.fr-btn + =link_to "Changer d'année scolaire", select_school_years_path diff --git a/app/views/shared/_etab_banner.html.haml b/app/views/shared/_etab_banner.html.haml index 983994f5d..04c312a38 100644 --- a/app/views/shared/_etab_banner.html.haml +++ b/app/views/shared/_etab_banner.html.haml @@ -6,4 +6,4 @@ %div = dsfr_link_to "Changer d'année scolaire", select_school_years_path, class: "fr-text--sm" - if current_user.establishments.many? - = dsfr_link_to "Changer d'établissement", user_select_establishment_path(current_user), class: "fr-text--sm fr-ml-1w" \ No newline at end of file + = dsfr_link_to "Changer d'établissement", user_select_establishment_path(current_user), class: "fr-text--sm fr-ml-1w"