RuoYi/MengYu-Trade/src/main/resources/templates/mengyu/goods/edit.html

66 lines
2.8 KiB
HTML

<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head 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-goods-edit" th:object="${goods}">
<input id="code" name="code" th:field="*{code}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">品种名称:</label>
<div class="col-sm-8">
<input id="name" name="name" th:field="*{name}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">品种类型 (股标,基金等):</label>
<div class="col-sm-8">
<input id="codeType" name="codeType" th:field="*{codeType}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">行业类型(军工,证券等):</label>
<div class="col-sm-8">
<input id="industryType" name="industryType" th:field="*{industryType}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">板块类型(上证,深证 创业板等):</label>
<div class="col-sm-8">
<input id="plateType" name="plateType" th:field="*{plateType}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人:</label>
<div class="col-sm-8">
<input id="creater" name="creater" th:field="*{creater}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建时间:</label>
<div class="col-sm-8">
<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
var prefix = ctx + "mengyu/goods"
$("#form-goods-edit").validate({
rules:{
xxxx:{
required:true,
},
}
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-goods-edit').serialize());
}
}
</script>
</body>
</html>