Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
library-app-django
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ilham Maulana
library-app-django
Commits
d730aa9e
Commit
d730aa9e
authored
Jul 19, 2024
by
Ilham Maulana
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: login history template
parent
8d0d1968
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
login_history.html
dashboard/templates/dashboard/login_history.html
+2
-2
librarian_login_history.html
users/templates/librarians/librarian_login_history.html
+35
-0
No files found.
dashboard/templates/dashboard/login_history.html
View file @
d730aa9e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<table
class=
"table table-striped"
>
<table
class=
"table table-striped"
>
<thead>
<thead>
<tr
class=
"table-primary"
>
<tr
class=
"table-primary"
>
<th
scope=
"col"
>
N
ame
</th>
<th
scope=
"col"
>
Usern
ame
</th>
<th
scope=
"col"
>
Login At
</th>
<th
scope=
"col"
>
Login At
</th>
</tr>
</tr>
</thead>
</thead>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
{% for histori in login_histories %}
{% for histori in login_histories %}
<tr>
<tr>
<td>
{{ histori.librarian.user.username }}
</td>
<td>
{{ histori.librarian.user.username }}
</td>
<td>
{{ histori.
librarian.
date }}
</td>
<td>
{{ histori.date }}
</td>
</tr>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</tbody>
...
...
users/templates/librarians/librarian_login_history.html
0 → 100644
View file @
d730aa9e
{% 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 %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment