login.html 5.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <div id="content-container" class="container">
  2. <div class="user-section login-section">
  3. <div class="logon-tab clearfix"><a class="active">{:__('Sign in')}</a> <a href="{:url('user/register')}?url={$url|urlencode|htmlentities}">{:__('Sign up')}</a></div>
  4. <div class="login-main">
  5. <form name="form" id="login-form" class="form-vertical" method="POST" action="">
  6. <input type="hidden" name="url" value="{$url|htmlentities}"/>
  7. {:token()}
  8. <div class="form-group">
  9. <label class="control-label" for="account">{:__('Account')}</label>
  10. <div class="controls">
  11. <input class="form-control input-lg" id="account" type="text" name="account" value="" data-rule="required" placeholder="{:__('Email/Mobile/Username')}" autocomplete="off">
  12. <div class="help-block"></div>
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="control-label" for="password">{:__('Password')}</label>
  17. <div class="controls">
  18. <input class="form-control input-lg" id="password" type="password" name="password" data-rule="required;password" placeholder="{:__('Password')}" autocomplete="off">
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <div class="controls">
  23. <div class="checkbox inline">
  24. <label>
  25. <input type="checkbox" name="keeplogin" checked="checked" value="1"> {:__('Keep login')}
  26. </label>
  27. </div>
  28. <div class="pull-right"><a href="javascript:;" class="btn-forgot">{:__('Forgot password')}</a></div>
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <button type="submit" class="btn btn-primary btn-lg btn-block">{:__('Sign in')}</button>
  33. </div>
  34. </form>
  35. </div>
  36. </div>
  37. </div>
  38. <script type="text/html" id="resetpwdtpl">
  39. <form id="resetpwd-form" class="form-horizontal form-layer" method="POST" action="{:url('api/user/resetpwd')}">
  40. <div class="form-body">
  41. <input type="hidden" name="action" value="resetpwd"/>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-3">{:__('Type')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <div class="radio">
  46. <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>
  47. <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>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="form-group" data-type="email">
  52. <label for="email" class="control-label col-xs-12 col-sm-3">{:__('Email')}:</label>
  53. <div class="col-xs-12 col-sm-8">
  54. <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="">
  55. <span class="msg-box"></span>
  56. </div>
  57. </div>
  58. <div class="form-group hide" data-type="mobile">
  59. <label for="mobile" class="control-label col-xs-12 col-sm-3">{:__('Mobile')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <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="">
  62. <span class="msg-box"></span>
  63. </div>
  64. </div>
  65. <div class="form-group">
  66. <label for="captcha" class="control-label col-xs-12 col-sm-3">{:__('Captcha')}:</label>
  67. <div class="col-xs-12 col-sm-8">
  68. <div class="input-group">
  69. <input type="text" name="captcha" class="form-control" data-rule="required;length(4);integer[+];remote({:url('api/validate/check_ems_correct')}, event=resetpwd, email:#email)"/>
  70. <span class="input-group-btn" style="padding:0;border:none;">
  71. <a href="javascript:;" class="btn btn-info btn-captcha" data-url="{:url('api/ems/send')}" data-type="email" data-event="resetpwd">{:__('Send verification code')}</a>
  72. </span>
  73. </div>
  74. <span class="msg-box"></span>
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label for="newpassword" class="control-label col-xs-12 col-sm-3">{:__('New password')}:</label>
  79. <div class="col-xs-12 col-sm-8">
  80. <input type="password" class="form-control" id="newpassword" name="newpassword" value="" data-rule="required;password" placeholder="">
  81. <span class="msg-box"></span>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="form-group form-footer">
  86. <label class="control-label col-xs-12 col-sm-3"></label>
  87. <div class="col-xs-12 col-sm-8">
  88. <button type="submit" class="btn btn-md btn-info">{:__('Ok')}</button>
  89. </div>
  90. </div>
  91. </form>
  92. </script>