1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <?python from turbogears import identity ?>
3 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
4 py:extends="'../../../templates/master.kid'">
6 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
11 <h1 py:if="'admin' in identity.current.permissions">Administración de <span py:replace="namepl">Objetos</span></h1>
12 <h1 py:if="'admin' not in identity.current.permissions"><span py:replace="namepl.capitalize()">Objetos</span></h1>
21 <th py:if="'admin' in identity.current.permissions">Tareas</th>
22 <th py:if="'admin' in identity.current.permissions" title="Casos de Prueba">CP</th>
25 <tr py:for="record in records">
26 <td align="center"><span py:replace="record.cuatrimestre">descripción</span></td>
27 <td align="center"><span py:replace="record.anio">descripción</span></td>
28 <td><a href="${tg.url('/enunciado/show/%d' % record.id)}"><span py:replace="record.nombre">nombre</span></a></td>
29 <td><span py:replace="tg.summarize(record.descripcion, 30)">descripción</span></td>
31 <a py:if="'admin' in identity.current.permissions and record.autorID is not None"
32 href="${tg.url('/docente/show/%d' % record.autor.id)}" py:content="tg.summarize(record.autor.shortrepr(), 30)">autor</a>
33 <span py:if="'admin' not in identity.current.permissions and record.autorID is not None"
34 py:replace="tg.summarize(record.autor.shortrepr(), 30)">autor</span>
36 <td align="center" py:if="'admin' in identity.current.permissions">
37 <a if="len(record.tareas)" href="${tg.url('/enunciado/show/%d' % record.id)}"><span
38 py:replace="len(record.tareas)">cant</span></a></td>
39 <td align="center" py:if="'admin' in identity.current.permissions"><span py:content="len(record.casos_de_prueba)" /></td>
41 <a py:if="'admin' in identity.current.permissions" href="${tg.url('/enunciado/caso_de_prueba/list/%d' % record.id)}">Casos de Prueba</a>
42 <a py:if="'admin' in identity.current.permissions" href="${tg.url('/enunciado/edit/%d' % record.id)}">Editar</a>
43 <a py:if="'admin' in identity.current.permissions" href="${tg.url('/enunciado/delete/%d' % 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>
44 <a py:if="record.archivos" href="${tg.url('/enunciado/files/%d' % record.id)}">Bajar Enunciado</a>
50 <a py:if="'admin' in identity.current.permissions" href="${tg.url('/enunciado/new')}">Agregar</a>
52 <div py:for="page in tg.paginate.pages">
53 <a py:if="page != tg.paginate.current_page"
54 href="${tg.paginate.get_href(page)}">${page}</a>
55 <b py:if="page == tg.paginate.current_page">${page}</b>
61 <!-- vim: set et sw=4 sts=4 : -->