Browse Source

ÐÞ¸Äbug

pull/6/head
guanghongwei 10 years ago
parent
commit
b3444d2398
  1. 2
      juser/views.py
  2. 16
      templates/juser/user_add.html

2
juser/views.py

@ -58,7 +58,7 @@ def user_list(request):
def db_add_user(**kwargs):
user = User(**kwargs)
group_select = []
for group_id in groups:
for group_id in kwargs.get('groups', None):
group = UserGroup.objects.filter(id=group_id)
group_select.extend(group)
user.user_group = group_select

16
templates/juser/user_add.html

@ -50,7 +50,7 @@
<div class="col-sm-8">
<input id="j_ssh_key_pwd1" name="j_ssh_key_pwd1" placeholder="SSH Key Password" type="password" class="form-control">
<span class="help-block m-b-none">
登陆Jumpserver Terminal 使用SSH密钥的密ç 
登陆 Jumpserver 使用的SSH密钥的密ç 
</span>
</div>
</div>
@ -62,13 +62,6 @@
</div>
</div>
<div class="hr-line-dashed"></div>
<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>
</div>
<div class="hr-line-dashed"></div>
<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">
@ -105,6 +98,13 @@
</div>
</div>
<div class="hr-line-dashed"></div>
<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>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group"><label class="col-sm-2 control-label">是å¦å¯ç”¨</label>
<div class="col-sm-8">

Loading…
Cancel
Save