From e81ef5775372de2c70b4d04b72cdecc2c48c5515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 30 Mar 2018 13:36:08 +0200 Subject: [PATCH] templates: improve markup of oauth2 pages (#22922) --- fargo/templates/fargo/oauth2/authorize.html | 8 ++++++-- fargo/templates/fargo/oauth2/confirm.html | 12 +++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/fargo/templates/fargo/oauth2/authorize.html b/fargo/templates/fargo/oauth2/authorize.html index 04a6036..b08dfaf 100644 --- a/fargo/templates/fargo/oauth2/authorize.html +++ b/fargo/templates/fargo/oauth2/authorize.html @@ -2,10 +2,14 @@ {% load i18n %} {% block content %} +
{% csrf_token %} {{ form.as_p }} - - +
+ + +
+
{% endblock %} diff --git a/fargo/templates/fargo/oauth2/confirm.html b/fargo/templates/fargo/oauth2/confirm.html index 66d522b..f5a403a 100644 --- a/fargo/templates/fargo/oauth2/confirm.html +++ b/fargo/templates/fargo/oauth2/confirm.html @@ -2,19 +2,21 @@ {% load i18n %} {% block content %} -
+
{% if error_message %}

{% trans error_message %}

{% trans "Continue to your client url" %} {% else %}

{% blocktrans %} - Do you accept to add {{ filename }} to your portfolio? + Do you accept to add {{ filename }} to your portfolio? {% endblocktrans %}

{% csrf_token %} - - +
+ + +
{% endif %} -
+
{% endblock %} -- 2.16.3