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

37 lines
1.3 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-add">
<div class="form-group">
<label class="col-sm-3 control-label is-required">图片地址:</label>
<div class="col-sm-8">
<input name="pictureUrl" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">删除标志:</label>
<div class="col-sm-8">
<input name="delFlag" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "front/carousel"
$("#form-carousel-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-carousel-add').serialize());
}
}
</script>
</body>
</html>