opigno-learning-path-training-step.html.twig in Opigno Learning path 8
Same filename and directory in other branches
Default theme implementation to display learnign path step.
- elements['#step']
- elements['#is_module']
- elements
1 theme call to opigno-learning-path-training-step.html.twig
- LearningPathAchievementController::build_lp_steps in src/
Controller/ LearningPathAchievementController.php - Returns LP steps.
File
templates/opigno-learning-path-training-step.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display learnign path step.
- *
- * - elements['#step']
- * - elements['#is_module']
- * - elements
- */
- #}
-
- {% set step = elements['#step'] %}
-
- <div class="lp_step">
- <div class="lp_step_title_wrapper">
- {% if step.mandatory %}
- <span class="lp_step_required"></span>
- {% endif %}
-
- <h3 class="lp_step_title">{{ step.name }}</h3>
- <span class="view_trigger"
- data-open="{{ 'Show details'|t }}"
- data-close="{{ 'Hide details'|t }}">
- </span>
- </div>
- <div class="lp_step_content {{ elements['#is_module'] ? 'lp_step_content_module' : '' }}">
- {{ elements }}
- </div>
- </div>