|
@@ -40,12 +40,42 @@
|
|
|
$('.add-transition').attr('class', 'add-transition');
|
|
$('.add-transition').attr('class', 'add-transition');
|
|
|
$('.add-transition').addClass(transAttr);
|
|
$('.add-transition').addClass(transAttr);
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ $('#reset_password_form').formValidation({
|
|
|
|
|
+ framework: 'bootstrap4',
|
|
|
|
|
+ icon: {
|
|
|
|
|
+ valid: 'fa fa-check',
|
|
|
|
|
+ invalid: 'fa fa-times',
|
|
|
|
|
+ validating: 'fa fa-refresh'
|
|
|
|
|
+ },
|
|
|
|
|
+ // Since the Bootstrap Button hides the radio and checkbox
|
|
|
|
|
+ // We exclude the disabled elements only
|
|
|
|
|
+ excluded: ':disabled',
|
|
|
|
|
+ locale: 'zh_CN',
|
|
|
|
|
+ fields: {
|
|
|
|
|
+ password: {
|
|
|
|
|
+ validators: {
|
|
|
|
|
+ notEmpty: {
|
|
|
|
|
+ },
|
|
|
|
|
+ stringLength: {
|
|
|
|
|
+ min: 6,
|
|
|
|
|
+ max: 128
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ .on('success.field.fv', function(e, data) {
|
|
|
|
|
+ if (data.fv.getInvalidFields().length > 0) { // There is invalid field
|
|
|
|
|
+ data.fv.disableSubmitButtons(true);
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
</script>
|
|
|
<div class="center-vertical">
|
|
<div class="center-vertical">
|
|
|
<div class="center-content row wow">
|
|
<div class="center-content row wow">
|
|
|
- <form id="login_form" class="col-md-4 col-sm-5 col-xs-11 col-lg-3 center-margin" action="/reset_password/{{ token }}" method="post">
|
|
|
|
|
|
|
+ <form id="reset_password_form" class="col-md-4 col-sm-5 col-xs-11 col-lg-3 center-margin" action="/reset_password/{{ token }}" method="post">
|
|
|
<h3 class="text-center pad25B font-primary" style="font-family: 'serif'; opacity: 0.83; font-size: -webkit-xxx-large;">设置新密码</h3>
|
|
<h3 class="text-center pad25B font-primary" style="font-family: 'serif'; opacity: 0.83; font-size: -webkit-xxx-large;">设置新密码</h3>
|
|
|
<div id="login-form" class="content-box bg-default">
|
|
<div id="login-form" class="content-box bg-default">
|
|
|
<div class="content-box-wrapper pad20A">
|
|
<div class="content-box-wrapper pad20A">
|
|
@@ -58,7 +88,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-group" style="margin-bottom: 10px;">
|
|
<div class="form-group" style="margin-bottom: 10px;">
|
|
|
- <button id="login_submit" class="btn btn-block btn-primary">下一步</button>
|
|
|
|
|
|
|
+ <button type="submit" id="login_submit" class="btn btn-block btn-primary" disabled>下一步</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|