]> git.llucax.com Git - software/sercom.git/commitdiff
saco el table y pongo divs y ajusto un poco el layout del widget.
authorRicardo Markiewicz <rmarkie@fi.uba.ar>
Tue, 27 Feb 2007 20:01:44 +0000 (20:01 +0000)
committerRicardo Markiewicz <rmarkie@fi.uba.ar>
Tue, 27 Feb 2007 20:01:44 +0000 (20:01 +0000)
sercom/widgets.py

index 6379964ec1817575daf6c9c5808a3424f016f8de..d23199fbd9d5541a653b580a8c7902f0ba3b5a9f 100644 (file)
@@ -82,14 +82,14 @@ AlumnoMultiSelectAjax = '''
 
 class AlumnoMultiSelect(widgets.MultipleSelectField):
     template = '''
 
 class AlumnoMultiSelect(widgets.MultipleSelectField):
     template = '''
-    <table xmlns:py="http://purl.org/kid/ns#" style="border:none; width:0%;">  
-    <tr><td>
-    <input type="text" id="${field_id}_nuevo" />
+    <div style="width:250px" xmlns:py="http://purl.org/kid/ns#">  
+    <div>
+    <input type="text" id="${field_id}_nuevo" size="10" />
     <img src="/static/images/loading.gif" align="baseline" style="visibility:hidden;" id="${name}_loading" width="16px" height="16px" />
     <input type="button" id="_agregar" value="Agregar"
         onClick=" agregar_a_la_lista('${field_id}_nuevo', '${field_id}', '${name}_loading'); " />
     <img src="/static/images/loading.gif" align="baseline" style="visibility:hidden;" id="${name}_loading" width="16px" height="16px" />
     <input type="button" id="_agregar" value="Agregar"
         onClick=" agregar_a_la_lista('${field_id}_nuevo', '${field_id}', '${name}_loading'); " />
-    </td></tr>
-    <tr><td>
+    </div>
+    <div>
     <select  
         multiple="multiple"  
         size="${size}"  
     <select  
         multiple="multiple"  
         size="${size}"  
@@ -110,12 +110,12 @@ class AlumnoMultiSelect(widgets.MultipleSelectField):
         />  
         </optgroup>  
     </select>
         />  
         </optgroup>  
     </select>
-    </td></tr>
-    <tr><td align="center">
-    <input type="button" id="_sacar" value="Borrar"
+    </div>
+    <div align="center">
+    <input type="button" id="_sacar" value="Borrar" style="width:100%;"
         onClick="sacar_de_la_lista('${field_id}'); " />
         onClick="sacar_de_la_lista('${field_id}'); " />
-    </td></tr>
-    </table>
+    </div>
+    </div>
     '''
     javascript = [widgets.JSSource(AlumnoMultiSelectAjax)]
 
     '''
     javascript = [widgets.JSSource(AlumnoMultiSelectAjax)]