bpClauseForm.jsp 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>条款信息管理</title>
  6. <meta name="decorator" content="default"/>
  7. <script type="text/javascript" src="${ctxStatic}/ckeditor/ckeditor.js"></script>
  8. <script type="text/javascript">
  9. $(document).ready(function() {
  10. //富文本框
  11. CKEDITOR.replace('content');
  12. //$("#name").focus();
  13. $("#inputForm").validate({
  14. submitHandler: function(form){
  15. loading('正在提交,请稍等...');
  16. form.submit();
  17. },
  18. errorContainer: "#messageBox",
  19. errorPlacement: function(error, element) {
  20. $("#messageBox").text("输入有误,请先更正。");
  21. if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
  22. error.appendTo(element.parent().parent());
  23. } else {
  24. error.insertAfter(element);
  25. }
  26. }
  27. });
  28. });
  29. </script>
  30. </head>
  31. <body>
  32. <ul class="nav nav-tabs">
  33. <li><a href="${ctx}/bulkpurchase/bpClause/">条款信息列表</a></li>
  34. <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>
  35. </ul><br/>
  36. <form:form id="inputForm" modelAttribute="bpClause" action="${ctx}/bulkpurchase/bpClause/save" method="post" class="form-horizontal">
  37. <form:hidden path="id"/>
  38. <sys:message content="${message}"/>
  39. <div class="control-group">
  40. <label class="control-label"><span class="help-inline"><font color="red">*</font> </span>名称:</label>
  41. <div class="controls">
  42. <form:input path="name" htmlEscape="false" maxlength="20" class="input-xlarge required"/>
  43. </div>
  44. </div>
  45. <div class="control-group">
  46. <label class="control-label">内容:</label>
  47. <div class="controls">
  48. <form:textarea path="content" htmlEscape="false" rows="4" class="input-xxlarge "/>
  49. </div>
  50. </div>
  51. <div class="control-group">
  52. <label class="control-label">启用类型:</label>
  53. <div class="controls">
  54. <form:select path="clauseType" class="input-xlarge ">
  55. <form:option value="0" label="非分期启用"/>
  56. <form:option value="1" label="分期启用"/>
  57. <form:option value="2" label="同时启用"/>
  58. </form:select>
  59. </div>
  60. </div>
  61. <div class="control-group">
  62. <label class="control-label">状态:</label>
  63. <div class="controls">
  64. <form:select path="enabledStatus" class="input-xlarge ">
  65. <form:options items="${fns:getDictList('enabled_status')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  66. </form:select>
  67. </div>
  68. </div>
  69. <div class="form-actions">
  70. <shiro:hasPermission name="bulkpurchase:bpClause:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
  71. <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
  72. </div>
  73. </form:form>
  74. </body>
  75. </html>