]> git.llucax.com Git - z.facultad/75.52/sercom.git/blob - sercom/widgets.py
error en new si no existe el alumno en el curso
[z.facultad/75.52/sercom.git] / sercom / widgets.py
1 # Custom useful widget
2 #
3
4 from turbogears import widgets
5
6 class CustomTextField(widgets.TextField):
7     """Un input con un div al lado para ponerle info"""
8     template = '''
9         <span xmlns:py="http://purl.org/kid/ns#">
10         <input  
11             type="text"  
12             name="${name}"  
13             class="${field_class}"  
14             id="${field_id}"  
15             value="${value}"  
16             py:attrs="attrs"  
17          />
18          <span id="${field_id}_info" />
19         </span>
20     '''