{% extends "bee_django_course/base.html" %} {% load bootstrap3 %} {% block content %} {% if request.user.is_admin %}

添加新课程:

{% csrf_token %} {% bootstrap_form form %} {% bootstrap_button '提交' %}
{% endif %}

用户{{ user.first_name | default:user.username }}当前课程

{% for c in user.usercourse_set.all %} {% endfor %}
课程 状态 课程表
{{ c.course.name }} {% if c.passed_at %} 已通过 {% else %} 学习中 {% endif %} 课程表 {% if request.user.is_admin %} {% if not c.passed_at %} 删除 {% endif %} {% endif %}
{% endblock content %}