{% extends "bee_django_course/user_base.html" %} {% load bootstrap3 %} {% block content %}

{{ ucs.section.name }}

{% if ucs.section.has_imagework %}
图片作业:需要上传{{ ucs.section.image_count_req }}张图片
{% if assignment_images.exists %}
已上传图片: {% for e in assignment_images %} {{ forloop.counter }} {% endfor %}
{% endif %} {% if ucs.user_course.user == request.user %} {% if not ucs.is_passed %}
{% csrf_token %} {% bootstrap_form image_form %} {% bootstrap_button '上传' %}
{% endif %} {% endif %}
{% endif %} {% if ucs.section.has_videowork %}
需要录制{{ ucs.section.video_length_req }}分钟的作业,已录制 {{ ucs.work_time }} 分钟
{% if ucs.user_course.user == request.user %} 去录制 {% endif %}
{% endif %} {% if ucs.section.has_textwork %}
文字作业:{{ ucs.section.textwork_info }}
{% if ucs.is_learning or ucs.is_rejected %} {% if ucs.user_course.user == request.user %}
{% csrf_token %} {% bootstrap_form text_form %}
{% endif %} {% else %}
状态:已提交
{% for e in assignments %}
{{ e.content | safe }}
{% endfor %} {% endif %}
{% endif %} {# {% if ucs.is_learning or ucs.is_rejected %}#} {#
#} {# #} {# 将作业提交给助教/老师评分,提交后不可修改#} {#
#} {# {% endif %}#} {% if ucs.is_passed %} 已通过 {% endif %} {% endblock content %} {% block scripts %} {% if ucs.section.has_textwork and not ucs.is_submit %} {% load static %} {% endif %} {% endblock scripts %}