edit.jsp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. </head>
  10. <body>
  11. <div class="wrapper wrapper-content">
  12. <div class="row">
  13. <div class="col-sm-12">
  14. <cs:form_validate formId="editMenuForm"/>
  15. <form class="form-horizontal" id="editMenuForm" action="edit.cs" method="POST">
  16. <div class="form-group">
  17. <label class="col-sm-3 control-label">上级菜单:</label>
  18. <div class="col-sm-6">
  19. <select class="form-control m-b" id="pid" name="pid" >
  20. <option value="0">请选择</option>
  21. <c:forEach items="${menuList }" var="superMenu">
  22. <option value="${superMenu.id }"
  23. <c:if test="${superMenu.id == menu.pid }"> selected</c:if>
  24. >${superMenu.name}</option>
  25. </c:forEach>
  26. </select>
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label class="col-sm-3 control-label">名称:</label>
  31. <div class="col-sm-6">
  32. <input id="id" name="id" value="${menu.id }" class="form-control" type="hidden" >
  33. <input id="name" name="name" value="${menu.name }" class="form-control" validate="{required:true, minlength:1}" validateMessage="{required:'请输入菜单名称',minlength:'至少一个字符以上'}" >
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="col-sm-3 control-label">代码:</label>
  38. <div class="col-sm-6">
  39. <input id="code" name="code" value="${menu.code }" readonly="readonly" class="form-control" validate="{required:true, minlength:1}" validateMessage="{required:'请输入菜单代码,不能重复',minlength:'至少一个字符以上'}" >
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="col-sm-3 control-label">url:</label>
  44. <div class="col-sm-6">
  45. <input id="url" name="url" class="form-control" value="${menu.url }" validate="{required:true}" validateMessage="{required:'请输入url'}" >
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="col-sm-3 control-label">排序:</label>
  50. <div class="col-sm-6">
  51. <input id="weight" name="weight" class="form-control" value="${menu.weight }">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <div class="col-sm-4 col-sm-offset-3 pull-left">
  56. <button class="btn btn-default btn-dlg-close">取消</button>
  57. <button class="btn btn-primary" type="submit">提交</button>
  58. </div>
  59. </div>
  60. </form>
  61. </div>
  62. </div>
  63. </div>
  64. </body>
  65. </html>