src/main/resources/templates/blog/friendLink/edit.html
(完整代码) 2KB<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="blog/include :: header('修改友情链接')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-friendLink-edit" th:object="${friendLink}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">友链名称:</label>
<div class="col-sm-8">
<input name="name" th:field="*{name}" class="form-control" required type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">链接:</label>
<div class="col-sm-8">
<input name="link" th:field="*{link}" class="form-control" required type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">logo:</label>
<div class="col-sm-8">
<input name="logo" th:field="*{logo}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">站点描述:</label>
<div class="col-sm-8">
<textarea name="description" required class="form-control">[[${friendLink.description}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">状态:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('audit_state')}">
<input type="radio" th:id="${'auditState_' + dict.dictCode}" name="auditState" th:value="${dict.dictValue}" th:field="*{auditState}">
<label th:for="${'auditState_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="blog/include :: footer" />
<script type="text/javascript">
var prefix = ctx + "blog/friendLink";
$("#form-friendLink-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-friendLink-edit').serialize());
}
}
</script>
</body>
</html>
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
