tracking_user_overview.html.twig 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {% autoescape false %}
  2. <div class="summary-height">
  3. <div class="summary">
  4. <div class="summary-body">
  5. <div id="summary-user-{{ item.id }}" class="summary-item">
  6. <div class="icon">
  7. <img src="{{ item.avatar }}" class="img-circle">
  8. </div>
  9. <div class="user">
  10. <a title="{{ item.complete_name }}" href="{{ _p.web }}main/social/profile.php?u={{ item.id }}" class="name">
  11. {{ item.complete_name }}
  12. </a>
  13. <div class="username">{{ item.username }}</div>
  14. </div>
  15. <div class="summary-course">
  16. {% if item.course %}
  17. {% for course in item.course %}
  18. <div id="course-{{ course.real_id }}" class="course-item">
  19. <div class="course-info">
  20. <h5><a title="{{ 'Course'|get_lang }} - {{ course.title }}" href="{{ _p.web ~ 'main/mySpace/myStudents.php?details=true' ~ _p.web_cid_query ~ '&course=' ~ course.code ~ '&origin=tracking_course&id_session=0&student=' ~ item.id }}" target="_blank">{{ course.title }}</a></h5>
  21. <span class="code">{{ course.code }}</span>
  22. </div>
  23. <div class="box time-spent" data-toggle="tooltip" data-placement="top" title="{{ 'CourseTimeInfo'|get_lang }}">
  24. <i class="fa fa-clock-o" aria-hidden="true"></i>
  25. {{ course.time_spent }}
  26. </div>
  27. <div class="box" data-toggle="tooltip" data-placement="top" title="{{ 'AvgStudentsProgress'|get_lang }}">
  28. <span class="kt-badge student-progress">
  29. {{ course.student_progress }} %
  30. </span>
  31. </div>
  32. <div class="box" data-toggle="tooltip" data-placement="top" title="{{ 'AvgCourseScore'|get_lang }}">
  33. <span class="kt-badge student-score">
  34. {{ course.student_score }}
  35. </span>
  36. </div>
  37. <div class="box" data-toggle="tooltip" data-placement="top" title="{{ 'TotalNumberOfMessages'|get_lang }}">
  38. <span class="kt-badge student-message">
  39. {{ course.student_message }}
  40. </span>
  41. </div>
  42. <div class="box" data-toggle="tooltip" data-placement="top" title="{{ 'TotalNumberOfAssignments'|get_lang }}">
  43. <span class="kt-badge student-assignments">
  44. {{ course.student_assignments }}
  45. </span>
  46. </div>
  47. <div class="box">
  48. <span class="kt-badge student-exercises" data-toggle="tooltip" data-placement="top" title="{{ 'TotalExercisesScoreObtained'|get_lang }}">
  49. {{ course.student_assignments }}
  50. </span>
  51. </div>
  52. <div class="box">
  53. <span class="kt-badge questions-answered" data-toggle="tooltip" data-placement="top" title="{{ 'TotalExercisesAnswered'|get_lang }}">
  54. {{ course.questions_answered }}
  55. </span>
  56. </div>
  57. <div class="box box-date" data-toggle="tooltip" data-placement="top" title="{{ 'LatestLogin'|get_lang }}">
  58. {% if course.last_connection %}
  59. <span class="kt-badge last-connection">
  60. {{ course.last_connection }}
  61. </span>
  62. {% endif %}
  63. </div>
  64. </div>
  65. {% endfor %}
  66. {% else %}
  67. <div class="alert alert-warning" role="alert">
  68. {{ 'HaveNoCourse'|get_lang }}
  69. </div>
  70. {% endif %}
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. {% endautoescape %}