You are here

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

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

Default theme implementation to display the training content step.

Available variables:

  • step: The step object with all the data.
  • group: The Group object which the steps is part of.

File

templates/opigno-learning-path-training-content-step.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display the training content step.
  5. *
  6. * Available variables:
  7. * - step: The step object with all the data.
  8. * - group: The Group object which the steps is part of.
  9. */
  10. #}
  11. <div class="lp_step">
  12. <div class="lp_step_title_wrapper">
  13. {% if step.mandatory %}
  14. <span class="lp_step_required"></span>
  15. {% endif %}
  16. <h3 class="lp_step_title">{{ step.name }}</h3>
  17. </div>
  18. {% if step.typology == 'Course' %}
  19. {% for course_step in step.course_steps %}
  20. <div class="lp_step_content">
  21. <div class="lp_step_summary">
  22. <div class="lp_step_summary_title_wrapper">
  23. <h3 class="lp_step_summary_title">{{ course_step.title }}</h3>
  24. {% if course_step.sub_title %}
  25. <h4 class="lp_step_summary_subtitle">{{ course_step.sub_title }}</h4>
  26. {% endif %}
  27. {% if course_step.description %}
  28. <div class="lp_step_summary_description">{{ course_step.description|raw }}</div>
  29. {% endif %}
  30. </div>
  31. {{ course_step.summary_details_table }}
  32. </div>
  33. </div>
  34. {% endfor %}
  35. {% else %}
  36. <div class="lp_step_content">
  37. <div class="lp_step_summary">
  38. <div class="lp_step_summary_title_wrapper">
  39. <h3 class="lp_step_summary_title">{{ step.title }}</h3>
  40. {% if step.sub_title %}
  41. <h4 class="lp_step_summary_subtitle">{{ step.sub_title }}</h4>
  42. {% endif %}
  43. {% if step.description %}
  44. <div class="lp_step_summary_description">{{ step.description|raw }}</div>
  45. {% endif %}
  46. </div>
  47. {{ step.summary_details_table }}
  48. </div>
  49. </div>
  50. {% endif %}
  51. </div>