Files
quinn-bbc/src/main/resources/templates/user/settings.html
2023-02-17 16:04:32 +08:00

99 lines
4.5 KiB
HTML

<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>用户中心-南瓜瞄</title>
<link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}">
<link rel="stylesheet" th:href="@{/css/backgroud.css}">
<link rel="stylesheet" th:href="@{/hover/component.css}">
<style>
#table-title tr th{
border: none;
}
</style>
</head>
<body>
<div th:replace="~{common/header::header(activeUrl='user')}"></div>
<main role="main" class="container">
<div class="blog-main">
<div class="my-3 p-3 bg-white rounded shadow-sm">
<form class="needs-validation small" novalidate="" th:action="@{'/userinfo/update/'+${session.loginUser.getUid()}}" method="post">
<div class="row">
<div class="col-md-6 mb-3">
<label for="username">用户名</label>
<input type="text" th:value="${session.loginUser.getUsername()}" name="username" class="form-control" id="username" placeholder="xxxx" required="">
</div>
<div class="col-md-6 mb-3">
<label for="realname">真实姓名</label>
<input type="text" th:value="${userInfo.getRealname()}" name="realname" class="form-control" id="realname" placeholder="xxx">
</div>
</div>
<div class="row">
<div class="col-md-6 mb-3">
<label for="phone">手机</label>
<input type="text" th:value="${userInfo.getPhone()}" name="phone" class="form-control" id="phone" placeholder="xxxxxxxxxxx">
</div>
<div class="col-md-6 mb-3">
<label for="age">年龄</label>
<input type="text" th:value="${userInfo.getRealname()}" name="age" class="form-control" id="age" placeholder="18" required="">
</div>
</div>
<div class="row">
<div class="col-md-6 mb-3">
<label for="qq">QQ</label>
<input type="text" th:value="${userInfo.getQq()}" name="qq" class="form-control" id="qq" placeholder="xxx" required="">
</div>
<div class="col-md-6 mb-3">
<label for="email">邮箱</label>
<input type="email" th:value="${userInfo.getEmail()}" name="email" class="form-control" id="email" placeholder="example@南瓜瞄.com">
</div>
</div>
<div class="mb-3">
<label for="work">工作</label>
<input type="text" th:value="${userInfo.getWork()}" name="work" class="form-control" id="work" placeholder="架构师">
</div>
<div class="mb-3">
<label for="address">地址</label>
<input type="text" th:value="${userInfo.getAddress()}" name="address" class="form-control" id="address" placeholder="中国 杭州">
</div>
<div class="mb-3">
<label for="hobby">爱好</label>
<input type="text" th:value="${userInfo.getHobby()}" name="hobby" class="form-control" id="hobby" placeholder="">
</div>
<div class="mb-3">
<label>自我介绍</label>
<textarea th:text="${userInfo.getIntro()}" type="text" name="intro" class="form-control"></textarea>
</div>
<hr class="mb-1">
<button class="btn btn-primary btn-block" type="submit" > 更新资料 </button>
</form>
</div>
</div>
</main>
<div th:replace="~{common/footer::footer}"></div>
<a class="to-top badge badge-light">返回顶部</a>
<script th:src="@{/js/jquery-3.5.1.min.js}"></script>
<script th:src="@{/bootstrap/js/bootstrap.bundle.min.js}"></script>
<script th:src="@{/js/toTop.js}"></script>
<script th:src="@{/js/jquery-ui.min.js}"></script>
<script th:src="@{/live/js/addlive2d.js}"></script>
</body>
</html>