| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- {% load staticfiles %}
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link href="{% static '/lib/bootstrap-3.3.7/css/bootstrap.css' %}" rel="stylesheet">
- <link rel="stylesheet" href="{% static '/lib/font-awesome/4.5.0/css/font-awesome.css' %}">
- <link rel="stylesheet" href="{% static '/lib/css/ace.min.css' %}"/>
- <link rel="stylesheet" href="{% static '/lib/css/ace-skins.min.css' %}">
- <link rel="stylesheet" href="{% static '/lib/css/ace-rtl.min.css' %}">
- <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
- <link rel="stylesheet" href="{% static '/css/loading.css' %}?versions=0.5.0" />
- <style type="text/css">
- body {
- overflow: hidden;
- background: #fff;
- }
- .searchCover {
- margin: 20px 0;
- }
- .innerTable {
- padding: 0 1px 0 0;
- min-width: 750px;
- overflow-x: scroll;
- }
- .table,
- .table.table-striped>thead>tr>th {
- text-align: center;
- }
- table td {
- vertical-align: middle !important;
- }
- .nullData {
- width: 100%;
- height: 500px;
- background: #ddd;
- text-align: center;
- line-height: 500px;
- font-size: 20px;
- border: 1px solid #ddd;
- }
- .must_fill {
- color: rgb(197, 23, 23);
- font-size: 24px;
- vertical-align: middle;
- }
- .data-input {
- margin-top: 7px;
- }
- #distpicker5 select {
- display: inline-block;
- width: 180px;
- }
- #userremark {
- width: 612px;
- height: 62px;
- padding: 5px;
- resize: none;
- }
- </style>
- </head>
- <body>
- <div class="content">
- <div class="page-header">
- <h1>
- <font style="vertical-align: inherit;">
- <font style="vertical-align: inherit;">
- 添加新用户
- </font>
- </font>
- </h1>
- </div>
- <form class="form-horizontal" role="form">
- <div class="form-group">
- <label class="col-sm-3 control-label no-padding-right">
- <span class="must_fill">*</span>用户名:</label>
- <div class="col-sm-9">
- <div class="data-input">
- <input id="username" type="text" name="user.name" maxlength="13" class="input-user" value="" placeholder="请输入用户名" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label no-padding-right">
- <span class="must_fill">*</span>邮箱:</label>
- <div class="col-sm-9">
- <div class="data-input">
- <input id="useremail" maxlength="20" type="email" name="user.email" class="input-user" value="" placeholder="请输入常用的邮箱">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label no-padding-right">
- 电话:</label>
- <div class="col-sm-9">
- <div class="data-input">
- <input id="userphone" type="tel" maxlength="11" name="user.phone" class="input-user" value="" placeholder="请输入电话" />
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label no-padding-right">
- 省市区:</label>
- <div class="col-sm-9">
- <div class="data-input">
- <div id="distpicker5">
- <select class="form-control enter-select" id="province10"></select>
- <select class="form-control enter-select" id="city10"></select>
- <select class="form-control enter-select" id="district10"></select>
- </div>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label no-padding-right">
- 类型:</label>
- <div class="col-sm-9">
- <div class="data-input">
- <select class="users-enter-select" id="user_type" name="user.type">
- {% if role == "superuser" or role == "staff"%}
- <option value="0">管理员</option>
- {% else %} {% endif %}
- <option selected value="1">用户</option>
- </select>
- </div>
- </div>
- </div>
- <!-- {% if role == "superuser" or role == "staff" %}
- <div class="form-group">
- <label class="col-sm-3 control-label no-padding-right">
- 用户组:</label>
- <div class="col-sm-9">
- <div class="data-input">
- <select id="user_groups" name="user.group" style="width:175px">
- <option value='0'>请选择</option>
- {% for g in all_groups %}
- <option value={{g.id}}>{{g.name}}</option>
- {% endfor %}
- </select>
- </div>
- </div>
- </div>
- {% else %} {% endif %} -->
- <div class="form-group">
- <label class="col-sm-3 control-label no-padding-right">
- 备注:</label>
- <div class="col-sm-9">
- <div class="data-input">
- <textarea rows="3" id="userremark" name="user.remarks" class="textarea-addto" maxlength="200" placeholder="请输入备注信息,最多200字。"></textarea>
- </div>
- </div>
- </div>
- <div class="">
- <div class="col-md-offset-3 col-md-9">
- <button class="btn btn-info" type="button" onclick="sub()">
- <i class="ace-icon fa fa-check bigger-110"></i>
- 确定
- </button>
-
- <button class="btn" type="reset">
- <i class="ace-icon fa fa-undo bigger-110"></i>
- 取消
- </button>
- </div>
- </div>
- </form>
- </div>
- <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
- <script src="{% static '/lib/bootstrap-3.3.7/js/bootstrap.js' %}"></script>
- <script src="{% static '/lib/layui/layui.all.js' %}"></script>
- <script src="{% static '/lib/js/newdistpicker.js' %}" type="text/javascript" charset="utf-8"></script>
- <script src="{% static '/lib/js/main.js' %}" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript">
- $.ajaxSetup({
- data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
- });
- </script>
- <script src="{% static '/js/usermanage/add_usermanage.js' %}?versions=0.5.0" type="text/javascript"></script>
- </body>
- </html>
|