Score
0
Watch 14 Star 56 Fork 31

monkeyk7 / MyOIDCJavaApache-2.0

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
基于OIDC协议的参考实现,根据各类库提供实现参考 spread retract

https://github.com/monkeyk/MyOIDC

Clone or download
user_form.html 3.54 KB
Copy Edit Web IDE Raw Blame History
monkeyk7 authored 2020-03-19 00:13 . 用户EU管理 admin
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
<meta charset="UTF-8"/>
<link rel="shortcut icon" href="../../../static/favicon.ico" th:href="@{/static/favicon.ico}"/>
<title>用户[EU] . MyOIDC</title>
<th:block th:include="fragment/header :: public-css"/>
</head>
<body>
<div th:replace="fragment/header :: public-header"/>
<div class="container">
<h2>添加用户</h2>
<form class="form-horizontal" th:action="@{''}" method="post" th:object="${formDto}">
<div class="form-group">
<label class="col-sm-2 control-label">账号<em class="text-danger">*</em></label>
<div class="col-sm-10">
<input th:field="*{username}" name="username" class="form-control" placeholder="请输入账号"
required="required" type="text" value="" minlength="4"/>
<p class="help-block">账号不能为空, 且唯一</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">密码<em class="text-danger">*</em></label>
<div class="col-sm-10">
<input th:field="*{password}" name="password" class="form-control" placeholder="请输入密码"
required="required" type="password" value="" minlength="10"/>
<p class="help-block">密码要求至少10位</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">权限<em class="text-danger">*</em></label>
<div class="col-sm-10">
<label class="checkbox-inline">
<input name="privileges" type="checkbox" value="MOBILE"/> MOBILE
</label>
<label class="checkbox-inline">
<input name="privileges" type="checkbox" value="UNITY"/> UNITY
</label>
<label class="checkbox-inline">
<input name="privileges" type="checkbox" value="ADMIN"/> ADMIN
</label>
<p class="help-block">至少选择一个权限</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">电话</label>
<div class="col-sm-10">
<input th:field="*{phone}" name="phone" class="form-control" placeholder="133..." type="text" value=""/>
<p class="help-block">电话号码, 可选</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">邮箱</label>
<div class="col-sm-10">
<input th:field="*{email}" name="email" class="form-control" placeholder="xxx@xxx.com" type="text"
value=""/>
<p class="help-block">邮箱, 可选</p>
</div>
</div>
<div class="form-group">
<div class="col-sm-2"></div>
<div class="col-sm-10">
<p th:if="${#fields.hasAnyErrors()}" th:text="${#fields.errors()}"
class="alert alert-warning"></p>
</div>
</div>
<div class="form-group">
<div class="col-sm-2"></div>
<div class="col-sm-10">
<button type="submit" class="btn btn-success">保存</button>
<a href="../list">取消</a>
</div>
</div>
</form>
</div>
<hr/>
<div th:replace="fragment/footer :: footer-oidc"/>
</body>
</html>

Comment ( 0 )

Sign in for post a comment

Java
1
https://gitee.com/mkk/MyOIDC.git
git@gitee.com:mkk/MyOIDC.git
mkk
MyOIDC
MyOIDC
1.1.0

Help Search

205735 778617b6 1899542 205747 347fc4a1 1899542