Nice formatting
This commit is contained in:
23
controllers/total/templates/total.html
Normal file
23
controllers/total/templates/total.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends "pyade/base.html" %}
|
||||
{% block content %}
|
||||
<table class="table table-bordered table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Course name</th>
|
||||
<th>Count in hours</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for key, value in total_by_course.items %}
|
||||
<tr>
|
||||
<td>{{ key }}</td>
|
||||
<td>{{ value }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<tr class="table-active">
|
||||
<td><strong>Total</strong></td>
|
||||
<td><strong>{{ total }}</strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user