]> git.llucax.com Git - software/sercom.git/blob - sercom/subcontrollers/enunciado/templates/show.kid
Permito ocultar cosas en el Menu para Entregador
[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>
26         <th>Autor:</th>
27                                 <td><a py:if="record.autorID is not None"
28                                         href="${tg.url('/docente/show/%d' % record.autor.id)}"><span py:replace="record.autor.shortrepr()">autor</span></a></td>
29     </tr>
30     <tr>
31         <th>Creado el:</th>
32                                 <td><span py:replace="record.creado">descripcion</span></td>
33     </tr>
34     <tr>
35         <th>Archivo:</th>
36                                 <td><span py:replace="record.archivo_name">descripcion</span></td>
37     </tr>
38     <tr>
39         <th>Tareas:</th>
40                                 <td>
41                                         <ul>
42                                                 <li py:for="t in record.tareas">
43                                                         <a py:if="isinstance(t, TareaFuente)" href="${tg.url('/tarea_fuente/show/%d' % t.id)}" py:content="t.shortrepr()"></a>
44                                                         <a py:if="isinstance(t, TareaPrueba)" href="${tg.url('/tarea_prueba/show/%d' % t.id)}" py:content="t.shortrepr()"></a>
45                                                 </li>
46                                         </ul>
47                                 </td>
48     </tr>
49     <tr>
50         <th>Casos de Prueba:</th>
51                                 <td>
52                                         <ul>
53                                                 <li py:for="t in record.casos_de_prueba" py:content="t.shortrepr()" />
54                                         </ul>
55                                 </td>
56     </tr>
57     <tr py:if="'admin' in identity.current.permissions">
58                                 <th>Ejercicios en los<br /> que es Usado:</th>
59                                 <td>
60                                         <ul>
61                                                 <li py:for="t in record.ejercicios" py:content="t.shortrepr()" />
62                                         </ul>
63                                 </td>
64     </tr>
65 </table>
66
67 <br/>
68 <a py:if="'admin' in identity.current.permissions" href="${tg.url('/enunciado/edit/%d' % record.id)}">Editar</a> |
69 <a href="javascript:window.history.go(-1);">Volver</a>
70
71 </body>
72 </html>