updateUser.html
1.57 KB
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html>
<head>
<title>修改员工</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- 引入 Bootstrap -->
<link rel="shortcut icon" type="image/x-icon" href="/power/img/favicon.ico">
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/power/css/addUser.css"/>
</head>
<body>
<div class="container">
<div class="row clearfix">
<div class="col-md-12 column">
<div class="page-header">
<h1>
<small>修改员工</small>
<small><a style="float:right;margin-top: 15px;" th:href="@{/user/page}">返回</a></small>
</h1>
</div>
</div>
</div>
<form th:action="@{/user/updateUser}" method="post">
<input type="hidden" th:value="${user.userId}" name="userId"> <br><br>
<div>手机号:<input class="add-input" type="text" name="mobile" th:value="${user.mobile}"></div>
<div> 姓名:<input type="text" name="userName" th:value="${user.userName}"></div>
<!-- <div> 头像:<input type="file" name="img" ></div>-->
<div th:if="${not #strings.isEmpty(updateMsg)}"><p style="color: red;margin-left: 100px;" th:text="${updateMsg}" ></p></div>
<div> <input type="submit" class="button" value="确认修改"></div>
</form>
</div>