index.html.twig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. {% import '@ChamiloTheme/Macros/box.html.twig' as macro %}
  2. {% autoescape false %}
  3. <div class="search-student">
  4. {{ form }}
  5. </div>
  6. <div class="page-header">
  7. <h4>
  8. {{ 'Overview' | get_lang }}
  9. </h4>
  10. </div>
  11. <div class="view-global-followed">
  12. <div class="row">
  13. <div class="col-lg-3 col-sm-3">
  14. <div class="card">
  15. <div class="content">
  16. <div class="card-title"><a href="{{ _p.web_main }}mySpace/student.php">{{ 'FollowedStudents' | get_lang }}</a></div>
  17. <div class="row">
  18. <div class="col-xs-5">
  19. <div class="icon-big icon-student text-center">
  20. <i class="fa fa-graduation-cap" aria-hidden="true"></i>
  21. </div>
  22. </div>
  23. <div class="col-xs-7">
  24. <div class="numbers">
  25. <h2>{{ students }}</h2>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="col-lg-3 col-sm-3">
  33. <div class="card">
  34. <div class="content">
  35. <div class="card-title"><a href="{{ _p.web_main }}mySpace/users.php?status={{ studentboss }}">{{ 'FollowedStudentBosses' | get_lang }}</a></div>
  36. <div class="row">
  37. <div class="col-xs-5">
  38. <div class="icon-big icon-studentboss text-center">
  39. <i class="fa fa-address-book" aria-hidden="true"></i>
  40. </div>
  41. </div>
  42. <div class="col-xs-7">
  43. <div class="numbers">
  44. <h2>{{ studentbosses }}</h2>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="col-lg-3 col-sm-3">
  52. <div class="card">
  53. <div class="content">
  54. <div class="card-title"><a href="{{ _p.web_main }}mySpace/teachers.php">{{ 'FollowedTeachers' | get_lang }}</a></div>
  55. <div class="row">
  56. <div class="col-xs-5">
  57. <div class="icon-big icon-teachers text-center">
  58. <i class="fa fa-book" aria-hidden="true"></i>
  59. </div>
  60. </div>
  61. <div class="col-xs-7">
  62. <div class="numbers">
  63. <h2>{{ numberTeachers }}</h2>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="col-lg-3 col-sm-3">
  71. <div class="card">
  72. <div class="content">
  73. <div class="card-title"><a href="{{ _p.web_main }}mySpace/users.php?status={{ drh }}">{{ 'FollowedHumanResources' | get_lang }}</a></div>
  74. <div class="row">
  75. <div class="col-xs-5">
  76. <div class="icon-big icon-humanresources text-center">
  77. <i class="fa fa-user" aria-hidden="true"></i>
  78. </div>
  79. </div>
  80. <div class="col-xs-7">
  81. <div class="numbers">
  82. <h2>{{ humanresources }}</h2>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="view-global">
  92. <div class="panel panel-default panel-view">
  93. <div class="panel-body">
  94. <div class="row">
  95. <div class="col-lg-3 col-sm-3">
  96. <div class="easy-donut">
  97. <div id="easypiechart-blue" class="easypiechart" data-percent="{{ total_user }}">
  98. <span class="percent">{{ total_user }}</span>
  99. </div>
  100. <div class="easypiechart-link">
  101. <a class="btn btn-default" href="{{ _p.web_main }}mySpace/users.php">
  102. {{ 'FollowedUsers' | get_lang }}
  103. </a>
  104. </div>
  105. </div>
  106. {% if _u.status == 1 %}
  107. <a href="{{ _p.web_main }}admin/dashboard_add_users_to_user.php?user={{ _u.id }}" class="btn btn-default btn-sm">
  108. <i class="fa fa-plus" aria-hidden="true"></i>
  109. </a>
  110. {% endif %}
  111. </div>
  112. <div class="col-lg-3 col-sm-3">
  113. <div class="easy-donut">
  114. <div id="easypiechart-orange" class="easypiechart" data-percent="{{ stats.courses }}">
  115. <span class="percent">{{ stats.courses }}</span>
  116. </div>
  117. <div class="easypiechart-link">
  118. <a class="btn btn-default" href="{{ _p.web_main }}mySpace/course.php">
  119. {{ 'AssignedCourses' | get_lang }}
  120. </a>
  121. </div>
  122. </div>
  123. {% if _u.status == 1 %}
  124. <a href="{{ _p.web_main }}mySpace/course.php" class="btn btn-default btn-sm">
  125. <i class="fa fa-plus" aria-hidden="true"></i>
  126. </a>
  127. {% endif %}
  128. </div>
  129. <div class="col-lg-3 col-sm-3">
  130. <div class="easy-donut">
  131. <div id="easypiechart-teal" class="easypiechart" data-percent="{{ stats.assigned_courses }}">
  132. <span class="percent">{{ stats.assigned_courses }}</span>
  133. </div>
  134. <div class="easypiechart-link">
  135. <a class="btn btn-default" href="{{ _p.web_main }}mySpace/course.php?follow">{{ 'FollowedCourses' | get_lang }}</a>
  136. </div>
  137. </div>
  138. {% if _u.status == 1 %}
  139. <a href="{{ _p.web_main }}mySpace/course.php?follow" class="btn btn-default btn-sm">
  140. <i class="fa fa-plus" aria-hidden="true"></i>
  141. </a>
  142. {% endif %}
  143. </div>
  144. <div class="col-lg-3 col-sm-3">
  145. <div class="easy-donut">
  146. <div id="easypiechart-red" class="easypiechart" data-percent="{{ stats.session_list |length }}">
  147. <span class="percent">{{ stats.session_list |length }}</span>
  148. </div>
  149. <div class="easypiechart-link">
  150. <a class="btn btn-default" href="{{ _p.web_main }}mySpace/session.php">{{ 'FollowedSessions' | get_lang }}</a>
  151. </div>
  152. </div>
  153. {% if _u.status == 1 %}
  154. <a href="{{ _p.web_main }}admin/dashboard_add_sessions_to_user.php?user={{ _u.id }}" class="btn btn-default btn-sm">
  155. <i class="fa fa-plus" aria-hidden="true"></i>
  156. </a>
  157. {% endif %}
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <div class="page-header">
  164. <h4>
  165. {{ title }}
  166. </h4>
  167. </div>
  168. <div class="report-section">
  169. <div class="row">
  170. <div class="col-lg-3 col-sm-3">
  171. <div class="item-report">
  172. <div class="panel panel-default">
  173. <div class="panel-body">
  174. <div class="item-report-number">
  175. {{ report.AverageCoursePerStudent }}
  176. </div>
  177. </div>
  178. </div>
  179. <p>{{ 'AverageCoursePerStudent' | get_lang }}</p>
  180. </div>
  181. </div>
  182. <div class="col-lg-3 col-sm-3">
  183. <div class="item-report">
  184. <div class="panel panel-default">
  185. <div class="panel-body">
  186. <div class="item-report-number">
  187. {{ report.InactivesStudents }}
  188. </div>
  189. </div>
  190. </div>
  191. <p>{{ 'InactivesStudents' | get_lang }}</p>
  192. </div>
  193. </div>
  194. <div class="col-lg-3 col-sm-3">
  195. <div class="item-report">
  196. <div class="panel panel-default">
  197. <div class="panel-body">
  198. <div class="item-report-number">
  199. {{ report.AverageTimeSpentOnThePlatform }}
  200. </div>
  201. </div>
  202. </div>
  203. <p>{{ 'AverageTimeSpentOnThePlatform' | get_lang }}</p>
  204. </div>
  205. </div>
  206. <div class="col-lg-3 col-sm-3">
  207. <div class="item-report">
  208. <div class="panel panel-default">
  209. <div class="panel-body">
  210. <div class="item-report-number">
  211. {{ report.AverageProgressInLearnpath }}
  212. </div>
  213. </div>
  214. </div>
  215. <p>{{ 'AverageProgressInLearnpath' | get_lang }}</p>
  216. </div>
  217. </div>
  218. <div class="col-lg-3 col-sm-3">
  219. <div class="item-report">
  220. <div class="panel panel-default">
  221. <div class="panel-body">
  222. <div class="item-report-number">
  223. {{ report.AvgCourseScore }}
  224. </div>
  225. </div>
  226. </div>
  227. <p>{{ 'AvgCourseScore' | get_lang }}</p>
  228. </div>
  229. </div>
  230. <div class="col-lg-3 col-sm-3">
  231. <div class="item-report">
  232. <div class="panel panel-default">
  233. <div class="panel-body">
  234. <div class="item-report-number">
  235. {{ report.AveragePostsInForum }}
  236. </div>
  237. </div>
  238. </div>
  239. <p> {{ 'AveragePostsInForum' | get_lang }}</p>
  240. </div>
  241. </div>
  242. <div class="col-lg-3 col-sm-3">
  243. <div class="item-report">
  244. <div class="panel panel-default">
  245. <div class="panel-body">
  246. <div class="item-report-number">
  247. {{ report.AverageAssignments }}
  248. </div>
  249. </div>
  250. </div>
  251. <p> {{ 'AverageAssignments' | get_lang }}</p>
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. <script>
  257. $(function() {
  258. $('#easypiechart-teal').easyPieChart({
  259. scaleColor: false,
  260. barColor: '#1ebfae',
  261. lineWidth:8,
  262. trackColor: '#f2f2f2'
  263. });
  264. $('#easypiechart-orange').easyPieChart({
  265. scaleColor: false,
  266. barColor: '#ffb53e',
  267. lineWidth:8,
  268. trackColor: '#f2f2f2'
  269. });
  270. $('#easypiechart-red').easyPieChart({
  271. scaleColor: false,
  272. barColor: '#f9243f',
  273. lineWidth:8,
  274. trackColor: '#f2f2f2'
  275. });
  276. $('#easypiechart-blue').easyPieChart({
  277. scaleColor: false,
  278. barColor: '#30a5ff',
  279. lineWidth:8,
  280. trackColor: '#f2f2f2'
  281. });
  282. });
  283. </script>
  284. {% endautoescape %}