]> git.llucax.com Git - z.facultad/75.52/sercom.git/blob - sercom/subcontrollers/grupo/templates/list.kid
Fix footer en IE y Firefox.
[z.facultad/75.52/sercom.git] / sercom / subcontrollers / grupo / 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>Curso</th>
15         <th>Nombre</th>
16         <th>Responsable</th>
17         <th>Operaciones</th>
18     </tr>
19     <tr py:for="record in records">
20         <td><span py:replace="record.curso.shortrepr()">curso</span></td>
21         <td><span py:replace="record.nombre">nombre</span></td>
22                                 <td><a py:if="record.responsable is not None" href="${tg.url('/alumno/show/'+str(record.responsable.alumno.id))}" py:content="record.responsable.alumno.shortrepr()"></a></td>
23                                 <td>
24                                         <a href="${tg.url('/grupo/show/%d' % record.id)}">Ver</a>
25                                         <a href="${tg.url('/grupo/edit/%d' % record.id)}">Editar</a>
26                                         <a href="${tg.url('/grupo/delete/%d' % record.id)}" onclick="if (confirm('${_(u'Estás seguro? Tal vez sólo quieras desactivarlo mejor...')}')) { var f = document.createElement('form'); this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href; f.submit(); };return false;">Eliminar</a>
27                                 </td>
28     </tr>
29 </table>
30
31 <br/>
32 <a href="${tg.url('/grupo/new')}">Agregar</a>
33
34 <div py:for="page in tg.paginate.pages">
35     <a py:if="page != tg.paginate.current_page"
36         href="${tg.paginate.get_href(page)}">${page}</a>
37     <b py:if="page == tg.paginate.current_page">${page}</b>
38 </div>
39
40 </body>
41 </html>
42
43 <!-- vim: set et sw=4 sts=4 : -->