add admin page for viewing models
This commit is contained in:
parent
2ca4812480
commit
25bafd04e0
2 changed files with 57 additions and 2 deletions
|
|
@ -1,2 +1,51 @@
|
|||
{% extends 'base.html' %}
|
||||
{% block title %}Administration{% endblock title %}
|
||||
{% block title %}Administration{% endblock title %}
|
||||
{% block content %}
|
||||
<main>
|
||||
<div class="container my-4 px-5">
|
||||
<h2 class="text-center">Users</h2>
|
||||
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>First Name</th>
|
||||
<th>Last Name</th>
|
||||
<th>Email</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for user in users %}
|
||||
<tr>
|
||||
<td>{{user.id}}</td>
|
||||
<td>{{user.first_name}}</td>
|
||||
<td>{{user.last_name}}</td>
|
||||
<td>{{user.email}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="container my-4 px-5">
|
||||
<h2 class="text-center">Campaigns</h2>
|
||||
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Title</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for campaign in campaigns %}
|
||||
<tr>
|
||||
<td>{{campaign.id}}</td>
|
||||
<td>{{campaign.title}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</main>
|
||||
{% endblock content %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue