Ver Fonte

update default css theme

Roberto Berto há 4 anos atrás
pai
commit
172083d927

+ 2 - 0
vycontrol/config/templates/config/users_list.html

@@ -30,12 +30,14 @@
     <table border="1" width="100%">
     <tr>
         <th>name</th>
+        <th>email</th>
         <th>group</th>
     </tr>
 
     {% for user in users %}
     <tr>
         <td>{{ user }}</td>
+        <td>{{ user.email }}</td>
         <td><select id="group-{{ user }}" name="group-{{ user }}"><option value="--remove--">None</option>
             {% if groups != False %}
                 {% for fkey in groups %}    

+ 1 - 7
vycontrol/config/views.py

@@ -83,20 +83,15 @@ def users_list(request):
                 try:
                     el_userid = User.objects.get(username=el_username) 
                 except User.DoesNotExist:
-                    print("zerou") 
                     return redirect('config:users_list')
 
-
-
                 try:
                     if el_userid.groups.exists():
                         for g in el_userid.groups.all():
                             el_userid.groups.remove(g)
                 except Group.DoesNotExist:
-                    print("zerou2") 
                     return redirect('config:users_list')
 
-                print("kkk", el_groupname, el_username) 
 
 
                 if el_groupname == "--remove--":
@@ -106,14 +101,13 @@ def users_list(request):
                     el_groupadd.user_set.add(el_userid)
                     has_group_add = has_group_add  + 1
 
-
-
     if has_group_add > 0:
         return redirect('config:users-list')
 
 
     user_groups = {}
     for user in users:
+        print(user.email)
         user_groups_list = user.groups.all()
         if len(user_groups_list) > 0:
             user_groups[str(user)] = str(user_groups_list[0])

+ 6 - 1
vycontrol/s/main.css

@@ -62,7 +62,8 @@ form.instancedefault {
 }
 
 #debug {
-    background-color: #ccccff;
+    background-color: #333;
+    color: #ddd;
     margin-top: 20px;
     margin-bottom: 20px;
 }
@@ -71,11 +72,15 @@ form.instancedefault {
     padding-top: 10px;
     padding-bottom: 10px;
     margin: 0;
+    color: #eee;
+
 }  
 #debug pre {
   font-size: 12px;
   padding-top: 0;   
   margin: 0;  
+  color: #ccc;
+
 }
 
 h1 {

+ 1 - 1
vycontrol/vycontrol/settings/production.py

@@ -20,5 +20,5 @@ EMAIL_USE_TLS = True
 
 
 # SECURITY WARNING: keep the secret key used in production secret!
-SECRET_KEY = '*wv2=o(o5$i2qim7yxras_7jf%n!*1rrzehv3o2f-ebsr@ba%4'
+SECRET_KEY = ''