]> git.parisson.com Git - telemeta.git/commitdiff
fix styles
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 30 Dec 2013 22:09:58 +0000 (23:09 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 30 Dec 2013 22:10:18 +0000 (23:10 +0100)
telemeta/static/telemeta/css/telemeta.css
telemeta/views/admin.py
telemeta/views/core.py

index b2b51810509feacabf335023884a10cdde456391..355b822e8542b6618585edf8e556473390736102 100644 (file)
@@ -270,6 +270,11 @@ input[type=text], input[type=password], input.textwidget { padding: .25em .1em }
 input[type=text]:focus, input[type=password]:focus, input.textwidget:focus, textarea:focus {
     border-color: #aaa;
 }
+.infos input[type=text], .field input[type=text], .infos textarea{
+    outline: none !important;
+    width: 600px;
+}
+
 option { border-bottom: 1px dotted #d7d7d7; }
 fieldset { border: 1px solid #d7d7d7; padding: .5em; margin: 0 }
 fieldset.iefix { background: transparent; border: none; padding: 0; margin: 0 }
@@ -1224,11 +1229,6 @@ a:focus,div:focus{
     outline: #999 dotted 1px;  /*!important;*/
 }
 
-.infos input, .infos textarea{
-    outline: none !important;
-    width: 600px;
-}
-
 .related_media {
     border-top: 1px dotted #6a0307;
 }
@@ -1260,4 +1260,4 @@ a:focus,div:focus{
 .mod {
     width: 66%;
     float: left;
-}
\ No newline at end of file
+}
index c665a9e868d303a47cf5b61f0a0d9b812cb0de71..b4a5c19d38abd7b86adf58da09480042a2e271e2 100644 (file)
@@ -138,8 +138,9 @@ class AdminView(object):
         vars["enumeration_name"] = enumeration._meta.verbose_name
         vars["enumeration_record"] = record
         vars["enumeration_records"] = enumeration.objects.all()
-        vars['room'] = get_room(name=record._meta.verbose_name, content_type=content_type,
-                                   id=record.id)
+        vars['room'] = get_room(content_type=content_type,
+                                   id=record.id,
+                                   name=record.value)
         return render(request, 'telemeta/enumeration_edit_value.html', vars)
 
     @method_decorator(permission_required('telemeta.change_keyword'))
index 97cec18942e479a9793d7a99fe3025890e9cdab7..5cc102d1592f27709f7b21faabb296a97f6f1793 100644 (file)
@@ -260,7 +260,7 @@ def get_room(content_type=None, id=None, name=None):
     if not rooms:
         room = jqchat.models.Room.objects.create(content_type=content_type,
                                           object_id=id,
-                                          name=name[:20])
+                                          name=name[:254])
     else:
         room = rooms[0]
     return room