You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.7 KiB
48 lines
1.7 KiB
<h2 class="page-header">{{ 'RequiredCourses'|get_lang }}</h2>
|
|
|
|
{% for key, item in sequences %}
|
|
<h4>{{ item.name }}</h4>
|
|
<div id="parents">
|
|
{% for course in item.requirements %}
|
|
<div class="parent">
|
|
<div class="big-icon">
|
|
<img src="{{ 'item-sequence.png'|icon(48) }}" width="48" height="48">
|
|
<p class="sequence-course">{{ course.name }}</p>
|
|
|
|
{% if _u.logged %}
|
|
<span class="label {{ course.status ? 'label-success' : 'label-danger' }}">
|
|
{% if course.status %}
|
|
<em class="fa fa-check"></em> {{ 'Complete'|get_lang }}
|
|
{% else %}
|
|
<em class="fa fa-exclamation-triangle"></em> {{ 'Incomplete'|get_lang }}
|
|
{% endif %}
|
|
</span>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{% if loop.index != item.requirements|length %}
|
|
<em class="fa fa-plus fa-3x sequence-plus-icon"></em>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<script>
|
|
var url = '{{ _p.web_ajax }}sequence.ajax.php?type={{ sequence_type }}';
|
|
var sequenceId = '{{ key }}';
|
|
$(function() {
|
|
$.ajax({
|
|
url: url + '&a=graph&sequence_id=' + sequenceId,
|
|
success: function (data) {
|
|
$('#show_graph').append(data);
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<div id="show_graph">{{ graph }}</div>
|
|
{% endfor %}
|
|
|
|
{% if allow_subscription %}
|
|
<hr>
|
|
<p>{{ subscribe_button }}</p>
|
|
{% endif %}
|
|
|