]> git.llucax.com Git - z.facultad/75.52/sercom.git/commitdiff
linkeo a data relacionada
authorRicardo Markiewicz <rmarkie@fi.uba.ar>
Thu, 1 Mar 2007 20:58:31 +0000 (20:58 +0000)
committerRicardo Markiewicz <rmarkie@fi.uba.ar>
Thu, 1 Mar 2007 20:58:31 +0000 (20:58 +0000)
sercom/subcontrollers/correccion/templates/list.kid

index aefbe0b4f16c0de12651460e8eecc33623e7da01..24a61f8c0e9a87c8615c37b538f89babbe70a40c 100644 (file)
@@ -1,4 +1,5 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<?python from sercom.model import Grupo, AlumnoInscripto ?>
 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
     py:extends="'../../../templates/master.kid'">
 <head>
     </tr>
     <tr py:for="record in records">
         <td><span py:replace="record.instancia.shortrepr()">usuario</span></td>
-        <td><span py:replace="record.entregador.shortrepr()">nombre</span></td>
+                               <td>
+                                       <a py:if="isinstance(record.entregador, Grupo)" href="${tg.url('/grupo/show/%d' % record.entregador.id)}" py:content="record.entregador.shortrepr()">nombre</a>
+                                       <a py:if="isinstance(record.entregador, AlumnoInscripto)" href="${tg.url('/alumno/show/%d' % record.entregador.alumno.id)}" py:content="record.entregador.shortrepr()">nombre</a>
+                               </td>
         <td><span py:replace="len(record.entregas)">email</span></td>
-        <td><span py:replace="record.corrector.shortrepr()">telefono</span></td>
+                               <td><a href="${tg.url('/docente/show/%d' % record.corrector.docente.id)}" py:content="record.corrector.shortrepr()">corrector</a></td>
         <td><span py:replace="record.asignado">nota</span></td>
         <td><span py:replace="record.corregido">observaciones</span></td>
         <td><span py:replace="record.nota">observaciones</span></td>