userEdit.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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="@{/edit}" th:object="${user}" method="post">
  14. <input type="hidden" name="id" th:value="*{id}" />
  15. <div class="form-group">
  16. <label for="userName" class="col-sm-2 control-label">userName</label>
  17. <div class="col-sm-10">
  18. <input type="text" class="form-control" name="userName" id="userName" th:value="*{userName}" placeholder="userName"/>
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label for="password" class="col-sm-2 control-label" >Password</label>
  23. <div class="col-sm-10">
  24. <input type="password" class="form-control" name="password" id="password" th:value="*{password}" placeholder="Password"/>
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label for="age" class="col-sm-2 control-label">age</label>
  29. <div class="col-sm-10">
  30. <input type="text" class="form-control" name="age" id="age" th:value="*{age}" placeholder="age"/>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <div class="col-sm-offset-2 col-sm-10">
  35. <input type="submit" value="Submit" class="btn btn-info" />
  36. &nbsp; &nbsp; &nbsp;
  37. <a href="/toAdd" th:href="@{/list}" class="btn btn-info">Back</a>
  38. </div>
  39. </div>
  40. </form>
  41. </div>
  42. </body>
  43. </html>