Skip to content

Commit

Permalink
Add partial to announce release of school year
Browse files Browse the repository at this point in the history
  • Loading branch information
pskl committed Oct 21, 2024
1 parent 8d4cc6b commit d8bd22b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/views/home/_home_timeline.html.haml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions app/views/school_years/_announcement.haml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion app/views/shared/_etab_banner.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
= dsfr_link_to "Changer d'établissement", user_select_establishment_path(current_user), class: "fr-text--sm fr-ml-1w"

0 comments on commit d8bd22b

Please sign in to comment.