workspace-prepareCompleteTask.jsp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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-6");%>
  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. $("#bpm-processForm").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-completeTask.do" class="form-horizontal">
  38. <input id="demo_id" type="hidden" name="taskId" value="${param.taskId}">
  39. <c:forEach items="${taskFormData.formProperties}" var="item">
  40. <div class="control-group">
  41. <label class="control-label">${item.name}</label>
  42. <div class="controls">
  43. <c:if test="${item.type.name=='enum'}">
  44. <%--
  45. <c:forEach items="${item.type.getInformation('values')}">
  46. <label class="checkbox inline">
  47. <input type="radio" name="${item.id}" value="${key}" ${item.value == key ? 'checked' : ''}>
  48. ${item.value}
  49. </label>
  50. </c:forEach>
  51. --%>
  52. </c:if>
  53. <c:if test="${item.type.name != 'enum'}">
  54. <input type="text" name="${id}" value="${item.value}" size="40" class="text ${item.required ? 'required' : ''}" ${item.writable ? '' : 'readonly'}>
  55. </c:if>
  56. </div>
  57. </div>
  58. </c:forEach>
  59. <div class="control-group">
  60. <div class="controls">
  61. <button id="submitButton" type="submit" class="btn btn-primary a-submit">保存</button>
  62. &nbsp;
  63. <button type="button" onclick="history.back();" class="btn btn-link a-cancel">返回</button>
  64. </div>
  65. </div>
  66. </form>
  67. </div>
  68. </div>
  69. </section>
  70. <!-- end of main -->
  71. </div>
  72. </body>
  73. </html>