{% extends 'open-course-manage/layout.html.twig' %}
{% block title %}{{'录播管理'|trans}} - {{ parent() }}{% endblock %}
{% set side_nav = 'replay' %}
{% do script(['app/js/open-course-manage/replay-lesson/index.js'])%}

{% block main %}

<div class="panel panel-default panel-col lesson-manage-panel">
	<div class="panel-heading">
		{{'录播管理'|trans}}
	</div>

	{% if items is empty %}

	 <div class="empty">{{'暂无课时内容！'|trans}}</div>

	 {% endif %}

	<div class="panel-body">
		<ul class="lesson-list sortable-list" id="course-item-list" {% if course.type == 'normal' or course.type == 'live' %}data-sort-url="{{ path('course_manage_lesson_sort', {id:course.id}) }}"{% endif %}>

			{% for id, item in items %}
			  {% if 'chapter' in id %}
			    {% include 'live-course-replay-manage/chapter-item.html.twig' with {chapter: item} %}
			  {% elseif 'lesson' in id %}
			    {% include 'live-course-replay-manage/list-item.html.twig' with {lesson: item} %}
			  {% endif %}
			{% endfor %}

		</ul>
		<div>提示：上传录像文件后 <b>无法再生成</b> 在线录像</div>
	</div>
</div>

{% endblock %}
