{% if part.type == 1 %}
已有视频:
{% for video in part.video_set.all %} {% endfor %}
排序 文件名 操作
{{ video.number }} {{ video.file_name }} 详情 {% if perms.bee_django_course_simple.change_section %} 修改 删除 {% endif %}
{% elif part.type == 2 %} {% for question in part.question_set.all %}
{{ question.title }} {% if perms.bee_django_course_simple.change_section %} 添加选项 修改 删除 {% endif %}
{% if part.has_answer %}
( 答对后奖励{{ question.score|default:0 }}{{ context_coin_name }} )
{% endif %}
{% for option in question.option_set.all %}
{{ option.title }} {% if option.is_correct %}(正确答案){% endif %} {% if perms.bee_django_course_simple.change_section %} 修改 删除 {% endif %}
{% endfor %}
{% endfor %} {% endif %}