Commit fbde8d42 authored by guanghongwei's avatar guanghongwei

--broken encoding: IBM420_ltr

parent 8875cb2f
......@@ -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)
......
@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 %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment