results.tpl 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {% extends app.template_style ~ "/layout/layout_1_col.tpl" %}
  2. {% block content %}
  3. {{ 'Results' | trans }}
  4. <hr />
  5. {% if pagination != '' %}
  6. <table class="data_table">
  7. <tr>
  8. <th>
  9. {{ 'User' | trans }}
  10. </th>
  11. <th>
  12. {{ 'Score' | trans }}
  13. </th>
  14. <th>
  15. {{ 'Actions' | trans }}
  16. </th>
  17. </tr>
  18. {% for user in pagination.currentPageResults %}
  19. <tr>
  20. <td>
  21. {{ user.completeName }}
  22. </td>
  23. <td>
  24. <div class="label label-success">
  25. {{ user.getCurriculumScore }}
  26. </div>
  27. </td>
  28. <td>
  29. <a class="btn" href="{{ url('curriculum_user.controller:getUserItemsAction',
  30. { 'userId': user.userId, 'course' : course.code, 'id_session' : course_session.id }) }}">
  31. {{ 'Details' | trans }}
  32. </a>
  33. </td>
  34. </tr>
  35. {% endfor %}
  36. </table>
  37. {{ pagerfanta(pagination, 'twitter_bootstrap', { 'proximity': 3 } ) }}
  38. {% endif %}
  39. {% endblock %}