{% if part.type == 1 %}
已有视频:
排序 |
文件名 |
操作 |
{% for video in part.video_set.all %}
{{ video.number }} |
{{ video.file_name }} |
详情
{% if perms.bee_django_course_simple.change_section %}
修改
删除
{% endif %}
|
{% endfor %}
{% elif part.type == 2 %}
{% for question in part.question_set.all %}
{{ question.title }}
{% if perms.bee_django_course_simple.change_section %}
添加选项
修改
删除
{% 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 %}