You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
4.0 KiB

1 year ago
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增题库管理')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-question-add">
<div class="form-group">
10 months ago
<label class="col-sm-3 control-label is-required">题库类型:</label>
1 year ago
<div class="col-sm-8">
<select name="TYPEID" class="form-control m-b" th:with="type=${@dict.getType('td_question_type')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group">
10 months ago
<label class="col-sm-3 control-label is-required">问题描述:</label>
1 year ago
<div class="col-sm-8">
10 months ago
<input name="qSubject" required class="form-control" type="text">
1 year ago
</div>
</div>
<div class="form-group">
10 months ago
<label class="col-sm-3 control-label is-required">选项A</label>
1 year ago
<div class="col-sm-8">
10 months ago
<input name="OPTIONA" required class="form-control" type="text">
1 year ago
</div>
</div>
<div class="form-group">
10 months ago
<label class="col-sm-3 control-label is-required">选项B</label>
1 year ago
<div class="col-sm-8">
10 months ago
<input name="OPTIONB" class="form-control" type="text" required>
1 year ago
</div>
</div>
<div class="form-group">
10 months ago
<label class="col-sm-3 control-label is-required">选项C</label>
1 year ago
<div class="col-sm-8">
10 months ago
<input name="OPTIONC" class="form-control" type="text" required>
1 year ago
</div>
</div>
<div class="form-group">
10 months ago
<label class="col-sm-3 control-label is-required">选项D</label>
1 year ago
<div class="col-sm-8">
10 months ago
<input name="OPTIOND" class="form-control" type="text" required>
1 year ago
</div>
</div>
<div class="form-group">
10 months ago
<label class="col-sm-3 control-label is-required">答案:</label>
1 year ago
<div class="col-sm-8">
10 months ago
<input name="NOTE" class="form-control" type="text" required>
1 year ago
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建人:</label>
<div class="col-sm-8">
<input name="CREATEPERSON" class="form-control" readonly th:value="${sysuser.userName}" type="text">
1 year ago
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="CREATEDATE" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"> <i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/question"
$("#form-question-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-question-add').serialize());
}
}
$("input[name='CREATEDATE']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>