add.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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-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. <div class="radio radio-info radio-inline">
  52. <input type="radio" id="radio1" name="sex" value="0" checked="">
  53. <label for="radio1">男</label>
  54. </div>
  55. <div class="radio radio-danger radio-inline">
  56. <input type="radio" id="radio2" name="sex" value="1">
  57. <label for="radio2">女</label>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <label class="col-sm-3 control-label">状态:</label>
  63. <div class="col-sm-8">
  64. <div class="onoffswitch">
  65. <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="status" name="status">
  66. <label class="onoffswitch-label" for="status">
  67. <span class="onoffswitch-inner"></span>
  68. <span class="onoffswitch-switch"></span>
  69. </label>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="form-group">
  74. <label class="col-sm-3 control-label">岗位:</label>
  75. <div class="col-sm-8">
  76. <select id="post" name="post" class="form-control select2-hidden-accessible" multiple="">
  77. <option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}"></option>
  78. </select>
  79. </div>
  80. </div>
  81. <div class="form-group">
  82. <label class="col-sm-3 control-label">角色:</label>
  83. <div class="col-sm-8">
  84. <label th:each="role:${roles}" class="checkbox-inline i-checks">
  85. <input name="role" type="checkbox" th:value="${role.roleId}" th:text="${role.roleName}">
  86. </label>
  87. </div>
  88. </div>
  89. <div class="form-group">
  90. <div class="form-control-static col-sm-offset-9">
  91. <button type="submit" class="btn btn-primary">提交</button>
  92. <button th:onclick="'javascript:layer_close()'" class="btn btn-danger" type="button">关闭</button>
  93. </div>
  94. </div>
  95. </form>
  96. </div>
  97. <div th:include="include::footer"></div>
  98. <script src="/ruoyi/system/user/add.js" th:src="@{/ruoyi/system/user/add.js}">
  99. </script>
  100. <script src="/ajax/libs/iCheck/icheck.min.js" th:src="@{/ajax/libs/iCheck/icheck.min.js}"></script>
  101. <script src="/ajax/libs/select/select2.js" th:src="@{/ajax/libs/select/select2.js}"></script>
  102. <script>
  103. $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
  104. </script>
  105. </body>
  106. </html>