56 lines
2.0 KiB
Plaintext
56 lines
2.0 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8" %>
|
||
<%@ include file="/webpage/include/taglib.jsp"%>
|
||
<html>
|
||
<head>
|
||
<title>选择截止时间</title>
|
||
<meta name="decorator" content="default"/>
|
||
<script>
|
||
$(document).ready(function(){
|
||
validateForm = $("#inputForm").validate({
|
||
submitHandler: function(form){
|
||
loading('正在提交,请稍等...');
|
||
form.submit();
|
||
},
|
||
errorContainer: "#messageBox",
|
||
errorPlacement: function(error, element) {
|
||
$("#messageBox").text("输入有误,请先更正。");
|
||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||
error.appendTo(element.parent().parent());
|
||
} else {
|
||
error.insertAfter(element);
|
||
}
|
||
}
|
||
});
|
||
laydate.render({
|
||
elem: '#endTime', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
||
type: "datetime"
|
||
});
|
||
});
|
||
var validateForm;
|
||
function doSubmit(){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
||
if(validateForm.form()){
|
||
$("#inputForm").submit();
|
||
return true;
|
||
}
|
||
return false;
|
||
}
|
||
</script>
|
||
<script src="${ctxStatic}/layui-v2.4.5/layui/layui.js"></script>
|
||
</head>
|
||
<body>
|
||
<form:form id="inputForm" modelAttribute="subtask" action="${ctx}/assessment/assessed/restartTask" method="post" class="form-horizontal">
|
||
<input type="hidden" name="ids" id="ids" value="${ids}">
|
||
<%-- <input type="hidden" name="id" id="id" value="${subtask.id}">--%>
|
||
<table class="table table-bordered table-condensed dataTables-example dataTable no-footer">
|
||
<tbody>
|
||
<tr>
|
||
<td class="width-15 active"><label class="pull-right"><font color="red">*</font>截止时间:</label></td>
|
||
<td class="width-35">
|
||
<input id="endTime" readonly="true" name="endTime" type="text" maxlength="20" class="laydate-icon form-control layer-date required"/>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</form:form>
|
||
</body>
|
||
</html> |