diff --git a/passbook/core/templates/login/denied.html b/passbook/core/templates/login/denied.html index 592ae2a5b..aff267096 100644 --- a/passbook/core/templates/login/denied.html +++ b/passbook/core/templates/login/denied.html @@ -4,27 +4,18 @@ {% load i18n %} {% load utils %} -{% block head %} -{{ block.super }} - -{% endblock %} - {% block card %} -
-

{% trans title %}

-
-
- {% csrf_token %} - {% include 'partials/form.html' %} - - Access denied - {% if 'back' in request.GET %} - {% trans 'Back' %} - {% endif %} + + {% csrf_token %} + {% include 'partials/form.html' %} +
+

+ + {% trans 'Access denied' %} +

+
+ {% if 'back' in request.GET %} + {% trans 'Back' %} + {% endif %}
{% endblock %} diff --git a/passbook/providers/oauth/templates/oauth2_provider/authorize.html b/passbook/providers/oauth/templates/oauth2_provider/authorize.html index 4060f0090..0ae8e4393 100644 --- a/passbook/providers/oauth/templates/oauth2_provider/authorize.html +++ b/passbook/providers/oauth/templates/oauth2_provider/authorize.html @@ -3,15 +3,12 @@ {% load utils %} {% load i18n %} -{% block title %} +{% block card_title %} {% title 'Authorize Application' %} {% endblock %} {% block card %} -
-

{% trans 'Authorize Application' %}

-
-
+ {% csrf_token %} {% if not error %} {% csrf_token %} @@ -20,32 +17,40 @@ {{ field }} {% endif %} {% endfor %} -
+

{% blocktrans with remote=application.name %} - You're about to sign into {{ remote }} + You're about to sign into {{ remote }}. {% endblocktrans %}

{% trans "Application requires following permissions" %}

-
    +
      {% for scope in scopes_descriptions %}
    • {{ scope }}
    • {% endfor %}
    {{ form.errors }} {{ form.non_field_errors }} +
+

{% blocktrans with user=user %} You are logged in as {{ user }}. Not you? {% endblocktrans %} {% trans 'Logout' %}

- - + + {% else %} @@ -61,9 +66,8 @@ {% block scripts %} {% endblock %} diff --git a/passbook/providers/oidc/templates/oidc_provider/authorize.html b/passbook/providers/oidc/templates/oidc_provider/authorize.html index d6392bf1e..6438d8a92 100644 --- a/passbook/providers/oidc/templates/oidc_provider/authorize.html +++ b/passbook/providers/oidc/templates/oidc_provider/authorize.html @@ -3,15 +3,12 @@ {% load utils %} {% load i18n %} -{% block title %} -{% title 'Authorize Application' %} +{% block card_title %} +{% trans 'Authorize Application' %} {% endblock %} {% block card %} - - + {% csrf_token %} {% if not error %} {% csrf_token %} @@ -20,14 +17,14 @@ {{ field }} {% endif %} {% endfor %} -
+

{% blocktrans with remote=client.name %} - You're about to sign into {{ remote }} + You're about to sign into {{ remote }}. {% endblocktrans %}

{% trans "Application requires following permissions" %}

-
    +
      {% for scope in scopes %}
    • {{ scope.name }}
    • {% endfor %} @@ -35,18 +32,26 @@ {{ hidden_inputs }} {{ form.errors }} {{ form.non_field_errors }} +
+

{% blocktrans with user=user %} You are logged in as {{ user }}. Not you? {% endblocktrans %} {% trans 'Logout' %}

- - + + {% else %} @@ -62,9 +67,8 @@ {% block scripts %} {% endblock %}