lol
This commit is contained in:
1 parent
7c09b319aa
commit
edb0f45871
105 files changed
-19786
No files matched your search
@@ -1,61 +0,0 @@
|
||||
{%extends 'admin/base_site.html'%}
|
||||
{%block content%}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Marksheet PDF</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
table, th, td {
|
||||
border: 1px solid black;
|
||||
}
|
||||
th, td {
|
||||
padding: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Marksheet for {{ student.user.get_full_name }}</h1>
|
||||
<p><strong>Roll Number:</strong> {{ student.roll_number }}</p>
|
||||
<p><strong>Class:</strong> {{ student.class_name }}</p>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject</th>
|
||||
<th>Obtained Marks</th>
|
||||
<th>Total Marks</th>
|
||||
<th>Grade</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for mark in marks %}
|
||||
<tr>
|
||||
<td>{{ mark.subject.name }}</td>
|
||||
<td>{{ mark.obtained_marks }}</td>
|
||||
<td>{{ mark.total_marks }}</td>
|
||||
<td>{{ mark.grade }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p><strong>Total Marks Obtained:</strong> {{ total_marks_obtained }}</p>
|
||||
<p><strong>Total Marks:</strong> {{ total_marks }}</p>
|
||||
<p><strong>Overall Percentage:</strong> {{ percentage|floatformat:2 }}%</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
{%endblock%}
|
||||
Reference in new issue
Block a user