You are here

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

Same filename and directory in other branches
  1. 8 templates/opigno-learning-path-training-summary.html.twig

Default theme implementation to display the summary of traning.

Available variables:

  • progress: The percent of the process.
  • score: The percent of the score.
  • group_id: group/training id.
  • has_certificate: The certificate mark.
  • is_passed: The passed mark.
  • state_class: The extended class for status
  • registration_date: Registration date.
  • validation_message: Validation masssage with date.
  • time_spend: Time spends in training.

File

templates/opigno-learning-path-training-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display the summary of traning.
  5. *
  6. * Available variables:
  7. * - progress: The percent of the process.
  8. * - score: The percent of the score.
  9. * - group_id: group/training id.
  10. * - has_certificate: The certificate mark.
  11. * - is_passed: The passed mark.
  12. * - state_class: The extended class for status
  13. * - registration_date: Registration date.
  14. * - validation_message: Validation masssage with date.
  15. * - time_spend: Time spends in training.
  16. */
  17. #}
  18. <div class="training__content">
  19. <div class="training__status">
  20. <div class="label">{{ 'Status' | t }}</div>
  21. <div class="state">{{ state_class | title }}</div>
  22. <div class="status">
  23. {% include 'lp-status.html.twig' with {state_class: state_class} %}
  24. </div>
  25. </div>
  26. <div class="training__progress">
  27. <div class="label">Progress</div>
  28. {% include 'lp-circle-progress.html.twig' with {radius: 40, progress: progress} %}
  29. </div>
  30. <div class="training__score">
  31. <div class="label">Score</div>
  32. {% include 'lp-circle-progress.html.twig' with {radius: 40, progress: score} %}
  33. </div>
  34. <div class="training__dates">
  35. {% if validation_date and valid_until %}
  36. <div class="training__dates--valid-date">
  37. {% if validation_date %}
  38. <div class="label">{{ 'Validation date' | t }}</div>
  39. <time class="value">{{ validation_date }}</time>
  40. {% endif %}
  41. {% if valid_until %}
  42. <div class="label">{{ 'Valid until' | t }}</div>
  43. <time class="value">{{ valid_until }}</time>
  44. {% endif %}
  45. </div>
  46. {% endif %}
  47. <div class="training__dates--register-date">
  48. <div class="label">{{ 'Register date' | t }}</div>
  49. <time class="value">{{ registration_date }}</time>
  50. </div>
  51. <div class="training__dates--time-spent">
  52. <div class="label">{{ 'Time spent' | t }}</div>
  53. <time class="value">{{ time_spend }}</time>
  54. </div>
  55. </div>
  56. {% if certificate_url %}
  57. <div class="training__certificate {{ certificate_class }}">
  58. {% set certificate_image = opigno_catalog_get_default_image('certificate_image', label) %}
  59. <a href="{{ certificate_url }}">
  60. {{ certificate_image }}
  61. {{ 'Download certificate' | t | striptags | replace({' ':'<br/>'}) | raw }}
  62. </a>
  63. </div>
  64. {% endif %}
  65. </div>