pim-note-input.jsp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "pim");%>
  4. <%pageContext.setAttribute("currentMenu", "note");%>
  5. <%pageContext.setAttribute("currentTitle", "bpm-process-8");%>
  6. <!doctype html>
  7. <html lang="en">
  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. $("#pimRemindForm").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. <%request.setAttribute("pageNow", "pim");%>
  27. <%@include file="/header/pim3.jsp"%>
  28. <div class="row-fluid">
  29. <%@include file="/menu/pim3.jsp"%>
  30. <!-- start of main -->
  31. <section id="m-main" class="col-md-10" style=" ">
  32. <div class="panel panel-default">
  33. <div class="panel-heading">
  34. 编辑
  35. </div>
  36. <div class="panel-body">
  37. <form id="pimRemindForm" method="post" action="pim-note-save.do" class="form-horizontal">
  38. <c:if test="${not empty model}">
  39. <input id="pimRemind_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="pimNote_content">便签</label>
  43. <div class="col-sm-5">
  44. <textarea id="pimNote_content" name="content" class="form-control required" minlength="2" maxlength="200" rows="10">${model.content}</textarea>
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <div class="col-md-offset-1 col-md-11">
  49. <button type="submit" class="btn btn-primary a-submit"><spring:message code='core.input.save' text='保存'/></button>
  50. &nbsp;
  51. <button type="button" class="btn btn-link a-cancel" onclick="history.back();"><spring:message code='core.input.back' text='返回'/></button>
  52. </div>
  53. </div>
  54. </form>
  55. </div>
  56. </div>
  57. </section>
  58. <!-- end of main -->
  59. </div>
  60. </body>
  61. </html>