diff --git a/templates/footer.html b/templates/footer.html index eb11075593..1276e7f791 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -71,7 +71,7 @@ {% endif %}
  • {% trans "Contact" %}
  • {% trans "Les cookies" %}
  • -
  • {% trans "Accessibilité" %}
  • +
  • {% trans "Accessibilité" %}
  • diff --git a/templates/pages/accessibilite.html b/templates/pages/accessibility.html similarity index 88% rename from templates/pages/accessibilite.html rename to templates/pages/accessibility.html index 347557c88c..68dd727620 100644 --- a/templates/pages/accessibilite.html +++ b/templates/pages/accessibility.html @@ -23,12 +23,12 @@

    {% trans "Déclaration d'accessibilité" %}

    {% block content %} {% set app.site.association.name as asso_name %} -{% set app.site.email_asso_access as email_asso %} -{% set app.site.email_tech_access as email_tech %} +{% 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 %} -

    L’association {{asso_name}} s’engage à rendre son site internet accessibles conformément à +

    L’association {{asso_name}} s’engage à rendre son site internet accessible conformément à l’article 47 de la loi № 2005-102 du 11 février 2005.

    {% endblocktrans %}

    @@ -44,7 +44,7 @@

    {% trans "État de conformité" %}

    {% 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 %}

    - {% blocktrans %}Cependant, un audit de conformité est prévu, bien qu’aucune date ne soit connue aujourd’hui. {% endblocktrans %} + {% blocktrans %}Cependant, un audit de conformité est envisagé, sans que l'échéance n'ait été encore définie. {% endblocktrans %}

    {% trans "Retour d’information et contact" %}

    diff --git a/zds/pages/tests.py b/zds/pages/tests.py index 64f6335c0c..f06d82913b 100644 --- a/zds/pages/tests.py +++ b/zds/pages/tests.py @@ -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.""" @@ -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.""" @@ -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.""" diff --git a/zds/pages/urls.py b/zds/pages/urls.py index b22be0c82f..63f1e7b6e9 100644 --- a/zds/pages/urls.py +++ b/zds/pages/urls.py @@ -4,7 +4,7 @@ about, association, eula, - accessibilite, + accessibility, alerts, cookies, index, @@ -20,7 +20,7 @@ path("technologies/", about, name="pages-technologies"), path("association/", association, name="pages-association"), path("contact/", ContactView.as_view(), name="pages-contact"), - path("accessibilite/", accessibilite, name="pages-accessibilite"), + path("accessibilite/", accessibility, name="pages-accessibility"), path("cgu/", eula, name="pages-eula"), path("alertes/", alerts, name="pages-alerts"), path("cookies/", cookies, name="pages-cookies"), diff --git a/zds/pages/views.py b/zds/pages/views.py index b7fce4e09e..1ec1797115 100644 --- a/zds/pages/views.py +++ b/zds/pages/views.py @@ -80,8 +80,8 @@ def association(request): def accessibility(request): - """Display accessibility's page""" - return render(request, "pages/accessibilite.html") + """Display accessibility page""" + return render(request, "pages/accessibility.html") class ContactView(ListView): diff --git a/zds/settings/abstract_base/zds.py b/zds/settings/abstract_base/zds.py index b16c851f8c..a242c2a1d6 100644 --- a/zds/settings/abstract_base/zds.py +++ b/zds/settings/abstract_base/zds.py @@ -65,8 +65,8 @@ "url": "https://zestedesavoir.com", "dns": "zestedesavoir.com", "email_contact": "zestedesavoir@gmail.com", - "email_asso_access": "association+accessibilite@zestedesavoir.com", - "email_tech_access": "technique+accessibilite@zestedesavoir.com", + "email_asso_accessibility": "association+accessibilite@zestedesavoir.com", + "email_tech_accessibility": "technique+accessibilite@zestedesavoir.com", "email_noreply": "noreply@zestedesavoir.com", "forum_feedback_users": "/forums/communaute/bug-suggestions/", "contribute_link": "https://docs.zestedesavoir.com/contributing.html",