]> git.llucax.com Git - software/sercom.git/blob - sercom/subcontrollers/correccion/templates/list.kid
24a61f8c0e9a87c8615c37b538f89babbe70a40c
[software/sercom.git] / sercom / subcontrollers / correccion / templates / list.kid
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'">
5 <head>
6 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
7 <title>list</title>
8 </head>
9 <body>
10
11 <h1>Administración de <span py:replace="namepl">Objetos</span></h1>
12
13 <table class="list">
14     <tr>
15                                 <th><span title="Instancia de Entrega">IE</span></th>
16         <th>Entregador</th>
17         <th>Entregas</th>
18         <th>Corrector</th>
19         <th>Asignado</th>
20         <th>Corregido</th>
21         <th>Corregido</th>
22                                 <th>Nota</th>
23     </tr>
24     <tr py:for="record in records">
25         <td><span py:replace="record.instancia.shortrepr()">usuario</span></td>
26                                 <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>
29                                 </td>
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>
35                                 <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>
39                                 </td>
40     </tr>
41 </table>
42
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>
47 </div>
48
49 </body>
50 </html>
51
52 <!-- vim: set et sw=4 sts=4 : -->