session_requirements.tpl 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <h2 class="page-header">{{ 'RequiredSessions'|get_lang }}</h2>
  2. {% for item in sequences %}
  3. <h4>{{ item.name }}</h4>
  4. <div id="parents">
  5. {% for session in item.requirements %}
  6. <div class="parent">
  7. <div class="big-icon">
  8. <img src="{{ 'item-sequence.png'|icon(48) }}" width="48" height="48">
  9. <p class="sequence-course">{{ session.name }}</p>
  10. {% if _u.logged %}
  11. <span class="label {{ session.status ? 'label-success' : 'label-danger' }}">
  12. {% if session.status %}
  13. <em class="fa fa-check"></em> {{ 'Complete'|get_lang }}
  14. {% else %}
  15. <em class="fa fa-exclamation-triangle"></em> {{ 'Incomplete'|get_lang }}
  16. {% endif %}
  17. </span>
  18. {% endif %}
  19. </div>
  20. </div>
  21. {% if loop.index != item.requirements|length %}
  22. <em class="fa fa-plus fa-3x sequence-plus-icon"></em>
  23. {% endif %}
  24. {% endfor %}
  25. </div>
  26. {% endfor %}
  27. {% if allow_subscription %}
  28. <hr>
  29. <p>{{ subscribe_button }}</p>
  30. {% endif %}