1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <?python from sercom.model import Grupo, AlumnoInscripto ?>
3 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
4 py:extends="'../../../templates/master.kid'">
6 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
11 <h1>Administración de <span py:replace="namepl">Objetos</span></h1>
15 <th><span title="Instancia de Entrega">IE</span></th>
24 <tr py:for="record in records">
25 <td><span py:replace="record.instancia.shortrepr()">usuario</span></td>
27 <a py:if="isinstance(record.entregador, Grupo)" href="${tg.url('/grupo/show/%d' % record.entregador.id)}" py:content="record.entregador.shortrepr()">nombre</a>
28 <a py:if="isinstance(record.entregador, AlumnoInscripto)" href="${tg.url('/alumno/show/%d' % record.entregador.alumno.id)}" py:content="record.entregador.shortrepr()">nombre</a>
30 <td><span py:replace="len(record.entregas)">email</span></td>
31 <td><a href="${tg.url('/docente/show/%d' % record.corrector.docente.id)}" py:content="record.corrector.shortrepr()">corrector</a></td>
32 <td><span py:replace="record.asignado">nota</span></td>
33 <td><span py:replace="record.corregido">observaciones</span></td>
34 <td><span py:replace="record.nota">observaciones</span></td>
36 <a href="${tg.url('/correccion/show/%d' % record.id)}">Ver</a>
37 <a py:if="not record.corregido and not record.nota" href="${tg.url('/correccion/edit/%d' % record.id)}">Corregir</a>
38 <a py:if="record.corregido or record.nota" href="${tg.url('/correccion/edit/%d' % record.id)}">Editar</a>
43 <div py:for="page in tg.paginate.pages">
44 <a py:if="page != tg.paginate.current_page"
45 href="${tg.paginate.get_href(page)}">${page}</a>
46 <b py:if="page == tg.paginate.current_page">${page}</b>
52 <!-- vim: set et sw=4 sts=4 : -->