#10 Started on creating front end pages for the admin

This commit is contained in:
2024-02-13 10:04:59 +00:00
parent 7f77dcdd02
commit b6721cc777
4 changed files with 98 additions and 4 deletions

33
templates/admin.html Normal file
View File

@ -0,0 +1,33 @@
<link rel="stylesheet" href="{{ url_for('static', filename='css/admin.css') }}">
{% if users != None %}
<p>Showing {{users|count}} users</p>
<div class="user-container">
<table>
<thead>
<tr>
<th>Username</th>
<th>E-Mail</th>
<th>Phone Number</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{user.username}}</td>
<td>{{user.email}}</td>
<td>{{user.phone}}</td>
</tr>
<!-- <a href="/products/{{user.id}}" class="product product-link">
<div class="product-title">{{user.username}}</div>
<div class="product-content-container">
</div>
<input type="submit" class="product-add-to-cart" value="Add to Cart" />
</a> -->
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<p>Sorry... We have nothing to show here!</p>
{% endif %}