summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/show_lesson_statistics.html18
1 files changed, 11 insertions, 7 deletions
diff --git a/yaksh/templates/yaksh/show_lesson_statistics.html b/yaksh/templates/yaksh/show_lesson_statistics.html
index e7c99d8..2bcdd2d 100644
--- a/yaksh/templates/yaksh/show_lesson_statistics.html
+++ b/yaksh/templates/yaksh/show_lesson_statistics.html
@@ -11,7 +11,7 @@
<br><br>
{% if data %}
<div class="row">
- <div class="col-md-3">
+ <div class="col-md-4">
<ul class="list-group">
{% for toc, count in data.items %}
<li class="list-group-item">
@@ -20,10 +20,14 @@
{{ toc.content_object.summary }}
</div>
<div class="col-md-4">
- {{toc.get_content_display}}
+ <span class="badge badge-pill badge-info">
+ {{toc.get_content_display}}
+ </span>
</div>
<div class="col-md-4">
- <a href="{% url 'yaksh:lesson_statistics' toc.course_id toc.lesson_id toc.id %}">Details</a>
+ <a href="{% url 'yaksh:lesson_statistics' toc.course_id toc.lesson_id toc.id %}" class="btn btn-outline-primary">
+ <i class="fa fa-info-circle"></i>&nbsp;Details
+ </a>
</div>
</table>
</li>
@@ -48,7 +52,6 @@
</table>
{% else %}
<div class="card">
- {% with per_que_data.0 as question %}
<div class="card-header">
{{question.summary}}
<div>
@@ -111,9 +114,9 @@
<br>
{% endfor %}
</div>
- {% endwith %}
</div>
<br>
+ {% include "yaksh/paginator.html" %}
<table class="table table-responsive">
<tr>
<th>Sr No.</th>
@@ -122,7 +125,7 @@
<th>Latest Answer</th>
<th>Status</th>
</tr>
- {% for data in per_que_data.1 %}
+ {% for data in objects.object_list %}
<tr>
<td>{{forloop.counter}}</td>
<td>{{data.student__first_name}} {{data.student__last_name}}</td>
@@ -143,11 +146,12 @@
</tr>
{% endfor %}
</table>
+ {% include "yaksh/paginator.html" %}
{% endif %}
</div>
</div>
{% else %}
- <div class="alert alert-info">
+ <div class="container alert alert-warning">
No lesson quizzes found
</div>
{% endif %}