Files
lemon/webapp/content/cms/cms-comment-input.jsp
2014-06-11 10:52:27 +08:00

74 lines
2.4 KiB
Plaintext

<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/taglibs.jsp"%>
<%pageContext.setAttribute("currentHeader", "cms");%>
<%pageContext.setAttribute("currentMenu", "cms");%>
<!doctype html>
<html>
<head>
<%@include file="/common/meta.jsp"%>
<title>编辑评论</title>
<%@include file="/common/s.jsp"%>
<script type="text/javascript">
$(function() {
$("#cmsCommentForm").validate({
submitHandler: function(form) {
bootbox.animate(false);
var box = bootbox.dialog('<div class="progress progress-striped active" style="margin:0px;"><div class="bar" style="width: 100%;"></div></div>');
form.submit();
},
errorClass: 'validate-error'
});
})
</script>
</head>
<body>
<%@include file="/header/cms.jsp"%>
<div class="row-fluid">
<%@include file="/menu/cms.jsp"%>
<!-- start of main -->
<section id="m-main" class="span10">
<article class="m-widget">
<header class="header">
<h4 class="title">编辑评论</h4>
</header>
<div class="content content-inner">
<form id="cmsCommentForm" method="post" action="cms-comment-save.do" class="form-horizontal">
<c:if test="${model != null}">
<input id="cms-comment_id" type="hidden" name="id" value="${model.id}">
</c:if>
<div class="control-group">
<label class="control-label" for="cms-comment_cmsCommentname">标题</label>
<div class="controls">
<input id="cms-comment_cmsCommentname" type="text" name="title" value="${model.title}" size="40" class="text required" minlength="2" maxlength="50">
</div>
</div>
<div class="control-group">
<label class="control-label" for="cms-comment_cmsCommentname">内容</label>
<div class="controls">
<input id="cms-comment_cmsCommentname" type="text" name="content" value="${model.content}" size="40" class="text required" minlength="2" maxlength="50">
</div>
</div>
<div class="control-group">
<div class="controls">
<button id="submitButton" class="btn a-submit"><spring:message code='core.input.save' text='保存'/></button>
<button type="button" onclick="history.back();" class="btn a-cancel"><spring:message code='core.input.back' text='返回'/></button>
</div>
</div>
</form>
</div>
</article>
</section>
<!-- end of main -->
</div>
</body>
</html>