#10 Started on creating front end pages for the admin
This commit is contained in:
33
templates/admin.html
Normal file
33
templates/admin.html
Normal 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 %}
|
Reference in New Issue
Block a user