61 lines
1.5 KiB
HTML
61 lines
1.5 KiB
HTML
{%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%} |