login.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org">
  3. <head>
  4. <title>Login</title>
  5. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet"
  6. integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
  7. </head>
  8. <body>
  9. <section class="vh-100 gradient-custom">
  10. <div class="container py-5 h-100">
  11. <div th:if="${param.error}">
  12. <p style="color:red">Invalid username and password.</p>
  13. </div>
  14. <div th:if="${param.logout}">
  15. <p style="color:red">You have been logged out.</p>
  16. </div>
  17. <form th:action="@{/login}" method="post">
  18. <h2 class="fw-bold mb-2 text-uppercase">Login</h2>
  19. <p class="text-black-50 mb-5">Please Sign In!</p>
  20. <div class="form-outline mb-4"><label class="form-label"> User Name : <input type="text" name="username"
  21. class="form-control"/> </label>
  22. </div>
  23. <div class="form-outline mb-4"><label class="form-label"> Password: <input type="password" name="password"
  24. class="form-control"/> </label>
  25. </div>
  26. <!-- <div class="form-outline mb-4"><label class="form-label"> Project:-->
  27. <!-- <select name="proj">-->
  28. <!-- <option value="">Pilih</option>-->
  29. <!-- <option th:each="proj: ${proj}" th:value="${proj.id}" th:text="${proj.description}"/>-->
  30. <!-- </select>-->
  31. <!-- </label></div>-->
  32. <div class="form-outline mb-4"><input type="submit" value="Sign In"/></div>
  33. </form>
  34. </div>
  35. </section>
  36. </body>
  37. </html>