|
|
<!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">
|
|
|
<label class="col-sm-3 control-label is-required">题库类型:</label>
|
|
|
<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">
|
|
|
<label class="col-sm-3 control-label is-required">问题描述:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input name="qSubject" required class="form-control" type="text">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-3 control-label is-required">选项A:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input name="OPTIONA" required class="form-control" type="text">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-3 control-label is-required">选项B:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input name="OPTIONB" class="form-control" type="text" required>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-3 control-label is-required">选项C:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input name="OPTIONC" class="form-control" type="text" required>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-3 control-label is-required">选项D:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input name="OPTIOND" class="form-control" type="text" required>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-3 control-label is-required">答案:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input name="NOTE" 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="CREATEPERSON" class="form-control" readonly th:value="${sysuser.userName}" type="text">
|
|
|
</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> |