修改user_reg中错误

main
RogerWork 1 year ago
parent a158dc4c21
commit b79f46c8d4
  1. 16
      templates/user/user_reg.html

@ -18,21 +18,21 @@
<div class="form-group">
<label for="{{ form_obj.username.id_for_label }}"
class="col-sm-2">{{ form_obj.username.label }}</label>
<div class="colsm-8">{{ form_obj.username }}
<div class="col-sm-8">{{ form_obj.username }}
<span class="help-block">{{ form_obj.errors.username.0 }}</span>
</div>
</div>
<div class="form-group">
<label for="{{ form_obj.password.id_for_label }}"
class="col-sm-2">{{ form_obj.password.label }}</label>
<div class="colsm-8">{{ form_obj.password }}
<div class="col-sm-8">{{ form_obj.password }}
<span class="help-block">{{ form_obj.errors.password.0 }}</span>
</div>
</div>
<div class="form-group">
<label for="{{ form_obj.re_password.id_for_label }}"
class="col-sm-2">{{ form_obj.re_password.label }}</label>
<div class="colsm-8">{{ form_obj.re_password }}
<div class="col-sm-8">{{ form_obj.re_password }}
<span class="help-block">{{ form_obj.errors.re_password.0 }}</span>
</div>
</div>
@ -44,21 +44,21 @@
{# </div>#}
<div class="form-group">
<label for="{{ form_obj.email.id_for_label }}" class="col-sm-2">{{ form_obj.email.label }}</label>
<div class="colsm-8">{{ form_obj.email }}
<div class="col-sm-8">{{ form_obj.email }}
<span class="help-block">{{ form_obj.errors.email.0 }}</span>
</div>
</div>
<div class="form-group">
<label for="{{ form_obj.mobile.id_for_label }}" class="col-sm-2">{{ form_obj.mobile.label }}</label>
<div class="colsm-8">{{ form_obj.mobile }}
<span class="help-block">{{ form_obj.mobile.email.0 }}</span>
<div class="col-sm-8">{{ form_obj.mobile }}
<span class="help-block">{{ form_obj.errors.mobile.0 }}</span>
</div>
</div>
<div class="form-group">
<label for="{{ form_obj.user_img.id_for_label }}"
class="col-sm-2">{{ form_obj.user_img.label }}</label>
<div class="colsm-8">{{ form_obj.user_img }}
<span class="help-block">{{ form_obj.user_img.email.0 }}</span>
<div class="col-sm-8">{{ form_obj.user_img }}
<span class="help-block">{{ form_obj.errors.user_img.0 }}</span>
</div>
<img src="/media/{{ user_img }}" alt="">
</div>

Loading…
Cancel
Save