针对添加学号字段对页面的一些修改,注册是学校为青岛大学则显示学号字段,在user settings页面显示学号,并提供修改
This commit is contained in:
@@ -19,10 +19,14 @@
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="real_name">学校</label>
|
||||
<label for="school">学校</label>
|
||||
<input type="text" class="form-control input-lg" id="school" name="school" placeholder="学校" data-error="请填写学校" required>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group" id="stu_id">
|
||||
<label for="student_id">学号</label>
|
||||
<input type="number" class="form-control input-lg" id="student_id" name="student_id" placeholder="非必填,如果你需要使用课程功能,请填写该字段">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">邮箱地址</label>
|
||||
<input type="email" class="form-control input-lg" id="email" name="email" placeholder="邮箱地址" data-remote="/api/email_check/" data-remote-error="该邮箱已被注册!" data-error="请填写正确的邮箱地址" required>
|
||||
|
||||
@@ -69,9 +69,16 @@
|
||||
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="form-group col-md-12"><label>学号</label>
|
||||
<input name="student_id" type="number" class="form-control" id="student_id"
|
||||
value="{{ request.user.userprofile.student_id }}">
|
||||
|
||||
<div class="help-block with-errors"></div>
|
||||
|
||||
</div>
|
||||
<div class="form-group col-md-12"><label>blog</label>
|
||||
<input name="blog" type="url" class="form-control" id="blog"
|
||||
value="{{ request.user.userprofile.blog }}">
|
||||
value="{% if request.user.userprofile.school %}{{ request.user.userprofile.blog }}{% endif %}">
|
||||
|
||||
<div class="help-block with-errors"></div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user