edit.jsp 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!doctype html>
  4. <html>
  5. <head>
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <%@ include file="../../common/head.jsp"%>
  9. <cs:initFile/>
  10. </head>
  11. <body>
  12. <div class="wrapper wrapper-content">
  13. <div class="row">
  14. <div class="col-sm-12">
  15. <cs:form_validate formId="addMenuForm"/>
  16. <form class="form-horizontal" action="edit.cs" id="addMenuForm" method="POST">
  17. <input type="hidden" id="id" name="id" value="${mgmProductCategory.id }"/>
  18. <div class="form-group">
  19. <label class="col-sm-3 control-label">名称:</label>
  20. <div class="col-sm-6">
  21. <input id="gcName" name="gcName" value="${mgmProductCategory.gcName }" class="form-control" validate="{required:true, minlength:1}" validateMessage="{required:'请输入菜单名称,不能重复',minlength:'至少一个字符以上'}" >
  22. </div>
  23. </div>
  24. <c:if test="${mgmProductCategory.type == '1' && mgmProductCategory.num==1}">
  25. <div id="xm" class="form-group" >
  26. <label class="col-sm-3 control-label">所属项目:</label>
  27. <div class="col-sm-6">
  28. <select class="form-control m-b" id="projectId" name="projectId" validate="{required:true}" validateMessage="{required:'请选择所属项目'}" >
  29. <option value="0">请选择</option>
  30. <c:forEach items="${project }" var="superMenu">
  31. <option value="${superMenu.id }" <c:if test="${mgmProductCategory.projectId == superMenu.id}">selected</c:if>>${superMenu.name}</option>
  32. </c:forEach>
  33. </select>
  34. </div>
  35. </div>
  36. </c:if>
  37. <div class="form-group">
  38. <label class="col-sm-3 control-label">分类图标:</label>
  39. <div class="col-sm-6">
  40. <cs:file name="gcIcon" type="100" url="${mgmProductCategory.gcIcon }" num="1"></cs:file>
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label class="col-sm-3 control-label">权重:</label>
  45. <div class="col-sm-6">
  46. <input id="gcSort" name="gcSort" value="${mgmProductCategory.gcSort }" class="form-control" validate="{required:true, min:0}" validateMessage="{required:'请输入分类关键字',min:'请输入大于零的数字'}" >
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <label class="col-sm-3 control-label">关键字:</label>
  51. <div class="col-sm-6">
  52. <input id="gcKeywords" name="gcKeywords" value="${mgmProductCategory.gcKeywords }" class="form-control" validate="{required:true, minlength:1}" validateMessage="{required:'请输入分类关键字',minlength:'至少一个字符以上'}" >
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label class="col-sm-3 control-label">描述:</label>
  57. <div class="col-sm-6">
  58. <textarea rows="12" cols="" id="gcDesc" name="gcDesc" class="form-control">${mgmProductCategory.gcDesc }</textarea>
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <div class="col-sm-4 col-sm-offset-3 pull-left">
  63. <button class="btn btn-default btn-dlg-close">取消</button>
  64. <button class="btn btn-primary" type="submit">提交</button>
  65. </div>
  66. </div>
  67. </form>
  68. </div>
  69. </div>
  70. </div>
  71. </body>
  72. </html>