ÐÞ¸Äbug

pull/6/head
guanghongwei 10 years ago
parent 8875cb2f9e
commit fbde8d42fe

@ -106,6 +106,7 @@ def user_add(request):
name = request.POST.get('name', None)
email = request.POST.get('email', '')
groups = request.POST.getlist('groups', None)
groups_str = ' '.join(groups)
role_post = request.POST.get('role', None)
ssh_pwd = request.POST.get('ssh_pwd', None)
ssh_key_pwd1 = request.POST.get('ssh_key_pwd1', None)

@ -1,10 +1,5 @@
@import url("//fonts.useso.com/css?family=Open+Sans:300,400,600,700&lang=en");
/*
*
* INSPINIA - Responsive Admin Theme
* Copyright 2014 Webapplayers.com
*
*/
h1,
h2,
h3,

@ -73,7 +73,7 @@
<div class="col-sm-8">
<select id="groups" name="groups" class="form-control m-b" multiple>
{% for group in all_group %}
{% if groups and group.id in groups %}
{% if group.id in groups_str %}
<option value="{{ group.id }}" selected>{{ group.name }}</option>
{% else %}
{% if forloop.first %}

Loading…
Cancel
Save