From d406a911bbf196f0659f4c1ebf493227fac4014d Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Thu, 19 Aug 2021 18:27:52 +0100 Subject: [PATCH] Initial refactoring of profile detail --- users/templates/profile_detail.html | 66 +++++++++++++++-------------- 1 file changed, 35 insertions(+), 31 deletions(-) diff --git a/users/templates/profile_detail.html b/users/templates/profile_detail.html index b45ecabf..4ebca3aa 100644 --- a/users/templates/profile_detail.html +++ b/users/templates/profile_detail.html @@ -56,43 +56,37 @@ {% endif %}
-
+
-
-
- -
-
-
-
-
First Name
-
{{object.first_name}}
+ +
+
+
First Name
+
{{object.first_name}}
-
Last Name
-
{{object.last_name}}
+
Last Name
+
{{object.last_name}}
-
Email
-
{{object.email}}
+
Email
+
{{object.email}}
-
Last Login
-
{{object.last_login|date:"d/m/Y H:i"}}
+
Last Login
+
{{object.last_login|date:"d/m/Y H:i"}}
-
Date Joined
-
{{object.date_joined|date:"d/m/Y H:i"}}
+
Date Joined
+
{{object.date_joined|date:"d/m/Y H:i"}}
-
Initials
-
{{object.initials}}
+
Initials
+
{{object.initials}}
-
Phone
-
{{object.phone|linkornone:'tel'}}
-
-
-
+
Phone
+
{{object.phone|linkornone:'tel'}}
+
-
+
{% if not request.is_ajax and object.pk == user.pk %} -
+
Personal iCal Details
@@ -152,9 +146,19 @@
{% endif %} +
+
+
Training Record
+ +
+
+
+
+
Events
+ {% with object.latest_events as events %} + {% include 'partials/event_table.html' %} + {% endwith %}
-

Events

- {% with object.latest_events as events %} - {% include 'partials/event_table.html' %} - {% endwith %} {% endblock %}