add.jsp 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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="addMenuForm"/>
  15. <form class="form-horizontal" action="add.cs" id="addMenuForm" 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.id }"> 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="name" name="name" class="form-control" validate="{required:true, minlength:1}" validateMessage="{required:'请输入菜单名称,不能重复',minlength:'至少一个字符以上'}" >
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label class="col-sm-3 control-label">代码:</label>
  37. <div class="col-sm-6">
  38. <input id="code" name="code" readonly="readonly" class="form-control" >
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label class="col-sm-3 control-label">url:</label>
  43. <div class="col-sm-6">
  44. <input id="url" name="url" class="form-control" validate="{required:true}" validateMessage="{required:'请输入url'}" >
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="col-sm-3 control-label">权重:</label>
  49. <div class="col-sm-6">
  50. <input id="weight" name="weight" class="form-control" >
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <div class="col-sm-4 col-sm-offset-3 pull-left">
  55. <button class="btn btn-default btn-dlg-close">取消</button>
  56. <button class="btn btn-primary" type="submit">提交</button>
  57. </div>
  58. </div>
  59. </form>
  60. </div>
  61. </div>
  62. </div>
  63. </body>
  64. </html>