Adding pagination to the table see BT#6397

skala
Julio Montoya 12 years ago
parent 0a80efae3f
commit 171350b7f1
  1. 37
      main/template/minedu/tool/curriculum/category/results.tpl

@ -3,17 +3,36 @@
{{ 'Results' | trans }}
<hr />
{% if pagination != '' %}
<ul>
<table class="data_table">
<tr>
<th>
{{ 'User' | trans }}
</th>
<th>
{{ 'Score' | trans }}
</th>
<th>
{{ 'Actions' | trans }}
</th>
</tr>
{% for user in pagination.currentPageResults %}
<li>
{{ user.firstname }} - {{ user.lastname }} {{ user.score }}
<a class="btn" href="{{ url('curriculum_user.controller:getUserItemsAction',
{ 'userId': user.userId, 'course' : course.code, 'id_session' : course_session.id }) }}">
{{ 'Details' | trans }}
</a>
</li>
<tr>
<td>
{{ user.firstname }} {{ user.lastname }}
</td>
<td>
<div class="label label-success"> {{ user.score }}</div>
</td>
<td>
<a class="btn" href="{{ url('curriculum_user.controller:getUserItemsAction',
{ 'userId': user.userId, 'course' : course.code, 'id_session' : course_session.id }) }}">
{{ 'Details' | trans }}
</a>
</td>
</tr>
{% endfor %}
</ul>
</table>
{{ pagerfanta(pagination, 'twitter_bootstrap', { 'proximity': 3 } ) }}

Loading…
Cancel
Save