edit.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.w3.org/1999/xhtml">
  3. <meta charset="utf-8">
  4. <head th:include="include :: header"></head>
  5. <link href="/ajax/libs/iCheck/custom.css" th:href="@{/ajax/libs/iCheck/custom.css}" rel="stylesheet"/>
  6. <link href="/ajax/libs/select/select2.css" th:href="@{/ajax/libs/select/select2.css}" rel="stylesheet"/>
  7. <link href="/ruoyi/css/RuoYi.css" th:href="@{/ruoyi/css/RuoYi.css}" rel="stylesheet"/>
  8. <body class="white-bg">
  9. <div class="wrapper wrapper-content animated fadeInRight ibox-content">
  10. <form class="form-horizontal m" id="form-user-edit">
  11. <input name="userId" type="hidden" th:value="${user.userId}" />
  12. <input name="deptId" type="hidden" th:value="${user.deptId}" id="treeId"/>
  13. <div class="form-group">
  14. <label class="col-sm-3 control-label ">登录名称:</label>
  15. <div class="col-sm-8">
  16. <input class="form-control" type="text" readonly="true" th:value="${user.loginName}"/>
  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. <input class="form-control" type="text" onclick="selectDeptTree()" readonly="true" id="treeName" th:value="${user.dept.deptName}">
  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. <input class="form-control" type="text" name="userName" id="userName" th:value="${user.userName}">
  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. <input class="form-control" type="text" name="email" name="email" th:value="${user.email}">
  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. <input class="form-control" type="text" name="phonenumber" id="phonenumber" th:value="${user.phonenumber}">
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label class="col-sm-3 control-label">状态:</label>
  45. <div class="col-sm-8">
  46. <div class="onoffswitch">
  47. <input type="checkbox" th:checked="${user.status == 0 ? true : false}" class="onoffswitch-checkbox" id="status" name="status">
  48. <label class="onoffswitch-label" for="status">
  49. <span class="onoffswitch-inner"></span>
  50. <span class="onoffswitch-switch"></span>
  51. </label>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label class="col-sm-3 control-label">岗位:</label>
  57. <div class="col-sm-8">
  58. <select id="post" name="post" class="form-control select2-hidden-accessible" multiple="">
  59. <option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:selected="${post.flag}"></option>
  60. </select>
  61. </div>
  62. </div>
  63. <div class="form-group">
  64. <label class="col-sm-3 control-label">角色:</label>
  65. <div class="col-sm-8">
  66. <label th:each="role:${roles}" class="checkbox-inline i-checks">
  67. <input name="role" type="checkbox" th:value="${role.roleId}" th:text="${role.roleName}" th:checked="${role.flag}">
  68. </label>
  69. </div>
  70. </div>
  71. <div class="form-group">
  72. <div class="form-control-static col-sm-offset-9">
  73. <button type="submit" class="btn btn-primary">提交</button>
  74. <button th:onclick="'javascript:layer_close()'" class="btn btn-danger" type="button">关闭</button>
  75. </div>
  76. </div>
  77. </form>
  78. </div>
  79. <div th:include="include::footer"></div>
  80. <script src="/ruoyi/system/user/edit.js" th:src="@{/ruoyi/system/user/edit.js}">
  81. </script>
  82. <script src="/ajax/libs/iCheck/icheck.min.js" th:src="@{/ajax/libs/iCheck/icheck.min.js}"></script>
  83. <script src="/ajax/libs/select/select2.js" th:src="@{/ajax/libs/select/select2.js}"></script>
  84. <script>
  85. $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
  86. </script>
  87. </body>
  88. </html>