1
0

sign_in.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Aisky-coffee</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <!-- 新 Bootstrap4 核心 CSS 文件 -->
  8. <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
  9. <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
  10. <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  11. <!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
  12. <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
  13. <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
  14. <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
  15. <script src="../static/js/sign_in.js"></script>
  16. <link rel="stylesheet" href="../static/css/sign_in.css">
  17. {% if errMsg %}
  18. <script>
  19. $(function(){
  20. $(".wrong-span").text("{{errMsg}}");
  21. });
  22. </script>
  23. {% endif %}
  24. </head>
  25. <body>
  26. <div class="container">
  27. <div class="row">
  28. <div class="col-2"></div>
  29. <div class="col">
  30. <div class="row">
  31. <div class="col-4"></div>
  32. <div class="col-4">
  33. <img src="../static/img/coffee.jpg" class="img-fluid">
  34. </div>
  35. <div class="col-4"></div>
  36. </div>
  37. <h1 class="text-center">Sign in</h1>
  38. <form method="post" action="/login">
  39. <div class="wrong-info"><span class="wrong-span"></span></div>
  40. <div class="form">
  41. <div class="form-inline">
  42. <label for="usr">Login</label>
  43. <input type="text" class="form-control" id="usr" name="username">
  44. </div>
  45. <div class="form-inline">
  46. <label for="pwd">Password</label>
  47. <input type="password" class="form-control" id="pwd" name="password">
  48. </div>
  49. <div class="radio">
  50. <label><input type="checkbox" name="rem"> Remember me</label>
  51. <a href="/reset_password">Reset password</a>
  52. </div>
  53. </div>
  54. <div>
  55. <input type="submit" class="btn btn-info" value="Log in">
  56. <input type="button" class="btn btn-info" value="Registration" onclick="Registration();">
  57. </div>
  58. </form>
  59. </div>
  60. <div class="col-2"></div>
  61. </div>
  62. </div>
  63. </body>
  64. </html>