systemmanage_user_add.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. {% load staticfiles %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8" />
  6. <link href="{% static '/lib/bootstrap-3.3.7/css/bootstrap.css' %}" rel="stylesheet">
  7. <link rel="stylesheet" href="{% static '/lib/font-awesome/4.5.0/css/font-awesome.css' %}">
  8. <link rel="stylesheet" href="{% static '/lib/css/ace.min.css' %}"/>
  9. <link rel="stylesheet" href="{% static '/lib/css/ace-skins.min.css' %}">
  10. <link rel="stylesheet" href="{% static '/lib/css/ace-rtl.min.css' %}">
  11. <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
  12. <link rel="stylesheet" href="{% static '/css/loading.css' %}?versions=0.5.0" />
  13. <style type="text/css">
  14. body {
  15. overflow: hidden;
  16. background: #fff;
  17. }
  18. .searchCover {
  19. margin: 20px 0;
  20. }
  21. .innerTable {
  22. padding: 0 1px 0 0;
  23. min-width: 750px;
  24. overflow-x: scroll;
  25. }
  26. .table,
  27. .table.table-striped>thead>tr>th {
  28. text-align: center;
  29. }
  30. table td {
  31. vertical-align: middle !important;
  32. }
  33. .nullData {
  34. width: 100%;
  35. height: 500px;
  36. background: #ddd;
  37. text-align: center;
  38. line-height: 500px;
  39. font-size: 20px;
  40. border: 1px solid #ddd;
  41. }
  42. .must_fill {
  43. color: rgb(197, 23, 23);
  44. font-size: 24px;
  45. vertical-align: middle;
  46. }
  47. .data-input {
  48. margin-top: 7px;
  49. }
  50. #distpicker5 select {
  51. display: inline-block;
  52. width: 180px;
  53. }
  54. #userremark {
  55. width: 612px;
  56. height: 62px;
  57. padding: 5px;
  58. resize: none;
  59. }
  60. </style>
  61. </head>
  62. <body>
  63. <div class="content">
  64. <div class="page-header">
  65. <h1>
  66. <font style="vertical-align: inherit;">
  67. <font style="vertical-align: inherit;">
  68. 添加新用户
  69. </font>
  70. </font>
  71. </h1>
  72. </div>
  73. <form class="form-horizontal" role="form">
  74. <div class="form-group">
  75. <label class="col-sm-3 control-label no-padding-right">
  76. <span class="must_fill">*</span>用户名:</label>
  77. <div class="col-sm-9">
  78. <div class="data-input">
  79. <input id="username" type="text" name="user.name" maxlength="13" class="input-user" value="" placeholder="请输入用户名" />
  80. </div>
  81. </div>
  82. </div>
  83. <div class="form-group">
  84. <label class="col-sm-3 control-label no-padding-right">
  85. <span class="must_fill">*</span>邮箱:</label>
  86. <div class="col-sm-9">
  87. <div class="data-input">
  88. <input id="useremail" maxlength="20" type="email" name="user.email" class="input-user" value="" placeholder="请输入常用的邮箱">
  89. </div>
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <label class="col-sm-3 control-label no-padding-right">
  94. 电话:</label>
  95. <div class="col-sm-9">
  96. <div class="data-input">
  97. <input id="userphone" type="tel" maxlength="11" name="user.phone" class="input-user" value="" placeholder="请输入电话" />
  98. </div>
  99. </div>
  100. </div>
  101. <div class="form-group">
  102. <label class="col-sm-3 control-label no-padding-right">
  103. 省市区:</label>
  104. <div class="col-sm-9">
  105. <div class="data-input">
  106. <div id="distpicker5">
  107. <select class="form-control enter-select" id="province10"></select>
  108. <select class="form-control enter-select" id="city10"></select>
  109. <select class="form-control enter-select" id="district10"></select>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="form-group">
  115. <label class="col-sm-3 control-label no-padding-right">
  116. 类型:</label>
  117. <div class="col-sm-9">
  118. <div class="data-input">
  119. <select class="users-enter-select" id="user_type" name="user.type">
  120. {% if role == "superuser" or role == "staff"%}
  121. <option value="0">管理员</option>
  122. {% else %} {% endif %}
  123. <option selected value="1">用户</option>
  124. </select>
  125. </div>
  126. </div>
  127. </div>
  128. <!-- {% if role == "superuser" or role == "staff" %}
  129. <div class="form-group">
  130. <label class="col-sm-3 control-label no-padding-right">
  131. 用户组:</label>
  132. <div class="col-sm-9">
  133. <div class="data-input">
  134. <select id="user_groups" name="user.group" style="width:175px">
  135. <option value='0'>请选择</option>
  136. {% for g in all_groups %}
  137. <option value={{g.id}}>{{g.name}}</option>
  138. {% endfor %}
  139. </select>
  140. </div>
  141. </div>
  142. </div>
  143. {% else %} {% endif %} -->
  144. <div class="form-group">
  145. <label class="col-sm-3 control-label no-padding-right">
  146. 备注:</label>
  147. <div class="col-sm-9">
  148. <div class="data-input">
  149. <textarea rows="3" id="userremark" name="user.remarks" class="textarea-addto" maxlength="200" placeholder="请输入备注信息,最多200字。"></textarea>
  150. </div>
  151. </div>
  152. </div>
  153. <div class="">
  154. <div class="col-md-offset-3 col-md-9">
  155. <button class="btn btn-info" type="button" onclick="sub()">
  156. <i class="ace-icon fa fa-check bigger-110"></i>
  157. 确定
  158. </button>
  159. &nbsp; &nbsp; &nbsp;
  160. <button class="btn" type="reset">
  161. <i class="ace-icon fa fa-undo bigger-110"></i>
  162. 取消
  163. </button>
  164. </div>
  165. </div>
  166. </form>
  167. </div>
  168. <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
  169. <script src="{% static '/lib/bootstrap-3.3.7/js/bootstrap.js' %}"></script>
  170. <script src="{% static '/lib/layui/layui.all.js' %}"></script>
  171. <script src="{% static '/lib/js/newdistpicker.js' %}" type="text/javascript" charset="utf-8"></script>
  172. <script src="{% static '/lib/js/main.js' %}" type="text/javascript" charset="utf-8"></script>
  173. <script type="text/javascript">
  174. $.ajaxSetup({
  175. data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
  176. });
  177. </script>
  178. <script src="{% static '/js/usermanage/add_usermanage.js' %}?versions=0.5.0" type="text/javascript"></script>
  179. </body>
  180. </html>