From e83a49075bf57c09579fc14b9e10637e17cd35f5 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 23 Oct 2020 14:18:42 +0100 Subject: nice tweaks to the profile page --- ctrack/templates/users/user_detail.html | 70 ++++++++++++++++++++++++++++----- 1 file changed, 60 insertions(+), 10 deletions(-) (limited to 'ctrack/templates') diff --git a/ctrack/templates/users/user_detail.html b/ctrack/templates/users/user_detail.html index 5314f20..e991a25 100644 --- a/ctrack/templates/users/user_detail.html +++ b/ctrack/templates/users/user_detail.html @@ -4,20 +4,61 @@ {% block title %}User: {{ object.username }}{% endblock %} {% block content %} + + + +
-

{{ object.name }}

{% if object.name %} -

{{ object.name }}

+

{{ object.name }}

{% else %} -

Email: {{ object.email }}

+

{{ object.username }}

{% endif %}
+
+
+

Lead inspector

+
    + {% for oes in lead_oes %} +
  • + {{ oes.name }}
    + + + + + {% if oes.get_people|length > 1 %} + {{ oes.get_people.0 }} + {{ oes.get_people.0.mobile }} [...] + {% else %} + {% for person in oes.get_people %} + {{ person }} ({{ person.mobile }}) + {% endfor %} + {% endif %} + {{ oes.submode }} +
  • + {% endfor %} +
+
+
+ {#{% if object == request.user %}#} {##} {#
#} @@ -36,20 +77,29 @@

Recent Events

- +
- - - + + + + + {% for event in all_events %} - - - + + + + + {% endfor %} -- cgit v1.2.3
TypeEventCommentsTypeDateEventOrganisationComments
{{ event.type_descriptor }}{{ event.short_description }}{{ event.comments }} + {{ event.type_descriptor }} + {% if event.private %} + PRIVATE + {% endif %} + {{ event.date|date:"d M Y" }}{{ event.short_description }}{{ event.organisation }}{{ event.comments }}