performance-info-input.jsp 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "performance");%>
  4. <%pageContext.setAttribute("currentMenu", "performance");%>
  5. <!doctype html>
  6. <html>
  7. <head>
  8. <%@include file="/common/meta.jsp"%>
  9. <title>编辑</title>
  10. <%@include file="/common/s3.jsp"%>
  11. <script type="text/javascript">
  12. $(function() {
  13. $("#performance-infoForm").validate({
  14. submitHandler: function(form) {
  15. bootbox.animate(false);
  16. var box = bootbox.dialog('<div class="progress progress-striped active" style="margin:0px;"><div class="bar" style="width: 100%;"></div></div>');
  17. form.submit();
  18. },
  19. errorClass: 'validate-error'
  20. });
  21. })
  22. </script>
  23. </head>
  24. <body>
  25. <%@include file="/header/performance-info.jsp"%>
  26. <div class="row-fluid">
  27. <%@include file="/menu/performance-info.jsp"%>
  28. <!-- start of main -->
  29. <section id="m-main" class="col-md-10" style=" ">
  30. <div class="panel panel-default">
  31. <div class="panel-heading">
  32. <i class="glyphicon glyphicon-list"></i>
  33. 编辑
  34. </div>
  35. <div class="panel-body">
  36. <form id="performance-infoForm" method="post" action="performance-info-save.do" class="form-horizontal">
  37. <c:if test="${model != null}">
  38. <input id="performance-info_id" type="hidden" name="id" value="${model.id}">
  39. </c:if>
  40. <div class="form-group">
  41. <label class="control-label col-md-1" for="performance-info_name"><spring:message code="performance-info.performance-info.input.name" text="名称"/></label>
  42. <div class="col-sm-5">
  43. <input id="performance-info_name" type="text" name="name" value="${model.name}" size="40" class="form-control required" minlength="2" maxlength="10">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <div class="col-sm-5">
  48. <button type="submit" class="btn a-submit"><spring:message code='core.input.save' text='保存'/></button>
  49. &nbsp;
  50. <button type="button" class="btn a-cancel" onclick="history.back();"><spring:message code='core.input.back' text='返回'/></button>
  51. </div>
  52. </div>
  53. </form>
  54. </div>
  55. </article>
  56. </section>
  57. <!-- end of main -->
  58. </div>
  59. </body>
  60. </html>