add.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
  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-add">
  11. <input name="deptId" type="hidden" id="treeId"/>
  12. <div class="form-group">
  13. <label class="col-sm-3 control-label ">登录名称:</label>
  14. <div class="col-sm-8">
  15. <input class="form-control" type="text" id="loginName" name="loginName"/>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="col-sm-3 control-label">部门名称:</label>
  20. <div class="col-sm-8">
  21. <input class="form-control" type="text" name="deptName" onclick="selectDeptTree()" readonly="true" id="treeName">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="col-sm-3 control-label">用户名称:</label>
  26. <div class="col-sm-8">
  27. <input class="form-control" type="text" name="userName" id="userName">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="col-sm-3 control-label">密码:</label>
  32. <div class="col-sm-8">
  33. <input class="form-control" type="password" name="password" id="password" th:value="${@configService.selectConfigByKey('sys.user.initPassword')}">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="col-sm-3 control-label">邮箱:</label>
  38. <div class="col-sm-8">
  39. <input class="form-control" type="text" name="email" id="email">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="col-sm-3 control-label">手机:</label>
  44. <div class="col-sm-8">
  45. <input class="form-control" type="text" name="phonenumber" id="phonenumber">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="col-sm-3 control-label">性别:</label>
  50. <div class="col-sm-8">
  51. <select id="sex" class="form-control m-b" th:with="type=${@dictService.selectDictData('sys_user_sex')}">
  52. <option th:each="dict : ${type}" th:text="${dict['dictLabel']}" th:value="${dict['dictValue']}"></option>
  53. </select>
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="col-sm-3 control-label">状态:</label>
  58. <div class="col-sm-8">
  59. <div class="onoffswitch">
  60. <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="status" name="status">
  61. <label class="onoffswitch-label" for="status">
  62. <span class="onoffswitch-inner"></span>
  63. <span class="onoffswitch-switch"></span>
  64. </label>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <label class="col-sm-3 control-label">岗位:</label>
  70. <div class="col-sm-8">
  71. <select id="post" name="post" class="form-control select2-hidden-accessible" multiple="">
  72. <option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}"></option>
  73. </select>
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="col-sm-3 control-label">角色:</label>
  78. <div class="col-sm-8">
  79. <label th:each="role:${roles}" class="checkbox-inline i-checks">
  80. <input name="role" type="checkbox" th:value="${role.roleId}" th:text="${role.roleName}">
  81. </label>
  82. </div>
  83. </div>
  84. <div class="form-group">
  85. <div class="form-control-static col-sm-offset-9">
  86. <button type="submit" class="btn btn-primary">提交</button>
  87. <button th:onclick="'javascript:layer_close()'" class="btn btn-danger" type="button">关闭</button>
  88. </div>
  89. </div>
  90. </form>
  91. </div>
  92. <div th:include="include::footer"></div>
  93. <script src="/ruoyi/system/user/add.js" th:src="@{/ruoyi/system/user/add.js}">
  94. </script>
  95. <script src="/ajax/libs/iCheck/icheck.min.js" th:src="@{/ajax/libs/iCheck/icheck.min.js}"></script>
  96. <script src="/ajax/libs/select/select2.js" th:src="@{/ajax/libs/select/select2.js}"></script>
  97. <script>
  98. $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
  99. </script>
  100. </body>
  101. </html>