|
@@ -48,31 +48,38 @@
|
|
|
<form id="resetpwd-form" class="form-horizontal form-layer" method="POST" action="{:url('api/user/resetpwd')}">
|
|
|
<div class="form-body">
|
|
|
<input type="hidden" name="action" value="resetpwd"/>
|
|
|
+<!-- <div class="form-group">-->
|
|
|
+<!-- <label class="control-label col-xs-12 col-sm-3">{:__('Type')}:</label>-->
|
|
|
+<!-- <div class="col-xs-12 col-sm-8">-->
|
|
|
+<!-- <div class="radio">-->
|
|
|
+<!-- <label for="type-email"><input id="type-email" checked="checked" name="type" data-send-url="{:url('api/ems/send')}" data-check-url="{:url('api/validate/check_ems_correct')}" type="radio" value="email"> {:__('Reset password by email')}</label>-->
|
|
|
+<!-- <label for="type-mobile"><input id="type-mobile" name="type" type="radio" data-send-url="{:url('api/sms/send')}" data-check-url="{:url('api/validate/check_sms_correct')}" value="mobile"> {:__('Reset password by mobile')}</label>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div class="form-group" data-type="email">-->
|
|
|
+<!-- <label for="email" class="control-label col-xs-12 col-sm-3">{:__('Email')}:</label>-->
|
|
|
+<!-- <div class="col-xs-12 col-sm-8">-->
|
|
|
+<!-- <input type="text" class="form-control" id="email" name="email" value="" data-rule="required(#type-email:checked);email;remote({:url('api/validate/check_email_exist')}, event=resetpwd, id=0)" placeholder="">-->
|
|
|
+<!-- <span class="msg-box"></span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div class="form-group hide" data-type="mobile">-->
|
|
|
+<!-- <label for="mobile" class="control-label col-xs-12 col-sm-3">{:__('Mobile')}:</label>-->
|
|
|
+<!-- <div class="col-xs-12 col-sm-8">-->
|
|
|
+<!-- <input type="text" class="form-control" id="mobile" name="mobile" value="" data-rule="required(#type-mobile:checked);mobile;remote({:url('api/validate/check_mobile_exist')}, event=resetpwd, id=0)" placeholder="">-->
|
|
|
+<!-- <span class="msg-box"></span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
<div class="form-group">
|
|
|
- <label class="control-label col-xs-12 col-sm-3">{:__('Type')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <div class="radio">
|
|
|
- <label for="type-email"><input id="type-email" checked="checked" name="type" data-send-url="{:url('api/ems/send')}" data-check-url="{:url('api/validate/check_ems_correct')}" type="radio" value="email"> {:__('Reset password by email')}</label>
|
|
|
- <label for="type-mobile"><input id="type-mobile" name="type" type="radio" data-send-url="{:url('api/sms/send')}" data-check-url="{:url('api/validate/check_sms_correct')}" value="mobile"> {:__('Reset password by mobile')}</label>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group" data-type="email">
|
|
|
- <label for="email" class="control-label col-xs-12 col-sm-3">{:__('Email')}:</label>
|
|
|
+ <label for="email" class="control-label col-xs-12 col-sm-3">Email:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input type="text" class="form-control" id="email" name="email" value="" data-rule="required(#type-email:checked);email;remote({:url('api/validate/check_email_exist')}, event=resetpwd, id=0)" placeholder="">
|
|
|
<span class="msg-box"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form-group hide" data-type="mobile">
|
|
|
- <label for="mobile" class="control-label col-xs-12 col-sm-3">{:__('Mobile')}:</label>
|
|
|
- <div class="col-xs-12 col-sm-8">
|
|
|
- <input type="text" class="form-control" id="mobile" name="mobile" value="" data-rule="required(#type-mobile:checked);mobile;remote({:url('api/validate/check_mobile_exist')}, event=resetpwd, id=0)" placeholder="">
|
|
|
- <span class="msg-box"></span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
<div class="form-group">
|
|
|
- <label for="captcha" class="control-label col-xs-12 col-sm-3">{:__('Captcha')}:</label>
|
|
|
+ <label for="captcha" class="control-label col-xs-12 col-sm-3">Captcha:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<div class="input-group">
|
|
|
<input type="text" name="captcha" class="form-control" data-rule="required;length({$Think.config.captcha.length});digits;remote({:url('api/validate/check_ems_correct')}, event=resetpwd, email:#email)"/>
|
|
@@ -84,7 +91,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
- <label for="newpassword" class="control-label col-xs-12 col-sm-3">{:__('New password')}:</label>
|
|
|
+ <label for="newpassword" class="control-label col-xs-12 col-sm-3">New password:</label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
<input type="password" class="form-control" id="newpassword" name="newpassword" value="" data-rule="required;password" placeholder="">
|
|
|
<span class="msg-box"></span>
|
|
@@ -94,7 +101,7 @@
|
|
|
<div class="form-group form-footer">
|
|
|
<label class="control-label col-xs-12 col-sm-3"></label>
|
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
- <button type="submit" class="btn btn-md btn-primary">{:__('Ok')}</button>
|
|
|
+ <button type="submit" class="btn btn-md btn-primary">Ok</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|