sign_in.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Skyeye</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/signin.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. <img src="../static/img/logo_new.png" class="img-fluid">
  31. <h1 class="text-center">Sign in</h1>
  32. <form method="post" action="/login">
  33. <div class="wrong-info"><span class="wrong-span"></span></div>
  34. <div class="form">
  35. <div class="form-inline">
  36. <label for="usr">Login</label>
  37. <input type="text" class="form-control" id="usr" name="username">
  38. </div>
  39. <div class="form-inline">
  40. <label for="pwd">Password</label>
  41. <input type="password" class="form-control" id="pwd" name="password">
  42. </div>
  43. <div class="radio">
  44. <label><input type="checkbox" name="rem"> Remember me</label>
  45. <a href="#">Reset password</a>
  46. </div>
  47. </div>
  48. <div>
  49. <input type="submit" class="btn btn-info" value="Log in">
  50. <input type="button" class="btn btn-info" value="Registration" onclick="Registration();">
  51. </div>
  52. </form>
  53. </div>
  54. <div class="col-2"></div>
  55. </div>
  56. </div>
  57. </body>
  58. </html>