@@ -4,22 +4,22 @@ block content
44 .container ( style ="margin-top:30px;" )
55 form#form .col-md-5.col-md-offset-3 ( method ="post" )
66 .form-group
7- label.sr-only ( for ="inputEmail" ) 邮箱地址/ 用户名
8- input#inputEmail .form-control ( type ="text" name ="account" placeholder =" 邮箱地址/ 用户名" required autofocus )
7+ label.sr-only ( for ="inputEmail" ) #{ __ ( ' 邮箱地址' )} / #{ __ ( ' 用户名' )}
8+ input#inputEmail .form-control ( type ="text" name ="account" placeholder =` ${ __ ( ' 邮箱地址' ) } / ${ __ ( ' 用户名' ) } ` required autofocus )
99 .form-group
1010 .col-md-10 ( style ="margin-left:-15px;" )
1111 label.sr-only ( for ="inputToken" ) token
1212 input#inputToken .form-control ( type ="text" name ="token" placeholder ="token" required )
1313 .col-md-2
14- a.form-control.btn.btn-link ( style ="margin-bottom:15px;" target ="_blank" href ="/auth/login" ) 获取token
14+ a.form-control.btn.btn-link ( style ="margin-bottom:15px;" target ="_blank" href ="/auth/login" ) #{ __ ( ' 获取 ' )} token
1515 .form-group
16- label.sr-only ( for ="inputPassword" ) 原密码
17- input#inputPassword .form-control ( type ="password" name ="oldPassword" placeholder =" 原密码" required )
16+ label.sr-only ( for ="inputPassword" ) #{ __ ( ' 原密码' )}
17+ input#inputPassword .form-control ( type ="password" name ="oldPassword" placeholder =` ${ __ ( ' 原密码' ) } ` required )
1818 .form-group
19- label.sr-only ( for ="inputNewPassword" ) 新密码
20- input#inputNewPassword .form-control ( type ="password" name ="newPassword" placeholder =" 新密码" required )
19+ label.sr-only ( for ="inputNewPassword" ) #{ __ ( ' 新密码' )}
20+ input#inputNewPassword .form-control ( type ="password" name ="newPassword" placeholder =` ${ __ ( ' 新密码' ) } ` required )
2121 .form-group
22- a#submitBtn .btn.btn-lg.btn-primary.btn-block 修改密码
22+ a#submitBtn .btn.btn-lg.btn-primary.btn-block #{ __ ( ' 修改密码' )}
2323
2424block js
2525 script() .
@@ -43,7 +43,7 @@ block js
4343 dataType: 'json',
4444 success: function (data) {
4545 if (data.status == "OK") {
46- alert(" 修改成功" );
46+ alert(`${__(' 修改成功')}` );
4747 location.href = '/auth/login';
4848 } else if (data.status == 401) {
4949 alert('token invalid');
0 commit comments