]> git.llucax.com Git - software/sercom.git/blobdiff - sercom/subcontrollers/enunciado/templates/show.kid
Muestro info basica de los comandos en los SHOW de Tareas
[software/sercom.git] / sercom / subcontrollers / enunciado / templates / show.kid
index 0f186341f2ea598f627e6376f47416836b68fbaa..fd43a938175277b1141ef9738a6eb7ee5a4e92cd 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 ?>
 <!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>
 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
     py:extends="'../../../templates/master.kid'">
 <head>
 <body>
 
 <table>
 <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>
     <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>
     </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>Archivo:</th>
+                               <td><span py:replace="record.archivo_name">descripcion</span></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>
+                               <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>
 
     </tr>
 </table>