ADDED views for /accounts/users routes, ADDED started a template for user dashboard route, UPDATED account/views package imports for new users view
This commit is contained in:
19
accounts/templates/users/dashboard/base.html
Normal file
19
accounts/templates/users/dashboard/base.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% set title %}{{ user.username }} - Dashboard{% endset %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Account Overview<h1>
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
<h3>User Details</h3>
|
||||
{% include 'users/dashboard/user_details_table.html' %}
|
||||
|
||||
<hr>
|
||||
|
||||
<h3>Booking History</h3>
|
||||
{% include 'users/dashboard/user_history_table.html' %}
|
||||
{% endblock %}
|
||||
|
||||
15
accounts/templates/users/dashboard/user_details_table.html
Normal file
15
accounts/templates/users/dashboard/user_details_table.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td>Username:</td>
|
||||
<td>{{ user.username }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Email Address:</td>
|
||||
<td>{{ user.email }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Dogs:</td>
|
||||
<td>{{ user_dogs }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<table>
|
||||
{{ user_book_history }}
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user