user, jsp -> html
parent
181d518df7
commit
32392c1518
|
@ -51,7 +51,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Enable/Disable<em class="text-danger">*</em></label>
|
||||
<label class="col-sm-2 control-label">Enable?<em class="text-danger">*</em></label>
|
||||
|
||||
<div class="col-sm-10">
|
||||
<label class="checkbox-inline">
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width,user-scalable=no"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||||
<link rel="shortcut icon" href="../static/favicon.ico" th:href="@{/favicon.ico}"/>
|
||||
|
||||
<title>User Overview - Spring Security&OAuth2.1</title>
|
||||
|
||||
<th:block th:insert="~{fragments/main::header-css}"/>
|
||||
</head>
|
||||
<body class="container">
|
||||
<a th:href="@{/}">Home</a>
|
||||
|
||||
<h2>User Overview</h2>
|
||||
|
||||
<div class="pull-right">
|
||||
<a th:href="@{form/plus}" class="btn btn-success btn-sm">Add User</a>
|
||||
</div>
|
||||
<form action="" class="form-inline">
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" placeholder="Type username" name="username"
|
||||
th:value="${overviewDto.username}"/>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default">Search</button>
|
||||
<span class="text-info">Total: [[${overviewDto.size}]]</span>
|
||||
</form>
|
||||
<br/>
|
||||
<table class="table table-bordered table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<th>Privilege</th>
|
||||
<th>Enabled</th>
|
||||
<th>Phone</th>
|
||||
<th>Email</th>
|
||||
<th>Nickname</th>
|
||||
<th>Address</th>
|
||||
<th>CreateTime</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr th:each="user:${overviewDto.userDtos}">
|
||||
<td th:text="${user.username}"></td>
|
||||
<td th:text="${user.privileges}"></td>
|
||||
<td th:text="${user.enabled}"></td>
|
||||
<td th:text="${user.phone}"></td>
|
||||
<td th:text="${user.email}"></td>
|
||||
<td th:text="${user.nickname}"></td>
|
||||
<td th:text="${user.address}"></td>
|
||||
<td th:text="${user.createTime}"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div th:replace="~{fragments/main :: footer}"/>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue