console-beforeUpdateProcess.jsp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "bpm-console");%>
  4. <%pageContext.setAttribute("currentMenu", "bpm-process");%>
  5. <%pageContext.setAttribute("currentTitle", "bpm-category-4");%>
  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. $("#console-beforeUpdateProcessForm").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/bpm-console.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="demoForm" method="post" action="console-doUpdateProcess.do" class="form-horizontal">
  38. <input id="processDefinitionId" type="hidden" name="processDefinitionId" value="${param.processDefinitionId}">
  39. <div class="form-group">
  40. <label class="control-label col-md-1">xml</label>
  41. <div class="col-sm-11">
  42. <textarea name="xml" rows="20" style="width:80%" class="form-control">${xml}</textarea>
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. <div class="col-sm-5">
  47. <button id="submitButton" type="submit" class="btn a-submit btn-primary">保存</button>
  48. &nbsp;
  49. <button type="button" onclick="history.back();" class="btn a-cancel btn-link">返回</button>
  50. </div>
  51. </div>
  52. </form>
  53. </div>
  54. </div>
  55. </section>
  56. <!-- end of main -->
  57. </div>
  58. </body>
  59. </html>