| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <!DOCTYPE html>
- <html lang="en" xmlns:th="http://www.thymeleaf.org">
- <head>
- <meta charset="UTF-8"/>
- <title>user</title>
- <link rel="stylesheet" th:href="@{/css/bootstrap.css}"></link>
- </head>
- <body class="container">
- <br/>
- <h1>修改用户</h1>
- <br/><br/>
- <div class="with:80%">
- <form class="form-horizontal" th:action="@{/edit}" th:object="${user}" method="post">
- <input type="hidden" name="id" th:value="*{id}" />
- <div class="form-group">
- <label for="userName" class="col-sm-2 control-label">userName</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" name="userName" id="userName" th:value="*{userName}" placeholder="userName"/>
- </div>
- </div>
- <div class="form-group">
- <label for="password" class="col-sm-2 control-label" >Password</label>
- <div class="col-sm-10">
- <input type="password" class="form-control" name="password" id="password" th:value="*{password}" placeholder="Password"/>
- </div>
- </div>
- <div class="form-group">
- <label for="age" class="col-sm-2 control-label">age</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" name="age" id="age" th:value="*{age}" placeholder="age"/>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <input type="submit" value="Submit" class="btn btn-info" />
-
- <a href="/toAdd" th:href="@{/list}" class="btn btn-info">Back</a>
- </div>
- </div>
- </form>
- </div>
- </body>
- </html>
|