You are here

opigno-learning-path-training-ilt.html.twig in Opigno Learning path 3.x

Default theme implementation to display learnign path module.

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

File

templates/opigno-learning-path-training-ilt.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 = (step['best score'])|round() %}
  16. <div class="ilt">
  17. <div class="ilt__container">
  18. <h3 class="ilt__title">
  19. {% if step.mandatory %}
  20. <i class="fi fi-rr-star"></i>
  21. {% endif %}
  22. {{ 'ILT - @label'|t({'@label': step.name}) }}
  23. </h3>
  24. <div class="ilt__content">
  25. <div class="ilt__attended">
  26. <div class="label">{{ 'Attended'|t }}</div>
  27. <div class="value">{{ attended }}</div>
  28. </div>
  29. <div class="ilt__status">
  30. <div class="ilt__status-content">
  31. <div class="label">{{ 'Status'|t }}</div>
  32. <div class="status">
  33. {% include 'lp-status.html.twig' with {state_class: status.class} %}
  34. {{ status.class | title }}
  35. </div>
  36. </div>
  37. </div>
  38. <div class="ilt__progress">
  39. <div class="inner">
  40. <div class="label">{{ 'Score'|t }}</div>
  41. <span class="value">{{ process }}%</span></div>
  42. </div>
  43. <div class="ilt__completed-on">
  44. <div class="inner">
  45. <div class="label">{{ 'Date'|t }}</div>
  46. <time class="value">{{ date }}</time>
  47. </div>
  48. </div>
  49. <div class="ilt__address">
  50. <div class="inner">
  51. <div class="label">{{ 'Address'|t }}</div>
  52. <span class="value">{{ place }}</span></div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>