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>
14 <th title="Activo">A</th>
22 <tr py:for="record in records">
23 <td><input type="checkbox" onclick="var f =
24 document.createElement('form'); this.parentNode.appendChild(f);
25 f.method = 'POST'; f.action = '${tg.url('/alumno/activate/%d/%d' % (record.id, int(not record.activo)))}';
26 f.submit(); return false;" py:attrs="checked=tg.checker(record.activo)" /></td>
27 <td><span py:replace="record.usuario">usuario</span></td>
28 <td><span py:replace="record.nombre">nombre</span></td>
29 <td><a py:if="record.email" href="mailto:${record.email}"><span py:replace="tg.summarize(record.email, 30)">email</span></a></td>
30 <td><span py:replace="tg.summarize(record.telefono, 12)">telefono</span></td>
31 <td><span py:replace="record.nota">nota</span></td>
32 <td><a href="${tg.url('/alumno/show/%d' % record.id)}">Ver</a>
33 <a href="${tg.url('/alumno/edit/%d' % record.id)}">Editar</a>
34 <a href="${tg.url('/alumno/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></td>
39 <a href="${tg.url('/alumno/new')}">Agregar</a>
40 <a href="${tg.url('/alumno/from_file')}">Agregar desde Archivo</a>
42 <div py:for="page in tg.paginate.pages">
43 <a py:if="page != tg.paginate.current_page"
44 href="${tg.paginate.get_href(page)}">${page}</a>
45 <b py:if="page == tg.paginate.current_page">${page}</b>
51 <!-- vim: set et sw=4 sts=4 : -->