- {{ field.errors }}
+
+
+ {% for entity in entities %}
+
+
+ {{ entity.name }}
+
+
+ {% for consent in entity.get_consents %}
+
+
+
+
+ {{ consent.delivery_point.provider_assigned_id }}
+
+
+
+
+
+ {% endfor %}
+
+
+ {{ field.errors }}
+
+
+ {% endfor %}
+
-
+
+ {% trans "submit" %}
+
+
-
{% trans "submit" %}
-
-
{% else %}
-
{% trans "No consents to validate" %}
+
+ {% trans "No consents to validate" %}
+
{% endif %}
{% endblock dashboard_content %}
-{% block extra_dashboard_js %}
-
-{% endblock extra_dashboard_js %}
+{% block dashboard_extra_js %}
+ {% if entities %}
+
+ {% endif %}
+{% endblock dashboard_extra_js %}
diff --git a/src/dashboard/apps/home/templates/home/cards/consentement.html b/src/dashboard/apps/home/templates/home/cards/consentement.html
index 1e0f0b46..dbc8a552 100644
--- a/src/dashboard/apps/home/templates/home/cards/consentement.html
+++ b/src/dashboard/apps/home/templates/home/cards/consentement.html
@@ -1,43 +1,11 @@
-{% load i18n %}
+{% load i18n dsfr_tags %}
-{# todo: add real content to the card #}
+{% comment %}
+todo: add real content and image to the card
+{% endcomment %}
-
-
-
-
+{% translate "Consent Management" as consent_card_title %}
+{% translate "Lorem [...] elit ut." as consent_card_description %}
+{% url 'consent:index' as consent_index_url %}
-
-
-
- {% trans "Consent Management" %}
-
-
-
- Texte de la carte.
- …
-
-
-
-
-
-
-
-
-
-
-
+{% dsfr_card title=consent_card_title link=consent_index_url description=consent_card_description extra_class="fr-card--horizontal" image_url="https://www.systeme-de-design.gouv.fr/img/placeholder.16x9.png" %}
diff --git a/src/dashboard/apps/home/templates/home/index.html b/src/dashboard/apps/home/templates/home/index.html
index fee5f3ac..afb77acb 100644
--- a/src/dashboard/apps/home/templates/home/index.html
+++ b/src/dashboard/apps/home/templates/home/index.html
@@ -3,9 +3,17 @@
{% load i18n %}
{% block dashboard_content %}
-
- {% trans "QualiCharge dashboard" %}
-
+
+
+
+ {% trans "QualiCharge dashboard" %}
+
+
+
- {% include "home/cards/consentement.html" %}
+
+
+ {% include "home/cards/consentement.html" %}
+
+
{% endblock dashboard_content %}
diff --git a/src/dashboard/templates/403.html b/src/dashboard/templates/403.html
new file mode 100644
index 00000000..3a38b1f9
--- /dev/null
+++ b/src/dashboard/templates/403.html
@@ -0,0 +1,65 @@
+{% extends "base.html" %}
+{% load static i18n %}
+
+{% comment %}
+todo: revoir le contenu rédactionnel de cette page
+Faut-il ajouter un bouton contact et un formulaire comme préconisé dans le DSFR:
+https://www.systeme-de-design.gouv.fr/composants-et-modeles/modeles/page-d-erreurs/
+{% endcomment %}
+
+{% block page_title %}
+
{% trans "Permission denied" %}
+{% endblock page_title %}
+
+{% block content %}
+
+
+
+
+
+ {% trans "Permission denied" %}
+
+
+ {% trans "Error 403" %}
+
+
+ {% trans "Sorry, You do not have the necessary permissions to access this page.." %}
+
+
+ {% blocktranslate %}
+ If you think this is a mistake, you can contact our team.
+ Otherwise, to continue your visit you can consult our home page.
+ {% endblocktranslate %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{% endblock content %}
diff --git a/src/dashboard/templates/404.html b/src/dashboard/templates/404.html
index 7f46c1cb..555ca6d6 100644
--- a/src/dashboard/templates/404.html
+++ b/src/dashboard/templates/404.html
@@ -1,23 +1,66 @@
{% extends "base.html" %}
{% load static i18n %}
-{# todo: revoir le contenu rédactionnel de cette page #}
+{% comment %}
+todo: revoir le contenu rédactionnel de cette page
+Faut-il ajouter un bouton contact et un formulaire comme préconisé dans le DSFR:
+https://www.systeme-de-design.gouv.fr/composants-et-modeles/modeles/page-d-erreurs/
+{% endcomment %}
{% block page_title %}
-
{% trans "Page not found (Err 404)" %}
+
{% trans "Page not found" %}
{% endblock page_title %}
{% block content %}
-
-
- {% trans "Page not found (Err 404)" %}
-
- {% url 'home:index' as url_home %}
-
- {% blocktranslate %}
- Sorry but this page does not exist.
- You can return to the home page.
- {% endblocktranslate %}
-
-
+
+
+
+
+
+ {% trans "Page not found" %}
+
+
+ {% trans "Error 404" %}
+
+
+ {% trans "The page you are looking for could not be found. We apologize for the inconvenience." %}
+
+
+ {% blocktranslate %} If you typed the web address in the
+browser, check that it is correct. The page may no longer be
+available. In this case, to continue your visit you can consult
+our home page.{% endblocktranslate %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{% endblock content %}
diff --git a/src/dashboard/templates/500.html b/src/dashboard/templates/500.html
index 2f3f1983..9958bea3 100644
--- a/src/dashboard/templates/500.html
+++ b/src/dashboard/templates/500.html
@@ -1,23 +1,57 @@
{% extends "base.html" %}
{% load static i18n %}
-{# todo: revoir le contenu rédactionnel de cette page #}
+{% comment %}
+todo: revoir le contenu rédactionnel de cette page
+Faut-il ajouter un bouton contact et un formulaire comme préconisé dans le DSFR:
+https://www.systeme-de-design.gouv.fr/composants-et-modeles/modeles/page-d-erreurs/
+{% endcomment %}
{% block page_title %}
-
{% trans "Server Error (Err. 500)" %}
+
{% trans "Unexpected error" %}
{% endblock page_title %}
{% block content %}
-
-
- {% trans "Server Error (Err 500)" %}
-
- {% url 'home:index' as url_home %}
-
- {% blocktrans %}
- Oops, It seems that the server has a problem.
- You can try to return to the home page.
- {% endblocktrans %}
-
-
+
+
+
+
+
+ {% trans "Unexpected error" %}
+
+
+ {% trans "Error 500" %}
+
+
+ {% trans "Sorry, there is a problem with the service, we are working to resolve it as quickly as possible." %}
+
+
+ {% trans "Try refreshing the page or try again later." %}
+
+ {% comment %}
+
+ {% endcomment %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{% endblock content %}
diff --git a/src/dashboard/templates/base.html b/src/dashboard/templates/base.html
index 9c8b2baf..0d3a0f09 100644
--- a/src/dashboard/templates/base.html
+++ b/src/dashboard/templates/base.html
@@ -1,25 +1,27 @@
{% extends "dsfr/base.html" %}
-{% load static i18n %}
+{% load static i18n dsfr_tags %}
+
+{% block extra_css %}
+ {% block dashboard_extra_css %}
+ {% endblock dashboard_extra_css %}
+{% endblock extra_css %}
{% block header %}
{% include "blocks/header.html" %}
{% endblock header %}
{% block content %}
- {% if messages %}
-
- {% for message in messages %}
- {{ message }}
- {% endfor %}
-
- {% endif %}
- {% block dashboard_content %}{% endblock dashboard_content %}
+ {% dsfr_django_messages %}
+
+ {% block dashboard_content %}
+ {% endblock dashboard_content %}
{% endblock content %}
{% block extra_js %}
- {% block extra_dashboard_js %}{% endblock extra_dashboard_js %}
+ {% block dashboard_extra_js %}
+ {% endblock dashboard_extra_js %}
{% endblock extra_js %}
{# djlint:off #}