You are here

opigno-learning-path-training-content-step-summary-details-table.html.twig in Opigno Learning path 3.x

{% set value = status.class %}
{% set classes = { passed: 'icon_state_passed', pending: 'icon_state_pending', failed: 'icon_state_failed' } %}
{% set icons = { passed: 'check', pending: 'menu-dots', failed: 'cross' } %}
<tr>
  <td class="mandatory">
    <i class="fi {{ mandatory ? 'fi-rr-star' : ''}}"></i>
  </td>
  <td class="type">
    <span>{{ type }}</span>
  </td>
  <td class="steps">
    <h4>{{ steps }}</h4>
  </td>
  <td class="status">
    <span class="{{ ['icon_state',classes[value]]|join(' ') }}">
      <i class="{{ ['fi','fi-rr-' ~ icons[value]]|join(' ') }}"></i>
      <span>{{ value | title }}</span>
    </span>
  </td>
  <td class="progress">
    <div class="learning-path-progress d-flex flex-column progress-bar-mini">
      <div class="progress-content">
        <div class="progress-value">
          {{ progress }}
        </div>
      </div>

      <div class="progress-bar">
        <div class="progress-progress" style="width: {{ progress }};"></div>
      </div>
    </div>
  </td>
  <td>
    {% if substeps %}
      <div class="details-wrapper">
        <a href="#" class="details-btn">
          <i class="fi fi-rr-angle-small-down"></i>
        </a>
      </div>
    {% endif %}
  </td>
</tr>

File

templates/opigno-learning-path-training-content-step-summary-details-table.html.twig
View source
  1. {% set value = status.class %}
  2. {% set classes = { passed: 'icon_state_passed', pending: 'icon_state_pending', failed: 'icon_state_failed' } %}
  3. {% set icons = { passed: 'check', pending: 'menu-dots', failed: 'cross' } %}
  4. <tr>
  5. <td class="mandatory">
  6. <i class="fi {{ mandatory ? 'fi-rr-star' : ''}}"></i>
  7. </td>
  8. <td class="type">
  9. <span>{{ type }}</span>
  10. </td>
  11. <td class="steps">
  12. <h4>{{ steps }}</h4>
  13. </td>
  14. <td class="status">
  15. <span class="{{ ['icon_state',classes[value]]|join(' ') }}">
  16. <i class="{{ ['fi','fi-rr-' ~ icons[value]]|join(' ') }}"></i>
  17. <span>{{ value | title }}</span>
  18. </span>
  19. </td>
  20. <td class="progress">
  21. <div class="learning-path-progress d-flex flex-column progress-bar-mini">
  22. <div class="progress-content">
  23. <div class="progress-value">
  24. {{ progress }}
  25. </div>
  26. </div>
  27. <div class="progress-bar">
  28. <div class="progress-progress" style="width: {{ progress }};"></div>
  29. </div>
  30. </div>
  31. </td>
  32. <td>
  33. {% if substeps %}
  34. <div class="details-wrapper">
  35. <a href="#" class="details-btn">
  36. <i class="fi fi-rr-angle-small-down"></i>
  37. </a>
  38. </div>
  39. {% endif %}
  40. </td>
  41. </tr>