]> git.llucax.com Git - z.facultad/75.52/sercom.git/blobdiff - sercom/subcontrollers/enunciado/templates/show.kid
Agregar fecha a entrega.
[z.facultad/75.52/sercom.git] / sercom / subcontrollers / enunciado / templates / show.kid
index 0f186341f2ea598f627e6376f47416836b68fbaa..5e7df77102531fbdd92639fd7e69e9bbec0fe594 100644 (file)
@@ -1,5 +1,6 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <?python from turbogears import identity ?>
+<?python from sercom.model import TareaPrueba, TareaFuente ?>
 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
     py:extends="'../../../templates/master.kid'">
 <head>
 <body>
 
 <table>
+    <tr>
+        <th>Año-Cuatrimestre:</th>
+        <td><span py:replace="str(record.anio)+'-'+str(record.cuatrimestre)">nombre</span></td>
+    </tr>
     <tr>
         <th>Nombre:</th>
         <td><span py:replace="record.nombre">nombre</span></td>
     </tr>
     <tr>
         <th>Descripción:</th>
-       <td><span py:replace="XML(record.desc)">descripcion</span></td>
+                               <td><span py:replace="record.descripcion">descripcion</span></td>
     </tr>
     <tr>
         <th>Autor:</th>
-       <td><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>
+                               <td><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>
+    </tr>
+    <tr>
+        <th>Creado el:</th>
+                               <td><span py:replace="record.creado">descripcion</span></td>
+    </tr>
+    <tr>
+        <th>Archivos:</th>
+                               <td>
+           <a py:if="record.archivos" href="${tg.url('/enunciado/files/%d' % record.id)}">Bajar Enunciado</a>
+                               </td>
+    </tr>
+    <tr>
+        <th>Tareas:</th>
+                               <td>
+                                       <ul>
+                                               <li py:for="t in record.tareas">
+                                                       <a py:if="isinstance(t, TareaFuente)" href="${tg.url('/tarea_fuente/show/%d' % t.id)}" py:content="t.shortrepr()"></a>
+                                                       <a py:if="isinstance(t, TareaPrueba)" href="${tg.url('/tarea_prueba/show/%d' % t.id)}" py:content="t.shortrepr()"></a>
+                                               </li>
+                                       </ul>
+                               </td>
+    </tr>
+    <tr>
+        <th>Casos de Prueba:</th>
+                               <td>
+                                       <ul>
+                                               <li py:for="t in record.casos_de_prueba" py:content="t.shortrepr()" />
+                                       </ul>
+                               </td>
+    </tr>
+    <tr py:if="'admin' in identity.current.permissions">
+                               <th>Ejercicios en los<br /> que es Usado:</th>
+                               <td>
+                                       <ul>
+                                               <li py:for="t in record.ejercicios" py:content="t.shortrepr()" />
+                                       </ul>
+                               </td>
     </tr>
 </table>
 
 <br/>
 <a py:if="'admin' in identity.current.permissions" href="${tg.url('/enunciado/edit/%d' % record.id)}">Editar</a> |
-<a href="${tg.url('/enunciado/list')}">Volver</a>
+<a href="javascript:window.history.go(-1);">Volver</a>
 
 </body>
 </html>