OnlineJudge/template/oj/account/change_password.html

37 lines
2.1 KiB
HTML
Raw Normal View History

2015-08-04 06:55:38 +00:00
{% extends "oj_base.html" %}
{% block body %}
2015-08-15 05:54:30 +00:00
<div class="container main">
<div class="col-md-6 col-md-offset-3">
<h2 class="text-center">修改密码</h2>
2015-08-15 05:54:30 +00:00
<form id="change_password-form">
<div class="form-group">
<label for="username">用户名</label>
2015-08-16 04:14:56 +00:00
<input type="text" class="form-control input-lg" id="username" name="username" placeholder="用户名" data-error="请填写用户名" maxlength="30" autofocus required>
<div class="help-block with-errors"></div>
2015-08-15 05:54:30 +00:00
</div>
<div class="form-group">
<label for="password">旧密码</label>
2015-08-16 04:14:56 +00:00
<input type="password" class="form-control input-lg" id="password" name="password" placeholder="密码" data-error="请填写旧密码" maxlength="30" required>
<div class="help-block with-errors"></div>
2015-08-15 05:54:30 +00:00
</div>
<div class="form-group">
<label for="new_password">新密码</label>
2015-08-16 04:14:56 +00:00
<input type="password" class="form-control input-lg" id="new_password" name="new_password" placeholder="新密码" maxlength="30" data-minlength="6" data-error="密码不得少于6位" required>
<div class="help-block with-errors"></div>
2015-08-15 05:54:30 +00:00
</div>
<div class="form-group">
<label for="confirm_password">确认密码</label>
2015-08-16 04:14:56 +00:00
<input type="password" class="form-control input-lg" id="confirm_password" name="confirm_password" placeholder="确认密码" maxlength="30" data-match="#new_password" data-match-error="两个密码不一致" require>
<div class="help-block with-errors"></div>
2015-08-15 05:54:30 +00:00
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">提交</button>
</div>
</form>
</div>
2015-08-04 06:55:38 +00:00
</div>
{% endblock %}
{% block js_block %}
2015-08-15 05:54:30 +00:00
<script src="/static/js/app/oj/account/change_password.js"></script>
2015-08-04 06:55:38 +00:00
{% endblock %}