12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <%@ 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" src="${ctxStatic}/ckeditor/ckeditor.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- //富文本框
- CKEDITOR.replace('content');
- //$("#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}/bulkpurchase/bpClause/">条款信息列表</a></li>
- <li class="active"><a href="${ctx}/bulkpurchase/bpClause/form?id=${bpClause.id}">条款信息<shiro:hasPermission name="bulkpurchase:bpClause:edit">${not empty bpClause.id?'编辑':'添加'}</shiro:hasPermission><shiro:lacksPermission name="bulkpurchase:bpClause:edit">查看</shiro:lacksPermission></a></li>
- </ul><br/>
- <form:form id="inputForm" modelAttribute="bpClause" action="${ctx}/bulkpurchase/bpClause/save" method="post" class="form-horizontal">
- <form:hidden path="id"/>
- <sys:message content="${message}"/>
- <div class="control-group">
- <label class="control-label"><span class="help-inline"><font color="red">*</font> </span>名称:</label>
- <div class="controls">
- <form:input path="name" htmlEscape="false" maxlength="20" class="input-xlarge required"/>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">内容:</label>
- <div class="controls">
- <form:textarea path="content" htmlEscape="false" rows="4" class="input-xxlarge "/>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">启用类型:</label>
- <div class="controls">
- <form:select path="clauseType" class="input-xlarge ">
- <form:option value="0" label="非分期启用"/>
- <form:option value="1" label="分期启用"/>
- <form:option value="2" label="同时启用"/>
- </form:select>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">状态:</label>
- <div class="controls">
- <form:select path="enabledStatus" class="input-xlarge ">
- <form:options items="${fns:getDictList('enabled_status')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </div>
- </div>
- <div class="form-actions">
- <shiro:hasPermission name="bulkpurchase:bpClause: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>
|