{% extends "bee_django_course/user_base.html" %} {% load bee_django_course_filter %} {% load bootstrap3 %} {% block content %}
返回 {% next_user_course_section usercoursesection as next_ucs %} {% if next_ucs %} 下一节 {% endif %}

{{ usercoursesection.section.name }}

{% for e in usercoursesection.section.sectionvideo_set.all %}
{{ e.video.title }}
{{ e.video.info | default:'' | linebreaks }}
{% endfor %}

{{ usercoursesection.section.info |default:""| safe }}


{% for attach in usercoursesection.section.sectionattach_set.all %}
【教材】 {{ attach.file_name }}
{% endfor %}
{% if user and user.is_pause %} {% else %} {% if usercoursesection.section.has_textwork %}
文字作业:{{ usercoursesection.section.textwork_info }}
{% endif %} {% if usercoursesection.section.has_imagework %}
图片作业:需要上传{{ usercoursesection.section.image_count_req }}张图片
{% endif %} {% if usercoursesection.section.has_videowork %}
视频作业:需要录制{{ usercoursesection.section.video_length_req }}分钟的作业
{% if request.user == usercoursesection.user_course.user %} 去练习 {% endif %} {% endif %}
{% if request.user == usercoursesection.user_course.user %} {% if usercoursesection.section.has_imagework or usercoursesection.section.has_textwork %} 去做作业 {% endif %} {% if usercoursesection.section.has_questionwork %}
需要答题
{% if usercoursesection.question_passed %}
已通过答题
{% for question in questions %}
{{ forloop.counter }}. {{ question.question }}
{% get_user_question_answer question user as records %} 我的答案: {% for record in records %} {{ record.answer.option }} {% if not forloop.last %},{% endif %} {% endfor %} {% endfor %} {% for record in my_questions %} {% endfor %} {% else %}
去答题
{% endif %} {% endif %} {% endif %} {% endif %} {% if user and user.is_pause %} {% else %}
{% csrf_token %} {% bootstrap_form note_form %} {% bootstrap_button '提交' %}
{% endif %}
{% include "bee_django_course/user/section_notes.html" with notes=open_notes %}
{% include "bee_django_course/user/section_notes.html" with notes=my_notes %}
{% endblock content %}