jumpserver/templates/juser/user_add.html

122 lines
7.1 KiB
HTML
Raw Normal View History

2015-01-03 14:42:46 +00:00
{% extends 'base.html' %}
2015-01-03 14:24:34 +00:00
{% block content %}
2015-01-03 15:10:09 +00:00
{% include 'nav_cat_bar.html' %}
2015-01-05 14:35:25 +00:00
<div class="wrapper wrapper-content animated fadeInRight">
2015-01-03 14:24:34 +00:00
<div class="row">
2015-01-05 15:58:51 +00:00
<div class="col-lg-10">
2015-01-03 14:24:34 +00:00
<div class="ibox float-e-margins">
<div class="ibox-title">
2015-01-05 15:55:05 +00:00
<h5>填写基本信息 <small> Add user info.</small></h5>
2015-01-03 14:24:34 +00:00
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
2015-01-05 15:52:25 +00:00
<li><a href="#">未启用 1</a>
2015-01-03 14:24:34 +00:00
</li>
2015-01-05 15:52:25 +00:00
<li><a href="#">未启用 2</a>
2015-01-03 14:24:34 +00:00
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content">
2015-01-05 15:46:13 +00:00
<form method="get" class="form-horizontal">
2015-01-06 15:10:13 +00:00
<div class="form-group">
<label for="j_username" class="col-sm-2 control-label">用户名<span class="red-fonts">*</span></label>
<div class="col-sm-8">
<input id="j_username" name="username" placeholder="Username" type="text" class="form-control">
</div>
2015-01-05 15:46:13 +00:00
</div>
2015-01-06 15:36:11 +00:00
<div class="hr-line-dashed"></div>
2015-01-06 15:10:13 +00:00
<div class="form-group">
<label for="j_password" class="col-sm-2 control-label">密码<span class="red-fonts">*</span></label>
<div class="col-sm-8">
<input id="j_password" name="j_password" placeholder="Password" type="password" class="form-control">
<span class="help-block m-b-none">
登陆web的密码
</span>
2015-01-05 15:46:13 +00:00
</div>
2015-01-03 14:24:34 +00:00
</div>
2015-01-06 15:36:11 +00:00
<div class="hr-line-dashed"></div>
2015-01-06 15:10:13 +00:00
<div class="form-group">
<label for="j_name" class="col-sm-2 control-label">姓名<span class="red-fonts">*</span></label>
<div class="col-sm-8">
<input id="j_name" name="j_name" placeholder="Name" type="text" class="form-control" >
</div>
2015-01-05 15:46:13 +00:00
</div>
2015-01-06 15:36:11 +00:00
<div class="hr-line-dashed"></div>
2015-01-06 15:10:13 +00:00
<div class="form-group">
<label for="j_email" class="col-sm-2 control-label">Email</label>
<div class="col-sm-8">
<input id="j_email" name="j_email" type="email" placeholder="Email" class="form-control">
</div>
2015-01-05 15:46:13 +00:00
</div>
2015-01-06 15:36:11 +00:00
<div class="hr-line-dashed"></div>
2015-01-06 15:10:13 +00:00
<div class="form-group">
<label for="j_group" class="col-lg-2 control-label">属组<span class="red-fonts">*</span></label>
<div class="col-sm-8">
2015-01-06 15:21:07 +00:00
<select id="j_group" name="j_group" class="form-control m-b" multiple>
2015-01-10 05:10:44 +00:00
{% for group in groups %}
{% if forloop.first %}
<option value="{{ group.id }}" selected>group.name</option>
{% endif %}
<option value="{{ group.id }}">group.name</option>
{% endfor %}
2015-01-06 15:10:13 +00:00
</select>
</div>
2015-01-05 15:46:13 +00:00
</div>
2015-01-06 15:36:11 +00:00
<div class="hr-line-dashed"></div>
2015-01-06 15:10:13 +00:00
<div class="form-group">
<label for="j_role" class="col-lg-2 control-label">角色<span class="red-fonts">*</span></label>
<div class="col-sm-8">
<select id="j_role" name="j_role" class="form-control m-b">
2015-01-10 05:10:44 +00:00
{% for r, role in roles.items %}
<option value="{{ r }}">{{ role }}</option>
{% endfor %}
2015-01-06 15:10:13 +00:00
</select>
2015-01-06 15:21:07 +00:00
</div>
2015-01-05 15:46:13 +00:00
</div>
2015-01-06 15:36:11 +00:00
<div class="hr-line-dashed"></div>
2015-01-06 15:10:13 +00:00
<div class="form-group">
2015-01-10 05:10:44 +00:00
<label for="j_ldap_pwd" class="col-sm-2 control-label">SSH密码</label>
2015-01-05 15:58:51 +00:00
<div class="col-sm-8">
2015-01-06 15:10:13 +00:00
<input id="j_ldap_pwd" name="j_ldap_pwd" type="password" placeholder="LDAP Password" class="form-control">
2015-01-10 05:10:44 +00:00
<span class="help-block m-b-none">
如果使用password方式该密码是用户在后端服务器的密码
</span>
2015-01-05 15:46:13 +00:00
</div>
</div>
2015-01-06 15:36:11 +00:00
<div class="hr-line-dashed"></div>
2015-01-06 15:21:07 +00:00
<div class="form-group"><label class="col-sm-2 control-label">是否启用</label>
2015-01-05 15:46:13 +00:00
2015-01-05 15:58:51 +00:00
<div class="col-sm-8">
2015-01-06 15:21:07 +00:00
<div class="radio i-checks">
2015-01-06 15:33:49 +00:00
<label><input type="radio" value="1" name="j_is_active" checked>启用 </label>
2015-01-03 14:24:34 +00:00
</div>
2015-01-06 15:21:07 +00:00
<div class="radio i-checks">
<label><input type="radio" value="0" name="j_is_active">禁用 </label>
2015-01-03 14:24:34 +00:00
</div>
2015-01-05 15:46:13 +00:00
</div>
</div>
2015-01-06 15:36:11 +00:00
<div class="hr-line-dashed"></div>
2015-01-05 15:46:13 +00:00
<div class="form-group">
<div class="col-sm-4 col-sm-offset-2">
2015-01-06 15:21:07 +00:00
<button class="btn btn-white" type="submit">取消</button>
<button id="submit_button" class="btn btn-primary" type="submit">确认保存</button>
2015-01-05 15:46:13 +00:00
</div>
</div>
2015-01-03 14:24:34 +00:00
</form>
</div>
</div>
2015-01-05 14:35:25 +00:00
</div>
2015-01-03 14:24:34 +00:00
</div>
2015-01-05 13:29:49 +00:00
</div>
2015-01-03 14:24:34 +00:00
{% endblock %}