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

Ajoute une page « Accessibilité » #6673

Merged
merged 6 commits into from
Nov 1, 2024
Merged
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
1 change: 1 addition & 0 deletions templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
{% endif %}
<li><a href="{% url "pages-contact" %}">{% trans "Contact" %}</a></li>
<li><a href="{% url "pages-cookies" %}">{% trans "Les cookies" %}</a></li>
<li><a href="{% url "pages-accessibility" %}">{% trans "Accessibilité" %}</a></li>
</ul>
</div>
</footer>
60 changes: 60 additions & 0 deletions templates/pages/accessibility.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{% extends "pages/base.html" %}
{% load i18n %}
{% load set %}


{% block title %}
{% blocktrans %}Déclaration d'accessibilité{% endblocktrans %}
{% endblock %}



{% block breadcrumb %}
<li>{% trans "Déclaration d'accessibilité" %}</li>
{% endblock %}



{% block headline %}
<h1>{% trans "Déclaration d'accessibilité" %}</h1>
{% endblock %}



{% block content %}
{% set app.site.association.name as asso_name %}
{% set app.site.email_asso_accessibility as email_asso %}
{% set app.site.email_tech_accessibility as email_tech %}
{% set app.site.dns as site_dns %}
{% set app.site.social.github as url_github %}
{% blocktrans %}
<p>L’association {{asso_name}} s’engage à rendre son site internet accessible conformément à
<a href="https://www.legifrance.gouv.fr/loda/article_lc/LEGIARTI000037388867" rel="nofollow">l’article 47 de la loi №&nbsp;2005-102 du 11 février 2005</a>.</p>
{% endblocktrans %}
<p>
{% blocktrans %}À cette fin, une attention est portée à l’accessibilité des mises à jour effectuées depuis décembre 2020 sur le site, date d'une reprise graphique de ce dernier, et des efforts de corrections ont été réalisés, parfois en coopération avec des personnes concernées volontaires. {% endblocktrans %}
</p>

<p>
{% blocktrans %}Cette déclaration d’accessibilité s’applique au site web de {{asso_name}} (<code class="notranslate">{{site_dns}}</code>). {% endblocktrans %}
</p>

<h3>{% trans "État de conformité" %}</h3>
<p>
{% blocktrans %}Aucun audit n’a été encore effectué. Le site web {{asso_name}} est non-conforme avec le référentiel général d’amélioration de l’accessibilité (RGAA). {% endblocktrans %}
</p>
<p>
{% blocktrans %}Cependant, un audit de conformité est envisagé, sans que l'échéance n'ait été encore définie. {% endblocktrans %}
</p>

<h3>{% trans "Retour d’information et contact" %}</h3>

<p>{% trans "Si vous n’arrivez pas à accéder à un contenu ou à un service, vous pouvez contacter le responsable du site internet ou son équipe de développement, pour être orienté·e vers une alternative accessible ou obtenir le contenu sous une autre forme." %}</p>

{% blocktrans %}
<ul>
<li>Contacter le Conseil d’Administration de l’association {{asso_name}}, à l’adresse <a href="mailto:{{email_asso}}">{{email_asso}}</a> ;</li>
<li>Contacter l’équipe de développement de {{asso_name}} <a href="{{url_github}}/issues/new">sur GitHub</a> ou par courriel à l’adresse <a href="mailto:{{email_tech}}">{{email_tech}}</a> .</li>
</ul>
{% endblocktrans %}
{% endblock %}
27 changes: 27 additions & 0 deletions zds/pages/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ def test_url_about(self):

self.assertEqual(result.status_code, 200)

def test_url_accessibility(self):
"""Test: check that accessibility page is alive."""

result = self.client.get(
reverse("pages-accessibility"),
)

self.assertEqual(result.status_code, 200)

def test_url_contact(self):
"""Test: check that contact page is alive."""

Expand Down Expand Up @@ -103,6 +112,15 @@ def test_url_about(self):

self.assertEqual(result.status_code, 200)

def test_url_accessibility(self):
"""Test: check that accessibility page is alive."""

result = self.client.get(
reverse("pages-accessibility"),
)

self.assertEqual(result.status_code, 200)

def test_url_contact(self):
"""Test: check that contact page is alive."""

Expand Down Expand Up @@ -159,6 +177,15 @@ def test_url_about(self):

self.assertEqual(result.status_code, 200)

def test_url_accessibility(self):
"""Test: check that accessibility page is alive."""

result = self.client.get(
reverse("pages-accessibility"),
)

self.assertEqual(result.status_code, 200)

def test_url_contact(self):
"""Test: check that contact page is alive."""

Expand Down
2 changes: 2 additions & 0 deletions zds/pages/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
about,
association,
eula,
accessibility,
alerts,
cookies,
index,
Expand All @@ -19,6 +20,7 @@
path("technologies/", about, name="pages-technologies"),
path("association/", association, name="pages-association"),
path("contact/", ContactView.as_view(), name="pages-contact"),
path("accessibilite/", accessibility, name="pages-accessibility"),
path("cgu/", eula, name="pages-eula"),
path("alertes/", alerts, name="pages-alerts"),
path("cookies/", cookies, name="pages-cookies"),
Expand Down
5 changes: 5 additions & 0 deletions zds/pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ def association(request):
return render(request, "pages/association.html")


def accessibility(request):
"""Display accessibility page"""
return render(request, "pages/accessibility.html")


class ContactView(ListView):
"""
Display contact page.
Expand Down
2 changes: 2 additions & 0 deletions zds/settings/abstract_base/zds.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
"url": "https://zestedesavoir.com",
"dns": "zestedesavoir.com",
"email_contact": "[email protected]",
"email_asso_accessibility": "[email protected]",
"email_tech_accessibility": "[email protected]",
"email_noreply": "[email protected]",
"forum_feedback_users": "/forums/communaute/bug-suggestions/",
"contribute_link": "https://docs.zestedesavoir.com/contributing.html",
Expand Down