12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
- <html>
- <head>
- <title>首页大专题管理</title>
- <meta name="decorator" content="default"/>
- <script type="text/javascript">
- $(document).ready(function() {
- //$("#name").focus();
- $("#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);
- }
- }
- });
- });
- </script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li><a href="${ctx}/cmpage/cmPageBigTopic/">大专题列表</a></li>
- <li class="active"><a href="${ctx}/cmpage/cmPageBigTopic/form?id=${cmPageBigTopic.id}">大专题<shiro:hasPermission name="cmpage:cmPageBigTopic:edit">${not empty cmPageBigTopic.id?'编辑':'添加'}</shiro:hasPermission><shiro:lacksPermission name="cmpage:cmPageBigTopic:edit">查看</shiro:lacksPermission></a></li>
- </ul><br/>
- <form:form id="inputForm" modelAttribute="cmPageBigTopic" action="${ctx}/cmpage/cmPageBigTopic/save" method="post" class="form-horizontal">
- <form:hidden path="id"/>
- <sys:message content="${message}"/>
- <div class="control-group">
- <label class="control-label"><font color="red">*</font> 标题:</label>
- <div class="controls">
- <form:input path="title" htmlEscape="false" maxlength="10" class="input-xlarge required"/>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">描述:</label>
- <div class="controls">
- <form:input path="description" htmlEscape="false" maxlength="30" class="input-xlarge "/>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label"><font color="red">*</font> 悬浮操作栏名称:</label>
- <div class="controls">
- <form:input path="suspensionName" htmlEscape="false" maxlength="20" class="input-xlarge required"/>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label"><span class="help-inline"><font color="red">*</font> </span>排序:</label>
- <div class="controls">
- <form:input path="sort" htmlEscape="false" maxlength="9" class="input-xlarge required digits" />
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">移动端状态:</label>
- <div class="controls">
- <form:select path="crmEnabledStatus" class="input-xlarge ">
- <form:options items="${fns:getDictList('enabled_status')}" itemLabel="label" itemValue="value" htmlEscape="false" label="${fns:getDictList('enabled_status')[0]}"/>
- </form:select>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">PC端状态:</label>
- <div class="controls">
- <form:select path="enabledStatus" class="input-xlarge ">
- <form:options items="${fns:getDictList('enabled_status')}" itemLabel="label" itemValue="value" htmlEscape="false" label="${fns:getDictList('enabled_status')[0]}"/>
- </form:select>
- </div>
- </div>
- <div class="form-actions">
- <shiro:hasPermission name="cmpage:cmPageBigTopic:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/> </shiro:hasPermission>
- <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
- </div>
- </form:form>
- </body>
- </html>
|