Merge pull request #8762 from demarches-simplifiees/8589-legal-notice

Accessibilité: internalise la page de mentions légales
This commit is contained in:
Colin Darie 2023-03-27 08:12:34 +00:00 committed by GitHub
commit 9a38da09ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 70 additions and 7 deletions

View file

@ -17,8 +17,8 @@ $new-h2-margin-bottom: 3 * $default-space;
}
.new-h1 {
margin-bottom: $new-h1-margin-bottom;
font-size: 41px;
margin-bottom: 3.75rem;
font-size: 2.5rem;
}
.new-h2 {

View file

@ -0,0 +1,4 @@
class StaticPagesController < ApplicationController
def legal_notice
end
end

View file

@ -13,7 +13,7 @@
%h3.fr-footer__top-cat= t("links.footer.top_labels.legals")
%ul.fr-footer__top-list
%li.fr-footer__top-link
= link_to t("links.footer.mentions_legales.label"), t("links.footer.mentions_legales.url"), title: t("links.footer.mentions_legales.title"), class: "fr-footer__top-link", rel: "noopener noreferrer"
= link_to t("links.footer.mentions_legales.label"), MENTIONS_LEGALES_URL, title: t("links.footer.mentions_legales.title"), class: "fr-footer__top-link", rel: "noopener noreferrer"
%li.fr-footer__top-link
= link_to t("links.footer.suivi.label"), suivi_path, title: t("links.footer.suivi.title"), class: "fr-footer__top-link"
%li.fr-footer__top-link

View file

@ -0,0 +1,32 @@
- content_for(:title, t('views.legal_notice.title'))
- content_for :footer do
= render partial: "root/footer"
#legal-notice.fr-pt-2w
.fr-container.fr-my-4w
.fr-grid-row
.fr-col-xl-2
.fr-col-xl-8
%h1.fr-mb-4w
= t('views.legal_notice.title')
.fr-mb-4w
%h2
= t('views.legal_notice.editing')
%p.fr-mb-2w= t('views.legal_notice.editing_content.line_one')
%p.fr-mb-2w= t('views.legal_notice.editing_content.line_two')
%p.fr-mb-2w= t('views.legal_notice.editing_content.line_three')
.fr-mb-4w
%h2
= t('views.legal_notice.direction')
%p.fr-mb-2w= t('views.legal_notice.direction_content')
.fr-mb-4w
%h2
= t('views.legal_notice.hosting')
%p.fr-mb-2w= t('views.legal_notice.hosting_content.line_one')
%p.fr-mb-2w= t('views.legal_notice.hosting_content.line_two')
%p.fr-mb-2w= t('views.legal_notice.hosting_content.line_three')
%p.fr-mb-2w= t('views.legal_notice.hosting_content.line_four')
%p.fr-mb-2w= t('views.legal_notice.hosting_content.line_five')

View file

@ -2,6 +2,6 @@
%li.fr-footer__bottom-item
= link_to t("links.footer.accessibilite.label"), t("links.footer.accessibilite.url"), title: t("links.footer.accessibilite.title"), class: "fr-footer__bottom-link", rel: "noopener noreferrer"
%li.fr-footer__bottom-item
= link_to t("links.footer.mentions_legales.label"), t("links.footer.mentions_legales.url"), title: t("links.footer.mentions_legales.title"), class: "fr-footer__bottom-link", rel: "noopener noreferrer"
= link_to t("links.footer.mentions_legales.label"), MENTIONS_LEGALES_URL, title: t("links.footer.mentions_legales.title"), class: "fr-footer__bottom-link", rel: "noopener noreferrer"
%li.fr-footer__bottom-item
= link_to t("links.footer.cookies.label"), suivi_path, title: t("links.footer.cookies.title"), class: "fr-footer__bottom-link"

View file

@ -29,7 +29,7 @@ INSTRUCTEUR_TUTORIAL_URL = [DOC_URL, "tutoriels", "tutoriel-accompagnateur"].joi
CADRE_JURIDIQUE_URL = [DOC_URL, "tutoriels/video-le-cadre-juridique"].join("/")
LISTE_DES_DEMARCHES_URL = [DOC_URL, "listes-des-demarches"].join("/")
CGU_URL = ENV.fetch("CGU_URL", [DOC_URL, "cgu"].join("/"))
MENTIONS_LEGALES_URL = ENV.fetch("MENTIONS_LEGALES_URL", [DOC_URL, "mentions-legales"].join("/"))
MENTIONS_LEGALES_URL = ENV.fetch("MENTIONS_LEGALES_URL", "/mentions-legales")
ACCESSIBILITE_URL = ENV.fetch("ACCESSIBILITE_URL", [DOC_URL, "declaration-daccessibilite"].join("/"))
API_DOC_URL = [DOC_URL, "pour-aller-plus-loin", "graphql"].join("/")
WEBHOOK_DOC_URL = [DOC_URL, "pour-aller-plus-loin", "webhook"].join("/")

View file

@ -100,6 +100,17 @@ en:
instructeur: 'Go to procedures list'
admin: 'Go to administration panel'
views:
legal_notice:
title: "Legal Notices"
editing: "Editor"
editing_content:
line_one: "Interministerial Directorate for Digital Affairs (DINUM)"
direction: "Publishing Department"
direction_content: "Ms. Stéphanie Schaer , Interministerial Director of Digital Affairs."
hosting: "Hosting provider"
hosting_content:
line_four: "VAT NUMBER: FR 22 424 761 419"
line_five: "Head office : 2 rue Kellermann - 59100 Roubaix - France."
commencer:
show:
start_procedure: Start the procedure

View file

@ -91,6 +91,22 @@ fr:
instructeur: 'Aller à la liste des démarches'
admin: "Aller au panneau dadministration"
views:
legal_notice:
title: "Mentions légales"
editing: "Éditeur"
editing_content:
line_one: "Direction Interministérielle au Numérique (DINUM)"
line_two: "20 Avenue de Ségur"
line_three: "75007 PARIS"
direction: "Direction de la publication"
direction_content: "Madame Stéphanie Schaer , Directrice interministérielle du numérique."
hosting: "Prestataire d'hébergement"
hosting_content:
line_one: "OVH"
line_two: "RCS Roubaix Tourcoing 424 761 419 00045"
line_three: "Code APE 6202A"
line_four: "N° TVA : FR 22 424 761 419"
line_five: "Siège social : 2 rue Kellermann - 59100 Roubaix - France."
commencer:
show:
start_procedure: Commencer la démarche

View file

@ -55,7 +55,6 @@ en:
mentions_legales:
label: "Legal notices"
title: "Legal notices regarding our platform"
url: "https://doc.demarches-simplifiees.fr/mentions-legales"
releases:
label: "Releases notes"
title: "Our last updates"

View file

@ -58,7 +58,6 @@ fr:
mentions_legales:
label: "Mentions légales"
title: "Consulter nos Mentions légales"
url: "https://doc.demarches-simplifiees.fr/mentions-legales"
releases:
label: "Nouveautés"
title: "Les dernière mises à jour de la plateforme"

View file

@ -195,6 +195,8 @@ Rails.application.routes.draw do
get "contact-admin", to: "support#admin"
get "mentions-legales", to: "static_pages#legal_notice"
post "webhooks/sendinblue", to: "webhook#sendinblue"
post "webhooks/helpscout", to: "webhook#helpscout"
post "webhooks/helpscout_support_dev", to: "webhook#helpscout_support_dev"