]> git.llucax.com Git - software/sercom.git/blob - sercom/subcontrollers/correccion/templates/list.kid
e361789156d9a9d426516ca9041e87711f8a7c65
[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 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
3     py:extends="'../../../templates/master.kid'">
4 <head>
5 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
6 <title>list</title>
7 </head>
8 <body>
9
10 <h1>Administración de <span py:replace="namepl">Objetos</span></h1>
11
12 <table class="list">
13     <tr>
14         <th>Instancia de Entrega</th>
15         <th>Entregador</th>
16         <th>Entregas</th>
17         <th>Corrector</th>
18         <th>Asignado</th>
19         <th>Corregido</th>
20         <th>Corregido</th>
21                                 <th>Nota</th>
22     </tr>
23     <tr py:for="record in records">
24         <td><span py:replace="record.instancia.shortrepr()">usuario</span></td>
25         <td><span py:replace="record.entregador.shortrepr()">nombre</span></td>
26         <td><span py:replace="len(record.entregas)">email</span></td>
27         <td><span py:replace="record.corrector.shortrepr()">telefono</span></td>
28         <td><span py:replace="record.asignado">nota</span></td>
29         <td><span py:replace="record.corregido">observaciones</span></td>
30         <td><span py:replace="record.nota">observaciones</span></td>
31                                 <td>
32                                         <a py:if="not record.corregido and not record.nota" href="${tg.url('/correccion/edit/%d' % record.id)}">Corregir</a>
33                                         <a py:if="record.corregido and record.nota" href="${tg.url('/correccion/edit/%d' % record.id)}">Editar</a>
34                                 </td>
35     </tr>
36 </table>
37
38 <div py:for="page in tg.paginate.pages">
39     <a py:if="page != tg.paginate.current_page"
40         href="${tg.paginate.get_href(page)}">${page}</a>
41     <b py:if="page == tg.paginate.current_page">${page}</b>
42 </div>
43
44 </body>
45 </html>
46
47 <!-- vim: set et sw=4 sts=4 : -->