add static page legal notices
This commit is contained in:
parent
64565857e4
commit
7af378688e
9 changed files with 82 additions and 4 deletions
12
app/assets/stylesheets/static_page.scss
Normal file
12
app/assets/stylesheets/static_page.scss
Normal file
|
@ -0,0 +1,12 @@
|
|||
.static-page {
|
||||
margin: 0 auto;
|
||||
padding-top: 1.8rem;
|
||||
}
|
||||
|
||||
.legal {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.legal-block {
|
||||
margin-bottom: 2rem;
|
||||
}
|
|
@ -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 {
|
||||
|
|
8
app/controllers/legal_notice_controller.rb
Normal file
8
app/controllers/legal_notice_controller.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
class LegalNoticeController < ApplicationController
|
||||
invisible_captcha only: [:create], on_spam: :redirect_to_root
|
||||
|
||||
def index
|
||||
|
||||
end
|
||||
|
||||
end
|
29
app/views/legal_notice/index.html.haml
Normal file
29
app/views/legal_notice/index.html.haml
Normal 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')
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -77,6 +77,22 @@ fr:
|
|||
instructeur: 'Aller à la liste des démarches'
|
||||
admin: "Aller au panneau d’administration"
|
||||
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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue