workspace-prepareStartProcessInstance.jsp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "bpm-workspace");%>
  4. <%pageContext.setAttribute("currentMenu", "bpm-process");%>
  5. <!doctype html>
  6. <html lang="en">
  7. <head>
  8. <%@include file="/common/meta.jsp"%>
  9. <title>编辑</title>
  10. <%@include file="/common/s.jsp"%>
  11. </head>
  12. <body>
  13. <%@include file="/header/bpm-workspace.jsp"%>
  14. <div class="row-fluid">
  15. <%@include file="/menu/bpm-workspace.jsp"%>
  16. <!-- start of main -->
  17. <section id="m-main" class="span10" style="float:right">
  18. <article class="m-widget">
  19. <header class="header">
  20. <h4 class="title">编辑</h4>
  21. </header>
  22. <div class="content content-inner">
  23. <form id="demoForm" method="post" action="workspace-startProcessInstance.do?operationMode=STORE" class="form-horizontal">
  24. <input id="demo_id" type="hidden" name="processDefinitionId" value="${processDefinitionId}">
  25. <c:forEach items="${startFormData.formProperties}" var="item">
  26. <div class="control-group">
  27. <label class="control-label">${item.name}</label>
  28. <div class="controls">
  29. <c:if test="${item.type.name=='enum'}">
  30. <c:forEach items="${type.getInformation('values')}" var="item">
  31. <label class="checkbox inline">
  32. <input type="radio" name="${item.id}" value="${key}" ${item.value == key ? 'checked' : ''}>
  33. ${item.value}
  34. </label>
  35. </c:forEach>
  36. </select>
  37. </c:if>
  38. <c:if test="${item.type.name != 'enum'}">
  39. <input type="text" name="${id}" value="${item.value}" size="40" class="text ${item.required ? 'required' : ''}" ${item.writable ? '' : 'readonly'}>
  40. </c:if>
  41. </div>
  42. </div>
  43. </c:forEach>
  44. <div class="control-group">
  45. <div class="controls">
  46. <button id="submitButton" type="submit" class="btn">保存</button>
  47. &nbsp;
  48. <button type="button" onclick="history.back();" class="btn">返回</button>
  49. </div>
  50. </div>
  51. </form>
  52. </div>
  53. </article>
  54. </section>
  55. <!-- end of main -->
  56. </div>
  57. </body>
  58. </html>