codepedia2/templates/users/change_pwd.html

56 lines
2.8 KiB
HTML

{% extends 'shared/base.html' %}
{% load staticfiles %}
{% block title %}
Register
{% endblock %}
{% block custom_css %}
<link rel="stylesheet" type="text/css" href="{% static 'css/register.css' %}">
{% endblock %}
{% block content %}
<div class="new_register_con">
<div class="new_login_txt fl new_register_left">
<h3>欢迎加入CodePedia代码社区</h3>
<p>在这里,您将通过阅读最新最好的源代码学习代码到规范,同时为代码注释大数据贡献自己的一份力量。</p>
</div>
<div class="new_login_box fr mr45 mt50 ">
<h2 class="new_login_h2">
修改密码
<div id="cl"></div>
</h2>
<div class="new_login_form">
<form method="post" action="{% url 'users:changepwd' %}" autocomplete="off">
<ul>
<li class="new_register_li form-group {% if register_form.errors.email %}errorput{% endif %}" >
<input type="text" class="new_register_input" id="id_email" name="email" value="{{ email }}" placeholder="请输入您的邮箱地址" readonly="readonly">
</li>
<li class="new_register_li form-group {% if register_form.errors.password %} errorput{% endif %}">
<input type="password" class="new_register_input" id="id_password" name="password" placeholder="请输入6-20位非中文字符密码" />
</li>
<li class="new_register_li form-group {% if register_form.errors.password %} errorput{% endif %}">
<input type="password" class="new_register_input" id="id_password" name="password2" placeholder="请再次输入密码" />
</li>
</ul>
<div class="error btns" id="jsEmailTips">
{% for key,error in register_form.errors.items %}
{{ key }}{{ error }}
{% endfor %}
{{ msg }}
</div>
<div class="auto-box marb8"></div>
<input class="btn btn-green new_login_submit" id="jsEmailRegBtn" type="submit" value="提交" />
{% csrf_token %}
</form>
</div>
</div>
</div>
{% endblock %}
{% block custom_js %}
<script src="{% static 'js/users-common.js' %}"></script>
{% endblock %}