Commit d730aa9e authored by Ilham Maulana's avatar Ilham Maulana 💻

fix: login history template

parent 8d0d1968
......@@ -5,7 +5,7 @@
<table class="table table-striped">
<thead>
<tr class="table-primary">
<th scope="col">Name</th>
<th scope="col">Username</th>
<th scope="col">Login At</th>
</tr>
</thead>
......@@ -13,7 +13,7 @@
{% for histori in login_histories %}
<tr>
<td>{{ histori.librarian.user.username }}</td>
<td>{{ histori.librarian.date }}</td>
<td>{{ histori.date }}</td>
</tr>
{% endfor %}
</tbody>
......
{% extends "layout.html" %} {% block dashboard %}
<div style="max-width: 80vw" class="w-100 p-4">
<div class="d-flex gap-2 mb-4">
{% include "order_form.html" %}
{% include "search_form.html" %}
</div>
<table class="table table-hover">
<thead>
<tr class="table-primary">
<th scope="col">Username</th>
<th scope="col">Email</th>
<th scope="col">Date</th>
</tr>
</thead>
<tbody>
{% if object_list %} {% for login_history in object_list %}
<tr>
<td>{{ login_history.librarian.user.username }}</td>
<td>{{ login_history.librarian.user.email }}</td>
<td>{{ login_history.date }}</td>
</tr>
{% endfor %} {% else %}
<tr class="w-100">
<td>
<p>Data Empty</p>
</td>
<td></td>
</tr>
{% endif %}
</tbody>
</table>
{% include "pagination.html" %}
</div>
{% endblock dashboard %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment