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'">
5 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
10 <h1>Administración de <span py:replace="namepl">Objetos</span></h1>
19 <tr py:for="record in records">
20 <td><a href="show/${record.id}"><span py:replace="record.nombre">nombre</span></a></td>
21 <td><span py:replace="tg.summarize(record.descripcion, 30)">descripción</span></td>
22 <td><a py:if="record.autorID is not None"
23 href="../docente/show/${record.autor.id}"><span
24 py:replace="tg.summarize(record.autor.shortrepr(), 30)">autor</span></a></td>
25 <td><a href="edit/${record.id}">Editar</a>
26 <a href="delete/${record.id}" onclick="if (confirm('${_(u'Estás seguro? Yo creo que no...')}')) { var f = document.createElement('form'); this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href; f.submit(); };return false;">Eliminar</a></td>
31 <a href="new">Agregar</a>
33 <div py:for="page in tg.paginate.pages">
34 <a py:if="page != tg.paginate.current_page"
35 href="${tg.paginate.get_href(page)}">${page}</a>
36 <b py:if="page == tg.paginate.current_page">${page}</b>
42 <!-- vim: set et sw=4 sts=4 : -->