aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/templates/users/user_detail.html
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-17 21:01:33 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-17 21:01:33 +0100
commit7e6afba545729d00de177eceb4bac2619b35eb61 (patch)
treecd8cb405d54a3fd14a471a752f35e2b3db61a8b2 /ctrack/templates/users/user_detail.html
parent766b5670d0e420b09594116ce832aec975e036ff (diff)
first test of user profile view
Diffstat (limited to '')
-rw-r--r--ctrack/templates/users/user_detail.html75
1 files changed, 48 insertions, 27 deletions
diff --git a/ctrack/templates/users/user_detail.html b/ctrack/templates/users/user_detail.html
index f1913c3..5b9386f 100644
--- a/ctrack/templates/users/user_detail.html
+++ b/ctrack/templates/users/user_detail.html
@@ -4,35 +4,56 @@
{% block title %}User: {{ object.username }}{% endblock %}
{% block content %}
-<div class="container">
-
- <div class="row">
- <div class="col-sm-12">
-
- <h2>User: {{ object.username }}</h2>
- {% if object.name %}
- <p>{{ object.name }}</p>
- {% else %}
- <p>Email: {{ object.email }}</p>
- {% endif %}
+ <div class="container">
+
+ <div class="row">
+ <div class="col-sm-12">
+
+ <h1 class="display-4">{{ object.name }}</h1>
+ {% if object.name %}
+ <p>{{ object.name }}</p>
+ {% else %}
+ <p>Email: {{ object.email }}</p>
+ {% endif %}
+ </div>
</div>
- </div>
-{% if object == request.user %}
-<!-- Action buttons -->
-<div class="row">
-
- <div class="col-sm-12">
- <a class="btn btn-primary" href="{% url 'users:update' %}" role="button">My Info</a>
- <a class="btn btn-primary" href="{% url 'account_email' %}" role="button">E-Mail</a>
- <!-- Your Stuff: Custom user template urls -->
+ {#{% if object == request.user %}#}
+ {#<!-- Action buttons -->#}
+ {#<div class="row">#}
+ {##}
+ {# <div class="col-sm-12 mb-3">#}
+ {# <a class="btn btn-primary" href="{% url 'users:update' %}" role="button">My Info</a>#}
+ {# <a class="btn btn-primary" href="{% url 'account_email' %}" role="button">E-Mail</a>#}
+ {# <!-- Your Stuff: Custom user template urls -->#}
+ {# </div>#}
+ {#</div>#}
+ {#<!-- End Action buttons -->#}
+ {#{% endif %}#}
+ </div>
+ <hr>
+ <div class="container">
+ <div class="row justify-content-center">
+ <div class="col-md-12 m-2">
+ <h3 class="h3">Recent Events</h3>
+ <table class="table table-bordered">
+ <thead>
+ <tr>
+ <th>Event</th>
+ <th>Comments</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for event in single_date_events %}
+ <tr>
+ <td>{{ event.short_description }}</td>
+ <td>{{ event.comments }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+ </div>
</div>
-
-</div>
-<!-- End Action buttons -->
-{% endif %}
-
-
-</div>
{% endblock content %}