用户列表替换掉商业版的 formvalidation

This commit is contained in:
hohoTT
2015-08-17 14:51:33 +08:00
parent d828be2a28
commit 164e44b398
3 changed files with 40 additions and 74 deletions

View File

@@ -52,19 +52,26 @@
<input name="id" type="number" class="form-control" readonly ms-duplex="id">
</div>
<div class="form-group col-md-4"><label>用户名</label>
<input name="username" type="text" class="form-control" ms-duplex="username">
<input name="username" type="text" class="form-control" ms-duplex="username"
data-minlength="3" data-minlength-error="用户名不得少于3位" required>
<div class="help-block with-errors"></div>
</div>
<div class="form-group col-md-4"><label>真实姓名</label>
<input name="real_name" type="text" class="form-control" ms-duplex="realName">
<input name="real_name" type="text" class="form-control" ms-duplex="realName"
data-error="请填写真实姓名" maxlength="30" required>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="row">
<div class="form-group col-md-4"><label>新密码(留空则保留原密码)</label>
<input name="password" type="password" class="form-control" id="password" ms-duplex="password"
placeholder="此项留空则保留原密码">
placeholder="此项留空则保留原密码" data-minlength="6" data-minlength-error="密码不得少于6位">
<div class="help-block with-errors"></div>
</div>
<div class="form-group col-md-4"><label>电子邮箱</label>
<input name="email" type="email" class="form-control" ms-duplex="email">
<input name="email" type="email" class="form-control" ms-duplex="email"
data-error="请填写邮箱地址" required>
<div class="help-block with-errors"></div>
</div>
<div class="form-group col-md-4"><label>用户类型</label>
<select name="admin_type" class="form-control" ms-duplex="adminType">