userAdd.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <title>user</title>
  6. <link rel="stylesheet" th:href="@{/css/bootstrap.css}"></link>
  7. </head>
  8. <body class="container">
  9. <br/>
  10. <h1>添加用户</h1>
  11. <br/><br/>
  12. <div class="with:80%">
  13. <form class="form-horizontal" th:action="@{/add}" method="post">
  14. <div class="form-group">
  15. <label for="userName" class="col-sm-2 control-label">userName</label>
  16. <div class="col-sm-10">
  17. <input type="text" class="form-control" name="userName" id="userName" placeholder="userName"/>
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label for="password" class="col-sm-2 control-label" >Password</label>
  22. <div class="col-sm-10">
  23. <input type="password" class="form-control" name="password" id="password" placeholder="Password"/>
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label for="age" class="col-sm-2 control-label">age</label>
  28. <div class="col-sm-10">
  29. <input type="text" class="form-control" name="age" id="age" placeholder="age"/>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <div class="col-sm-offset-2 col-sm-10">
  34. <input type="submit" value="Submit" class="btn btn-info" />
  35. &nbsp; &nbsp; &nbsp;
  36. <input type="reset" value="Reset" class="btn btn-info" />
  37. </div>
  38. </div>
  39. </form>
  40. </div>
  41. </body>
  42. </html>