RuoYi/ruoyi-front/src/main/resources/templates/front/carousel/edit.html

32 lines
1.2 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改首页轮播图')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-carousel-edit" th:object="${homePageCarousel}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label is-required">图片地址:</label>
<div class="col-sm-8">
<input name="pictureUrl" th:field="*{pictureUrl}" class="form-control" type="text" required>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "front/carousel";
$("#form-carousel-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-carousel-edit').serialize());
}
}
</script>
</body>
</html>