19 Star 158 Fork 79

monkeyk7/MyOIDC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
user_form.html 3.54 KB
一键复制 编辑 原始数据 按行查看 历史
monkeyk7 提交于 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>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mkk/MyOIDC.git
git@gitee.com:mkk/MyOIDC.git
mkk
MyOIDC
MyOIDC
1.1.0

搜索帮助

0d507c66 1850385 C8b1a773 1850385