add static page legal notices

This commit is contained in:
Julie Salha 2023-03-15 13:15:37 +01:00
parent 64565857e4
commit 7af378688e
9 changed files with 82 additions and 4 deletions

View file

@ -0,0 +1,12 @@
.static-page {
margin: 0 auto;
padding-top: 1.8rem;
}
.legal {
margin-bottom: 0.5rem;
}
.legal-block {
margin-bottom: 2rem;
}

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,8 @@
class LegalNoticeController < ApplicationController
invisible_captcha only: [:create], on_spam: :redirect_to_root
def index
end
end

View file

@ -0,0 +1,29 @@
- content_for(:title, t('views.legal_notice.title'))
- content_for :footer do
= render partial: "root/footer"
#legal-notice.static-page
.container
%h1.new-h1
= t('views.legal_notice.title')
.legal-block
%h2
= t('views.legal_notice.editing')
%p.legal= t('views.legal_notice.editing_content.line_one')
%p.legal= t('views.legal_notice.editing_content.line_two')
%p.legal= t('views.legal_notice.editing_content.line_three')
.legal-block
%h2
= t('views.legal_notice.direction')
%p.legal= t('views.legal_notice.direction_content')
.legal-block
%h2
= t('views.legal_notice.hosting')
%p.legal= t('views.legal_notice.hosting_content.line_one')
%p.legal= t('views.legal_notice.hosting_content.line_two')
%p.legal= t('views.legal_notice.hosting_content.line_three')
%p.legal= t('views.legal_notice.hosting_content.line_four')
%p.legal= t('views.legal_notice.hosting_content.line_five')

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_path, 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

@ -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_path, 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

@ -86,6 +86,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

@ -77,6 +77,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

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