-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created view_tasks.html and code to display task for the selected user
- Loading branch information
1 parent
2b80402
commit a046ba3
Showing
6 changed files
with
104 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<style> | ||
/* Full-page background image */ | ||
body { | ||
background-image: url("{{ url_for('static', filename='img/background.png') }}"); | ||
background-size: cover; | ||
background-position: center; | ||
background-attachment: fixed; | ||
} | ||
</style> | ||
|
||
<div class="table-container"> | ||
<h2 class="table-heading">User Tasks</h2> | ||
<table class="styled-table"> | ||
<thead> | ||
<tr> | ||
<th>Task ID</th> | ||
<th>Title</th> | ||
<th>Description</th> | ||
<th>Status</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for task in tasks %} | ||
<tr> | ||
<td>{{ task.id }}</td> | ||
<td>{{ task.title }}</td> | ||
<td>{{ task.description }}</td> | ||
<td>{{ task.status }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
{% endblock %} |