Compare commits

...

4 commits

Author SHA1 Message Date
LeSim
c6bc7cf98e
Merge pull request #9022 from mfo/US/fix-sections
correctif(sections.numerotation-automatique): ETQ administrateur, je souhaite que la numerotation automatique des titres de section fonctionne meme quand si deux titres de sections se succèdent
2023-05-10 07:23:49 +00:00
LeSim
79282aad48
Merge pull request #9020 from demarches-simplifiees/add_administration_header
Ajouter des bannières visant soit les instructeurs / admins soit les usagers
2023-05-10 07:20:29 +00:00
simon lehericey
19c9d12e71 add banner for administrations / usagers 2023-05-09 17:14:23 +02:00
Martin
180c659a84 correctif(sections.numerotation-automatique): ETQ administrateur, je souhaite que la numerotation automatique des titres de section fonctionne meme quand si deux titres de sections se succèdent 2023-05-09 14:23:53 +02:00
3 changed files with 19 additions and 1 deletions

View file

@ -10,7 +10,7 @@
= render EditableChamp::EditableChampComponent.new form: ,champ:
- else
- if header_section
= render EditableChamp::HeaderSectionComponent.new(champ: header_section)
%div{ class: "reset-#{tag_for_depth}" }= render EditableChamp::HeaderSectionComponent.new(champ: header_section)
- splitted_tail.each do |section, champ|
- if section.present?
= render section

View file

@ -2,3 +2,13 @@
.site-banner.warning
.container
= sanitize(ENV['BANNER_MESSAGE'])
- if ENV['ADMINISTRATION_BANNER_MESSAGE'].present? && instructeur_signed_in?
.site-banner.warning
.container
= sanitize(ENV['ADMINISTRATION_BANNER_MESSAGE'])
- if ENV['USAGER_BANNER_MESSAGE'].present? && !instructeur_signed_in?
.site-banner.warning
.container
= sanitize(ENV['USAGER_BANNER_MESSAGE'])

View file

@ -188,3 +188,11 @@ SMTP_AUTHENTICATION="plain"
SENDMAIL_ENABLED="disabled"
SENDMAIL_LOCATION="/usr/sbin/sendmail"
SENDMAIL_ARGUMENTS="-i"
# Various banner for important messages
# for all users
BANNER_MESSAGE=""
# for instructeurs and admins only
ADMINISTRATION_BANNER_MESSAGE=""
# for usager only
USAGER_BANNER_MESSAGE=""