login4.html 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>Login Page</title>
  6. <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css" />
  7. </head>
  8. <body>
  9. <div class="container">
  10. <div class="row clearfix">
  11. <div class="col-md-3 column">
  12. <form role="form" method="POST" th:action="@{/userLogin}" th:object="${user}">
  13. <label for="username">Name</label>
  14. <input type="text" class="form-control" id="username" th:field="*{name}" />
  15. <label for="password">Password</label>
  16. <input type="password" class="form-control" id="password" th:field="*{password}" />
  17. <button type="submit" class="btn btn-default">Sign in</button>
  18. </form>
  19. <ul class="nav nav-pills">
  20. <li role="presentation"><a href="register.html" class="href" target="_blank">Sign up</a></li>
  21. </ul>
  22. </div>
  23. </div>
  24. </div>
  25. </body>
  26. </html>