perm-type-input.jsp 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "auth");%>
  4. <%pageContext.setAttribute("currentMenu", "auth");%>
  5. <%pageContext.setAttribute("currentTitle", "user-process-7");%>
  6. <!doctype html>
  7. <html>
  8. <head>
  9. <%@include file="/common/meta.jsp"%>
  10. <title>编辑</title>
  11. <%@include file="/common/s3.jsp"%>
  12. <script type="text/javascript">
  13. $(function() {
  14. $("#perm-typeForm").validate({
  15. submitHandler: function(form) {
  16. bootbox.animate(false);
  17. var box = bootbox.dialog('<div class="progress progress-striped active" style="margin:0px;"><div class="bar" style="width: 100%;"></div></div>');
  18. form.submit();
  19. },
  20. errorClass: 'validate-error'
  21. });
  22. })
  23. </script>
  24. </head>
  25. <body>
  26. <%@include file="/header/_pim3.jsp"%>
  27. <div class="row-fluid">
  28. <%@include file="/menu/user.jsp"%>
  29. <!-- start of main -->
  30. <section id="m-main" class="col-md-10" style=" ">
  31. <div class="panel panel-default">
  32. <div class="panel-heading">
  33. <i class="glyphicon glyphicon-list"></i>
  34. 编辑
  35. </div>
  36. <div class="panel-body">
  37. <form id="permTypeForm" method="post" action="perm-type-save.do" class="form-horizontal">
  38. <c:if test="${model != null}">
  39. <input id="permType_id" type="hidden" name="id" value="${model.id}">
  40. </c:if>
  41. <div class="form-group">
  42. <label class="control-label col-md-1" for="permType_name"><spring:message code='auth.permType.input.name' text='名称'/></label>
  43. <div class="col-sm-5">
  44. <input id="permType_name" type="text" name="name" value="${model.name}" size="40" class="form-control required" minlength="2" maxlength="50">
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="control-label col-md-1" for="permType_type"><spring:message code='auth.permType.input.type' text='类型'/></label>
  49. <div class="col-sm-5">
  50. <label for="permType_type_0" class="radio inline">
  51. <input id="permType_type_0" type="radio" name="type" value="0" class="required" ${model.type != 1 ? 'checked' : ''}>
  52. 显示
  53. </label>
  54. <label for="permType_type_1" class="radio inline">
  55. <input id="permType_type_1" type="radio" name="type" value="1" class="required" ${model.type == 1 ? 'checked' : ''}>
  56. 隐藏
  57. </label>
  58. <label for="permType_type_0" class="validate-error" generated="true" style="display:none;"></label>
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <label class="control-label col-md-1" for="permType_descn"><spring:message code='auth.permType.input.description' text='描述'/></label>
  63. <div class="col-sm-5">
  64. <textarea id="permType_descn" name="descn" maxlength="60" rows="4">${model.descn}</textarea>
  65. </div>
  66. </div>
  67. <div class="form-group">
  68. <div class="col-sm-5">
  69. <button id="submitButton" class="btn btn-primary a-submit"><spring:message code='core.input.save' text='保存'/></button>
  70. &nbsp;
  71. <button type="button" onclick="history.back();" class="btn btn-link a-cancel"><spring:message code='core.input.back' text='返回'/></button>
  72. </div>
  73. </div>
  74. </form>
  75. </div>
  76. </article>
  77. </section>
  78. <!-- end of main -->
  79. </div>
  80. </body>
  81. </html>