detail.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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-user-edit">
  9. <div class="form-group">
  10. <label class="col-sm-3 control-label">用户编号:</label>
  11. <div class="col-sm-8">
  12. <div class="form-control-static" th:text="${user.userCode}"></div>
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="col-sm-3 control-label">用户姓名:</label>
  17. <div class="col-sm-8">
  18. <div class="form-control-static" th:text="${user.userName}"></div>
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="col-sm-3 control-label">用户性别:</label>
  23. <div class="col-sm-8">
  24. <div class="form-control-static" th:text="${@dict.getLabel('sys_user_sex', user.status)}"></div>
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-sm-3 control-label">用户手机:</label>
  29. <div class="col-sm-8">
  30. <div class="form-control-static" th:text="${user.userPhone}"></div>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="col-sm-3 control-label">用户邮箱:</label>
  35. <div class="col-sm-8">
  36. <div class="form-control-static" th:text="${user.userEmail}"></div>
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="col-sm-3 control-label">用户状态:</label>
  41. <div class="col-sm-8">
  42. <div class="form-control-static" th:text="${@dict.getLabel('sys_normal_disable', user.status)}"></div>
  43. </div>
  44. </div>
  45. </form>
  46. </div>
  47. <th:block th:include="include :: footer" />
  48. <script type="text/javascript">
  49. var prefix = ctx + "demo/operate";
  50. $("#form-user-add").validate({
  51. onkeyup: false,
  52. rules:{
  53. userPhone:{
  54. isPhone:true
  55. },
  56. userEmail:{
  57. email:true
  58. },
  59. },
  60. focusCleanup: true
  61. });
  62. function submitHandler() {
  63. if ($.validate.form()) {
  64. $.operate.save(prefix + "/edit", $('#form-user-edit').serialize());
  65. }
  66. }
  67. </script>
  68. </body>
  69. </html>