Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PAGES] mise à jour des pages de mentions #396

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lacommunaute/pages/tests/test_mentions_legales.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import pytest # noqa
from django.urls import reverse
from pytest_django.asserts import assertTemplateUsed


def test_template(client, db):
response = client.get(reverse("pages:mentions_legales"))
assertTemplateUsed(response, "pages/mentions_legales.html")
8 changes: 8 additions & 0 deletions lacommunaute/pages/tests/test_politique_confidentialite.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import pytest # noqa
from django.urls import reverse
from pytest_django.asserts import assertTemplateUsed


def test_template(client, db):
response = client.get(reverse("pages:politique_de_confidentialite"))
assertTemplateUsed(response, "pages/politique_de_confidentialite.html")
2 changes: 2 additions & 0 deletions lacommunaute/pages/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
path("contact/", views.contact, name="contact"),
path("statistiques/", views.StatistiquesPageView.as_view(), name="statistiques"),
path("accessibilite/", views.accessibilite, name="accessibilite"),
path("mentions-legales/", views.mentions_legales, name="mentions_legales"),
path("politique-de-confidentialite/", views.politique_de_confidentialite, name="politique_de_confidentialite"),
path("landing-pages/", views.LandingPagesListView.as_view(), name="landing_pages"),
path("sentry-debug/", views.trigger_error, name="sentry_debug"),
path("robots.txt", TemplateView.as_view(template_name="robots.txt", content_type="text/plain"), name="robots"),
Expand Down
8 changes: 8 additions & 0 deletions lacommunaute/pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ def accessibilite(request):
return render(request, "pages/accessibilite.html")


def mentions_legales(request):
return render(request, "pages/mentions_legales.html")


def politique_de_confidentialite(request):
return render(request, "pages/politique_de_confidentialite.html")


def trigger_error(request):
if request.POST:
raise Exception("%s error: %s" % (request.POST.get("status_code"), request.POST.get("error_message")))
Expand Down
63 changes: 63 additions & 0 deletions lacommunaute/templates/pages/mentions_legales.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{% extends "layouts/base.html" %}

{% block title %}Mentions légales{{ block.super }}{% endblock %}
{% block body_class %}p-mention-legales{{ block.super }}{% endblock %}

{% block content %}
<section class="s-title-01 mt-lg-5">
<div class="s-title-01__container container">
<div class="s-title-01__row row">
<div class="s-title-01__col col-12">
<h1 class="s-title-01__title h1"><strong>Mentions légales</strong></h1>
</div>
</div>
</div>
</section>

<section class="s-cms">
<div class="s-cms__container container container-max-lg">
<div class="s-cms__row row">
<div class="s-cms__col col-12">
<article>
<p class="h2 mb-3">Éditeur de la plateforme</p>
<p>La plateforme « La Communauté de l’inclusion » est éditée par :</p>
<p>Le Groupement d’Intérêt Public « Plateforme de l’inclusion » situé : </p>
<address>
127 Rue de Grenelle
<br>
75007 Paris
<br>
France
</address>

<p class="h2 mb-3">Directeur de la publication</p>
<p>Le Directeur de la publication est Monsieur Arnaud Denoix, Directeur du GIP Plateforme de l’inclusion.</p>

<p class="h2 mb-3">Hébergement de la plateforme</p>
<p>Cette plateforme est hébergée par : </p>
<address>
Clever Cloud SAS
<br>
5, passage de l’industrie
<br>
92130 Issy-Les-Moulineaux
<br>
France
</address>

<p class="h2 mb-3">Accessibilité</p>
<p>La conformité aux normes d’accessibilité numérique est un objectif ultérieur mais nous tâchons de rendre ce site accessible à toutes et à tous.</p>

<p class="h2 mb-3">Signaler un dysfonctionnement</p>
<p>Si vous rencontrez un défaut d’accessibilité vous empêchant d’accéder à un contenu ou à une fonctionnalité du site, merci de nous en faire part.</p>

<p class="h2 mb-3">Sécurité</p>
<p>Le site est protégé par un certificat électronique, matérialisé pour la grande majorité des navigateurs par un cadenas. Cette protection participe à la confidentialité des échanges.</p>


</article>
</div>
</div>
</div>
</section>
{% endblock %}
Loading
Loading