add.html 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
  3. <head>
  4. <th:block th:include="include :: header('新增客户')" />
  5. </head>
  6. <body class="white-bg">
  7. <div class="wrapper wrapper-content animated fadeInRight ibox-content">
  8. <form class="form-horizontal m" id="form-customer-add">
  9. <div class="col-xs-12">
  10. <div class="form-group">
  11. <label class="col-sm-3 control-label">客户名:</label>
  12. <div class="col-sm-8">
  13. <input name="customerName" class="form-control" type="text">
  14. </div>
  15. </div>
  16. </div>
  17. </form>
  18. </div>
  19. <th:block th:include="include :: footer" />
  20. <script th:inline="javascript">
  21. var prefix = ctx + "business/customer"
  22. $("#form-customer-add").validate({
  23. focusCleanup: true
  24. });
  25. function submitHandler() {
  26. if ($.validate.form()) {
  27. $.operate.save(prefix + "/add", $('#form-customer-add').serialize());
  28. }
  29. }
  30. </script>
  31. </body>
  32. </html>