You are here

opigno-learning-path-training-module.html.twig in Opigno Learning path 8

Same filename and directory in other branches
  1. 3.x templates/opigno-learning-path-training-module.html.twig

Default theme implementation to display learnign path module.

  • status
  • group_id
  • step
  • approved
  • completed
  • badges
  • time_spent

File

templates/opigno-learning-path-training-module.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display learnign path module.
  5. *
  6. * - status
  7. * - group_id
  8. * - step
  9. * - approved
  10. * - completed
  11. * - badges
  12. * - time_spent
  13. */
  14. #}
  15. {% set process = (100 * step.progress)|round() %}
  16. <div class="lp_step_summary_wrapper">
  17. <div class="lp_step_summary px-3">
  18. <div class="row">
  19. <div class="col-lg-4 col-md-2 d-sm-flex d-md-block d-lg-flex align-items-center mb-4 mb-md-0 col-step-item">
  20. <div class="lp_step_summary_title h4 mb-0 mb-md-3 mb-lg-0 text-uppercase lp-step-title">{{ status.title }}</div>
  21. <div class="lp_step_summary_icon ml-3 ml-md-0 ml-lg-3 lp-step-icon {{ status.class }}"></div>
  22. </div>
  23. <div class="col-lg-4 col-md-5 mb-4 mb-md-0 col-step-item">
  24. <div class="ml-0 ml-md-5 mr-3 pull-left lp-step-title">
  25. <div class="h4 color-blue mb-0">{{ process ~ '%' }}</div>
  26. <div>{{ 'Completion'|t }}</div>
  27. </div>
  28. <div class="lp_step_summary_completion_chart donut-wrapper ml-3 lp-step-icon">
  29. <canvas class="donut"
  30. data-value="{{ process }}"
  31. data-width="7"
  32. data-color="#5bb4d8"
  33. data-track-color="#fff"
  34. width="67"
  35. height="67"
  36. style="box-shadow: rgb(255, 255, 255) 0 0 0 3.5px inset;">
  37. </canvas>
  38. </div>
  39. </div>
  40. <div class="col-lg-4 col-md-5 col-step-item">
  41. <div class="ml-0 ml-md-5 lp_step_summary_approved mr-3 pull-left lp-step-title">
  42. <div class="h4 color-blue mb-0">{{ approved.value }}</div>
  43. <div>
  44. {{ 'Activities'|t }}<br>
  45. {{ 'done'|t }}
  46. </div>
  47. </div>
  48. <div class="lp_step_summary_approved_chart donut-wrapper ml-3 mr-auto lp-step-icon">
  49. <canvas class="donut"
  50. data-value="{{ approved_percent }}"
  51. data-width="7"
  52. data-color="#5bb4d8"
  53. data-track-color="#fff"
  54. width="67"
  55. height="67"
  56. style="box-shadow: rgb(255, 255, 255) 0 0 0 3.5px inset;">
  57. </canvas>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="w-100 mt-4 d-flex justify-content-center">
  62. <div>
  63. <div class="text-italic">{{ 'Time spent'|t }}</div>
  64. <div class="color-blue h5">{{ time_spent }}</div>
  65. </div>
  66. <div class="ml-3 ml-md-5">
  67. <div class="text-italic">{{ 'Completed on'|t }}</div>
  68. <div class="color-blue h5">{{ completed }}</div>
  69. </div>
  70. <div class="ml-3 ml-md-5">
  71. <div class="text-italic">{{ 'Badges earned'|t }}</div>
  72. <div class="color-blue h5">{{ badges }}</div>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="lp_step_summary_clickable"
  77. data-training="{{ group_id }}"
  78. data-module="{{ step.id }}">
  79. {{ 'more details'|t }}
  80. </div>
  81. <div id="{{ 'module_panel_' ~ group_id ~ '_' ~ step.id }}" class="lp_module_panel"></div>
  82. </div>