detail.html 2.2 KB

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