From 661fa195d46700b379451ada0af4a9402284d542 Mon Sep 17 00:00:00 2001 From: igorkorenfeld Date: Mon, 8 May 2023 11:55:03 -0400 Subject: [PATCH] Add 401 page template --- src/registrar/templates/401.html | 51 +++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/src/registrar/templates/401.html b/src/registrar/templates/401.html index 64bcec563..e5f7781c5 100644 --- a/src/registrar/templates/401.html +++ b/src/registrar/templates/401.html @@ -1,28 +1,45 @@ {% extends "base.html" %} -{% load i18n %} +{% load i18n static %} {% block title %}{% translate "Unauthorized" %}{% endblock %} {% block content %}
-

{% translate "Unauthorized" %}

+
+
+

+ {% translate "You are not authorized to view this page." %} +

+

+ {% translate "Status 401" %} +

- {% if friendly_message %} -

{{ friendly_message }}

- {% else %} -

{% translate "Authorization failed." %}

- {% endif %} -

- {% translate "Would you like to try logging in again?" %} -

+ {% if friendly_message %} +

{{ friendly_message }}

+ {% else %} +

{% translate "Authorization failed." %}

+ {% endif %} +

+ You must be an authorized user and need to be signed in to view this page. + Would you like to try loggining in again? +

+

+ If you would like help with this error contact us +

- {% if log_identifier %} -

Here's a unique identifier for this error.

-
{{ log_identifier }}
-

{% translate "Please include it if you contact us." %}

- {% endif %} - - TODO: Content team to create a "how to contact us" footer for the error pages + {% if log_identifier %} +

Here's a unique identifier for this error.

+
{{ log_identifier }}
+

{% translate "Please include it if you contact us." %}

+ {% endif %} +
+
+ +
+
{% endblock %}