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>Administración de <span py:replace="namepl">Objetos</span></h1>
15 <th py:if="'admin' in identity.current.permissions">Curso</th>
21 <tr py:for="record in records">
22 <td py:if="'admin' in identity.current.permissions"><a href="${tg.url('/curso/show/%d' % record.id)}"><span py:replace="record.curso.shortrepr()">curso</span></a></td>
23 <td><span py:replace="record.numero">numero</span></td>
24 <td><a py:if="record.enunciadoID is not None"
25 href="${tg.url('/enunciado/show/%d' % record.enunciado.id)}"><span
26 py:replace="record.enunciado.shortrepr()">enunciado</span></a></td>
28 <span py:replace="tg.strbool(record.grupal)">grupal</span>
31 <a href="${tg.url('/ejercicio/entrega/%d' % record.id)}">Entregas</a>
32 <a py:if="'admin' in identity.current.permissions" href="${tg.url('/ejercicio/edit/%d' % record.id)}">Editar</a>
33 <a py:if="'admin' in identity.current.permissions" href="${tg.url('/ejercicio/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>
39 <a py:if="'admin' in identity.current.permissions" href="${tg.url('/ejercicio/new')}">Agregar</a>
40 <a py:if="parcial" href="${tg.url('/ejercicio/list')}">Ver todo</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 : -->