You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.2 KiB

{% extends 'base_admin.html' %}
{% block main_content %}
<div class="row">
<div class="panel panel-default">
<div class="panel-heading">
<h3>新增学生信息</h3>
</div>
<div class="panel-body" style="overflow-x: scroll; width:100%;">
<form action="#" method="post">
{% csrf_token %}
{% for field in form %} <!--field代表每个字段的input框-->
<div class="form-group">
<label class='control-label' for="{{ field.id_for_label }}">{{ field.label }}</label>
<div>
{{ field }}<span class="errors">{{ field.errors.0 }}</span>
</div>
</div>
{% endfor %}
<div class="form-group">
<input class="btn btn-primary" type="submit" value="添加">
<input type="reset" class="btn btn-default" value="重置">
</div>
</form>
</div>
</div>
</div>
{% endblock %}