diff --git a/templates/authentic2/accounts_authorized_oauth_services.html b/templates/authentic2/accounts_authorized_oauth_services.html new file mode 100644 index 0000000..7b39ca8 --- /dev/null +++ b/templates/authentic2/accounts_authorized_oauth_services.html @@ -0,0 +1,66 @@ +{% extends "authentic2/cut-base.html" %} +{% load i18n %} + +{% block title %}{% endblock %} + +{% block title %} +{{ block.super }} - Mes consentements +{% endblock %} + +{% block cut-content %} +
+

Mes consentements

+ +{% block oidc-authorized-oauth-services-pre %}{% endblock %} +
+ {% block oidc-authorized-oauth-services-top %} +

+ {% if authorized_oauth_services|length_is:0 %} + {% trans "You have not granted service access to your account profile data." %} + {% else %} + {% blocktrans count counter=authorized_oauth_services|length %} + You have granted one service access to your account profile data. + {% plural %} + You have granted {{ counter }} services access to your account profile data. + {% endblocktrans %} + {% endif %} +

+ {% endblock %} + +{% block oidc-authorized-oauth-services-bottom %}{% endblock %} +
+{% block oidc-authorized-oauth-services-post %}{% endblock %} +{% endblock %} +
diff --git a/templates/authentic2/cut-base.html b/templates/authentic2/cut-base.html new file mode 100644 index 0000000..a950a98 --- /dev/null +++ b/templates/authentic2/cut-base.html @@ -0,0 +1,33 @@ +{% extends "authentic2/base.html" %} +{% load i18n %} + +{% block content %} +{% block back %} +
+
Revenir à mon compte
+
+{% endblock %} + +{% block cut-content %} +
+

{% block cut-edit-title %}{% endblock %}

+
+{{ form.next_url }} +{% csrf_token %} +
+ {% if form.is_bound and not form.is_valid %} +
    +
  • Le formulaire comporte des erreurs qui sont indiquées ci-dessous.
  • +
+ {% endif %} +{% block form %} +{% endblock %} +
+

+ +

+
+
+{% endblock %} +{% endblock %} + diff --git a/templates/authentic2/cut-edit.html b/templates/authentic2/cut-edit.html index fea1736..d12110e 100644 --- a/templates/authentic2/cut-edit.html +++ b/templates/authentic2/cut-edit.html @@ -1,11 +1,7 @@ -{% extends "authentic2/base.html" %} +{% extends "authentic2/cut-base.html" %} {% load i18n %} -{% block content %} -
-
Revenir à mon compte
-
- +{% block cut-content %}

{% block cut-edit-title %}{% endblock %}