login.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <!--
  3. ~ Copyright 2014-2018 the original author or authors.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <html>
  18. <head>
  19. <base th:href="@{${adminContextPath} + '/'}" href="/">
  20. <meta charset="utf-8">
  21. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  22. <meta name="format-detection" content="telephone=no,email=no">
  23. <meta name="theme-color" content="#42d3a5">
  24. <link rel="shortcut icon" href="assets/img/favicon.png" type="image/png">
  25. <link rel="preload" href="assets/css/sba-core.css" as="style">
  26. <link href="assets/css/sba-core.css" rel="stylesheet">
  27. <title>Spring Boot Admin - Login</title>
  28. </head>
  29. <body class="login">
  30. <section class="hero is-fullheight">
  31. <div class="hero-body">
  32. <div class="container has-text-centered">
  33. <div class="column is-4 is-offset-4">
  34. <div class="box">
  35. <figure class="image is-128x128 login--logo">
  36. <img src="assets/img/icon-spring-boot-admin.svg">
  37. </figure>
  38. <h1 class="title has-text-primary">Spring Boot Admin</h1>
  39. <form method="post">
  40. <input type="hidden"
  41. th:if="${_csrf}"
  42. th:name="${_csrf.parameterName}"
  43. th:value="${_csrf.token}"/>
  44. <div class="field">
  45. <p class="is-medium has-text-danger" th:unless="${param.error == null}" data-i18n="login.invalid_username_or_password">
  46. Invalid username or password
  47. </p>
  48. <p class="is-medium" th:unless="${param.logout == null}">
  49. Logout successful
  50. </p>
  51. </div>
  52. <div class="field">
  53. <div class="control">
  54. <input class="input is-medium" type="input" name="username" placeholder="Username"
  55. autofocus th:classappend="${param.error != null} ? is-danger">
  56. </div>
  57. </div>
  58. <div class="field">
  59. <div class="control">
  60. <input class="input is-medium" type="password" name="password"
  61. placeholder="Password" th:classappend="${param.error != null} ? is-danger">
  62. </div>
  63. </div>
  64. <div class="field">
  65. <div class="control">
  66. <input type="submit" class="button is-block is-primary is-medium is-fullwidth"
  67. value="Login">
  68. </div>
  69. </div>
  70. </form>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </section>
  76. </body>
  77. <script src="login.js"></script>
  78. </html>