52 lines
1.5 KiB
HTML
52 lines
1.5 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-examPaper-edit" th:object="${examPaper}">
|
||
|
|
<input id="id" 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 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="type" name="type" th:field="*{type}" 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="remarks" name="remarks" th:field="*{remarks}" class="form-control" type="text">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
<div th:include="include::footer"></div>
|
||
|
|
<script type="text/javascript">
|
||
|
|
var prefix = ctx + "exam/examPaper"
|
||
|
|
$("#form-examPaper-edit").validate({
|
||
|
|
rules:{
|
||
|
|
xxxx:{
|
||
|
|
required:true,
|
||
|
|
},
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
function submitHandler() {
|
||
|
|
if ($.validate.form()) {
|
||
|
|
$.operate.save(prefix + "/edit", $('#form-examPaper-edit').serialize());
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|