mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 16:33:22 +00:00
修补部分字段显示 None 的问题
This commit is contained in:
parent
2993a6d794
commit
5598387159
@ -36,7 +36,7 @@
|
|||||||
<div class="form-group col-md-6"><label>手机</label>
|
<div class="form-group col-md-6"><label>手机</label>
|
||||||
<input name="phone" type="text" maxlength="11" id="phone"
|
<input name="phone" type="text" maxlength="11" id="phone"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value="{{ request.user.userprofile.phone_number }}">
|
value="{% if request.user.userprofile.phone_number %}{{ request.user.userprofile.phone_number }}{% endif %}">
|
||||||
</div>
|
</div>
|
||||||
<div class="help-block with-errors"></div>
|
<div class="help-block with-errors"></div>
|
||||||
</div>
|
</div>
|
||||||
@ -44,7 +44,7 @@
|
|||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
<label>学校</label>
|
<label>学校</label>
|
||||||
<input name="school" type="text" class="form-control" id="school"
|
<input name="school" type="text" class="form-control" id="school"
|
||||||
value="{{ request.user.userprofile.school }}">
|
value="{% if request.user.userprofile.school %}{{ request.user.userprofile.school }}{% endif %}">
|
||||||
|
|
||||||
<div class="help-block with-errors"></div>
|
<div class="help-block with-errors"></div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user