You are here

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

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

Default theme implementation to display learnign path step.

  • elements['#step']
  • elements['#is_module']
  • elements

File

templates/opigno-learning-path-training-step.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display learnign path step.
  5. *
  6. * - elements['#step']
  7. * - elements['#is_module']
  8. * - elements
  9. */
  10. #}
  11. {% set step = elements['#step'] %}
  12. <div class="lp_step">
  13. <div class="lp_step_title_wrapper">
  14. {% if step.mandatory %}
  15. <span class="lp_step_required"></span>
  16. {% endif %}
  17. <h3 class="lp_step_title">{{ step.name }}</h3>
  18. <span class="view_trigger"
  19. data-open="{{ 'Show details'|t }}"
  20. data-close="{{ 'Hide details'|t }}">
  21. </span>
  22. </div>
  23. <div class="lp_step_content {{ elements['#is_module'] ? 'lp_step_content_module' : '' }}">
  24. {{ elements }}
  25. </div>
  26. </div>