<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="用户重置密码" bodyClass="white-bg"/>
<div class="wrapper wrapper-content ibox-content">
<@f.form id="form-user-resetPwd" class="form-horizontal">
	<input name="id"  type="hidden"  value="${user.id}" />
	<div class="form-group">
		<label class="col-sm-3 control-label "><@ctx.i18n text = "登陆账号"/>：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" readonly="true" name="username" value="${user.username}"/>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 control-label"><@ctx.i18n text = "密码"/>：</label>
		<div class="col-sm-8">
			<input class="form-control" type="password" name="password" id="password" value="${config.getKey('SYS_USER_INITPASSWORD')}">
		</div>
	</div>
</@f.form>
</div>
<@footer>
<script type="text/javascript">
	$("#form-user-resetPwd").validate({
		rules:{
			password:{
				required:true,
				minlength: 6,
				maxlength: 15
			},
		},
		focusCleanup: true
	});

	function submitHandler() {
		if (opt.validate.form()) {
			opt.operate.save(baseURL + "sys/user/resetPwd", $('#form-user-resetPwd').serialize());
		}
	}
</script>
</@footer>
</@pageTheme>
