޸user_add.html

This commit is contained in:
guanghongwei
2015-01-10 13:10:44 +08:00
parent 0c30e8fd53
commit 609b0160f7
2 changed files with 31 additions and 8 deletions

View File

@@ -63,8 +63,12 @@
<label for="j_group" class="col-lg-2 control-label">属组<span class="red-fonts">*</span></label>
<div class="col-sm-8">
<select id="j_group" name="j_group" class="form-control m-b" multiple>
<option selected>Test1</option>
<option>Test2</option>
{% for group in groups %}
{% if forloop.first %}
<option value="{{ group.id }}" selected>group.name</option>
{% endif %}
<option value="{{ group.id }}">group.name</option>
{% endfor %}
</select>
</div>
</div>
@@ -73,16 +77,20 @@
<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">
<option>Test role</option>
<option selected>Test role</option>
{% for r, role in roles.items %}
<option value="{{ r }}">{{ role }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group">
<label for="j_ldap_pwd" class="col-sm-2 control-label">LDAP密码<span class="red-fonts">*</span></label>
<label for="j_ldap_pwd" class="col-sm-2 control-label">SSH密码</label>
<div class="col-sm-8">
<input id="j_ldap_pwd" name="j_ldap_pwd" type="password" placeholder="LDAP Password" class="form-control">
<span class="help-block m-b-none">
如果使用password方式该密码是用户在后端服务器的密码
</span>
</div>
</div>
<div class="hr-line-dashed"></div>
@@ -111,6 +119,4 @@
</div>
</div>
</script>
{% endblock %}