From 979dcb58dcc855e10bce361def0f4a2c0e8e76a8 Mon Sep 17 00:00:00 2001
From: James <james39.smith@live.uwe.ac.uk>
Date: Tue, 26 Mar 2024 12:25:02 +0000
Subject: [PATCH]  added default text if no email provided

---
 myproject/myapp/templates/user_page.html | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/myproject/myapp/templates/user_page.html b/myproject/myapp/templates/user_page.html
index e1bba6e..dffc797 100644
--- a/myproject/myapp/templates/user_page.html
+++ b/myproject/myapp/templates/user_page.html
@@ -147,8 +147,12 @@
             class="shadow-sm bg-gray-50 border border-gray-300 text-grey-300 sm:text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
             placeholder="example@gmail.com"
             required
-            >{{ user.email }}</span
-          >
+            {% if user.email %}
+              <span>{{ user.email }}</span>
+            {% else %}
+              <span>No email address on record.</span>
+            {% endif %}
+          
         </div>
         <div class="col-span-6 sm:col-span-3">
           <label
-- 
GitLab