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>
20 <th>Observaciones</th>
24 <tr py:for="record in records">
25 <td><input type="checkbox" onclick="var f =
26 document.createElement('form'); this.parentNode.appendChild(f);
27 f.method = 'POST'; f.action = '${tg.url('/docente/activate/%d/%d' % (record.id, int(not record.activo)))}';
28 f.submit(); return false;" py:attrs="checked=tg.checker(record.activo)" /></td>
29 <td><a href="${tg.url('/docente/show/%d' % record.id)}"><span py:replace="record.usuario">usuario</span></a></td>
30 <td><span py:replace="record.nombre">nombre</span></td>
31 <td><a py:if="record.email" href="mailto:${record.email}"><span py:replace="record.email">email</span></a></td>
32 <td><span py:replace="tg.summarize(record.telefono, 10)">telefono</span></td>
33 <td><span py:replace="record.nombrado">nombrado</span></td>
34 <td><span py:replace="tg.summarize(record.observaciones, 20)">observaciones</span></td>
35 <td><a py:if="len(record.enunciados)" href="${tg.url('/enunciado/list', autor=record.id)}"><span
36 py:replace="len(record.enunciados)">cant</span></a></td>
37 <td><a href="${tg.url('/docente/edit/%d' % record.id)}">Editar</a>
38 <a href="${tg.url('/docente/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>
43 <a href="${tg.url('/docente/new')}">Agregar</a>
46 <div py:if="len(tg.paginate.pages) > 1">
48 <div py:for="page in tg.paginate.pages" py:strip="True">
49 <a py:if="page != tg.paginate.current_page"
50 href="${tg.paginate.get_href(page)}">${page}</a>
51 <b py:if="page == tg.paginate.current_page">${page}</b>
58 <!-- vim: set et sw=4 sts=4 : -->