self.corregido, self.nota, self.observaciones)
def shortrepr(self):
+ if not self.corrector:
+ return '%s' % self.entrega.shortrepr()
return '%s,%s' % (self.entrega.shortrepr(), self.corrector.shortrepr())
#}}}
def show(self,id, **kw):
"""Show record in model"""
r = validate_get(id)
- if r.observaciones is None:
- r.obs = ''
- else:
- r.obs = publish_parts(r.observaciones, writer_name='html')['html_body']
return dict(name=name, namepl=namepl, record=r)
@expose(template='kid:%s.templates.entregas' % __name__)
<td><span py:replace="record.condicional">fecha corregido</span></td>
<td><a py:if="record.tutor" href="${tg.url('/docente/show/%d' % record.tutor.id)}" py:content="record.tutor.shortrepr()">Tutor</a></td>
<td>
- <a href="${tg.url('/correccion/show/%d' % record.id)}">Ver</a>
+ <a href="${tg.url('/alumno_inscripto/show/%d' % record.id)}">Ver</a>
</td>
</tr>
</table>
--- /dev/null
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
+ py:extends="'../../../templates/master.kid'">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
+<title>show</title>
+</head>
+<body>
+
+<table class="show">
+ <tr>
+ <th>Curso:</th>
+ <td><span py:replace="record.curso.shortrepr()">padrón</span></td>
+ </tr>
+ <tr>
+ <th>Alumno:</th>
+ <td><span py:replace="record.alumno.shortrepr()">nombre</span></td>
+ </tr>
+ <tr>
+ <th>Condicional::</th>
+ <td><span py:replace="record.condicional">email</span></td>
+ </tr>
+ <tr>
+ <th>Tutor:</th>
+ <td><span py:if="record.tutor" py:replace="record.tutor.shortrepr()">tutor</span></td>
+ </tr>
+ <tr>
+ <th>Responsabilidades:</th>
+ <td>
+ <ul>
+ <li py:for="i in record.responsabilidades">
+ ${i.shortrepr()}
+ </li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <th>Grupos a los que Pertenece:</th>
+ <td>
+ <ul>
+ <li py:for="i in record.membresias">
+ ${i.grupo.shortrepr()}
+ </li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <th>Entregas realizadas:</th>
+ <td>
+ <ul>
+ <li py:for="i in record.entregas">
+ ${i.shortrepr()}
+ </li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <th>Correcciones :</th>
+ <td>
+ <ul>
+ <li py:for="i in record.correcciones">
+ ${i.shortrepr()}
+ </li>
+ </ul>
+ </td>
+ </tr>
+</table>
+
+<br/>
+<a href="${tg.url('/alumno/edit/%d' % record.id)}">Editar</a> |
+<a href="${tg.url('/alumno/list')}">Volver</a>
+
+</body>
+</html>