This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(submission_page): template of submissions complete
- Loading branch information
1 parent
48d650d
commit 297cd3c
Showing
4 changed files
with
58 additions
and
25 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
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,57 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load crispy_forms_tags %} | ||
|
||
{% block title %}Submissions{% endblock title %} | ||
|
||
{% block content %} | ||
<h2>Submissions</h2> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<style> | ||
.center-table { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
table { | ||
border-collapse: collapse; | ||
width: 200%; | ||
margin: 20px 0; | ||
} | ||
th, td { | ||
border: 1px solid #dddddd; | ||
text-align: left; | ||
padding: 8px; | ||
} | ||
th { | ||
background-color: #f2f2f2; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="center-table"> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Submission ID</th> | ||
<th>Task</th> | ||
<th>Status</th> | ||
<th>Created at</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for submission in submissions.all %} | ||
<tr> | ||
<td>{{ submission.id }}</td> | ||
<td>{{ submission.task.title }}</td> | ||
<td>{{ submission.status }}</td> | ||
<td>{{ submission.created_at}}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<div> | ||
</body> | ||
{% endblock content %} |
This file was deleted.
Oops, something went wrong.