]> git.llucax.com Git - software/sercom.git/blob - sercom/subcontrollers/enunciado/templates/show.kid
Bugfix: faltó el validator :S
[software/sercom.git] / sercom / subcontrollers / enunciado / templates / show.kid
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 <?python from sercom.model import TareaPrueba, TareaFuente ?>
4 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
5     py:extends="'../../../templates/master.kid'">
6 <head>
7 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
8 <title>show</title>
9 </head>
10 <body>
11
12 <table>
13     <tr>
14         <th>Año-Cuatrimestre:</th>
15         <td><span py:replace="str(record.anio)+'-'+str(record.cuatrimestre)">nombre</span></td>
16     </tr>
17     <tr>
18         <th>Nombre:</th>
19         <td><span py:replace="record.nombre">nombre</span></td>
20     </tr>
21     <tr>
22         <th>Descripción:</th>
23                                 <td><span py:replace="record.descripcion">descripcion</span></td>
24     </tr>
25     <tr py:if="'admin' in identity.current.permissions">
26         <th>Autor:</th>
27                                 <td>
28                                         <a py:if="record.autorID is not None" href="${tg.url('/docente/show/%d' % record.autor.id)}"><span py:replace="record.autor.shortrepr()">autor</span></a></td>
29     </tr>
30     <tr py:if="'admin' in identity.current.permissions">
31         <th>Creado el:</th>
32                                 <td><span py:replace="record.creado">descripcion</span></td>
33     </tr>
34     <tr>
35         <th>Archivos:</th>
36                                 <td>
37            <a py:if="record.archivos" href="${tg.url('/enunciado/files/%d' % record.id)}">Bajar Enunciado</a>
38                                 </td>
39     </tr>
40     <tr>
41         <th>Tareas:</th>
42                                 <td>
43                                         <ul>
44                                                 <li py:for="t in record.tareas">
45                                                         <a py:if="isinstance(t, TareaFuente)" href="${tg.url('/tarea_fuente/show/%d' % t.id)}" py:content="t.shortrepr()"></a>
46                                                         <a py:if="isinstance(t, TareaPrueba)" href="${tg.url('/tarea_prueba/show/%d' % t.id)}" py:content="t.shortrepr()"></a>
47                                                 </li>
48                                         </ul>
49                                 </td>
50     </tr>
51     <tr>
52         <th>Casos de Prueba:</th>
53                                 <td>
54                                         <ul>
55                                                 <li py:for="t in record.casos_de_prueba" py:if="t.publico or 'admin' in identity.current.permissions" py:content="t.shortrepr()" />
56                                         </ul>
57                                 </td>
58     </tr>
59     <tr py:if="'admin' in identity.current.permissions">
60                                 <th>Ejercicios en los<br /> que es Usado:</th>
61                                 <td>
62                                         <ul>
63                                                 <li py:for="t in record.ejercicios" py:content="t.shortrepr()" />
64                                         </ul>
65                                 </td>
66     </tr>
67 </table>
68
69 <br/>
70 <a py:if="'admin' in identity.current.permissions" href="${tg.url('/enunciado/edit/%d' % record.id)}">Editar</a> |
71 <a href="javascript:window.history.go(-1);">Volver</a>
72
73 </body>
74 </html>