edit.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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-dict-edit" th:object="${bankCard}">
  9. <input name="id" type="hidden" th:field="*{id}" />
  10. <div class="form-group">
  11. <label class="col-sm-2 control-label">卿卿号:</label>
  12. <div class="col-sm-10">
  13. <input class="form-control" readonly="readonly" type="text" th:field="*{erbanNo}">
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-sm-2 control-label">卡号:</label>
  18. <div class="col-sm-10">
  19. <input class="form-control" type="text" name="bankCard" id="bankCard" th:field="*{bankCard}" required>
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="col-sm-2 control-label">姓名:</label>
  24. <div class="col-sm-10">
  25. <input class="form-control" type="text" name="bankCardName" id="bankCardName" th:field="*{bankCardName}"/>
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="col-sm-2 control-label">银行:</label>
  30. <div class="col-sm-10">
  31. <select name="openBankCode" id="openBankCode" class="form-control m-b" th:with="type=${@dict.getType('bank_card_type')}">
  32. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{openBankCode}"></option>
  33. </select>
  34. </div>
  35. </div>
  36. </form>
  37. </div>
  38. <th:block th:include="include :: footer" />
  39. <script type="text/javascript">
  40. var prefix = ctx + "users/bank/card";
  41. $("#form-dict-edit").validate({
  42. focusCleanup: true
  43. });
  44. function submitHandler() {
  45. if ($.validate.form()) {
  46. $.operate.save(prefix + "/edit", $('#form-dict-edit').serialize());
  47. }
  48. }
  49. </script>
  50. </body>
  51. </html>