opigno-learning-path-training-content-step.html.twig in Opigno Learning path 8
Same filename and directory in other branches
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.
1 theme call to opigno-learning-path-training-content-step.html.twig
- LearningPathController::trainingContent in src/
Controller/ LearningPathController.php - Returns training content.
File
templates/opigno-learning-path-training-content-step.html.twigView source
- {#
- /**
- * @file
- * 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.
- */
- #}
- <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>
- </div>
- {% if step.typology == 'Course' %}
- {% for course_step in step.course_steps %}
- <div class="lp_step_content">
- <div class="lp_step_summary">
- <div class="lp_step_summary_title_wrapper">
- <h3 class="lp_step_summary_title">{{ course_step.title }}</h3>
-
- {% if course_step.sub_title %}
- <h4 class="lp_step_summary_subtitle">{{ course_step.sub_title }}</h4>
- {% endif %}
-
- {% if course_step.description %}
- <div class="lp_step_summary_description">{{ course_step.description|raw }}</div>
- {% endif %}
- </div>
- {{ course_step.summary_details_table }}
- </div>
- </div>
- {% endfor %}
- {% else %}
- <div class="lp_step_content">
- <div class="lp_step_summary">
- <div class="lp_step_summary_title_wrapper">
- <h3 class="lp_step_summary_title">{{ step.title }}</h3>
-
- {% if step.sub_title %}
- <h4 class="lp_step_summary_subtitle">{{ step.sub_title }}</h4>
- {% endif %}
-
- {% if step.description %}
- <div class="lp_step_summary_description">{{ step.description|raw }}</div>
- {% endif %}
- </div>
- {{ step.summary_details_table }}
- </div>
- </div>
- {% endif %}
- </div>