[Alba-desarrollo] SVN Alba r4825 - in prosistem/alba/trunk/alba/apps/principal/modules/docente: actions templates

commits en pressenter.com.ar commits en pressenter.com.ar
Mie Jul 18 18:39:51 CEST 2007


Author: hsanchez
Date: 2007-07-18 13:39:49 -0300 (Wed, 18 Jul 2007)
New Revision: 4825

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/docente/actions/actions.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/docente/templates/actividadesPorDocenteSuccess.php
Log:
Modificando las lista de actividades por docente

Modified: prosistem/alba/trunk/alba/apps/principal/modules/docente/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/docente/actions/actions.class.php	2007-07-18 15:29:20 UTC (rev 4824)
+++ prosistem/alba/trunk/alba/apps/principal/modules/docente/actions/actions.class.php	2007-07-18 16:39:49 UTC (rev 4825)
@@ -44,6 +44,10 @@
             $this->forward404();
         }
 
+        $c  = New Criteria();
+        $c->Add(RelActividadDocentePeer::FK_DOCENTE_ID,$this->docente->getId());
+        $this->actividades = RelActividadDocentePeer::doSelectJoinActividad($c); 
+
         //$this->redirect('relActividadDocente/list?filters%5Bfk_docente_id%5D='.$this->getRequestParameter('id').'&filter=filtrar');
     }
 

Modified: prosistem/alba/trunk/alba/apps/principal/modules/docente/templates/actividadesPorDocenteSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/docente/templates/actividadesPorDocenteSuccess.php	2007-07-18 15:29:20 UTC (rev 4824)
+++ prosistem/alba/trunk/alba/apps/principal/modules/docente/templates/actividadesPorDocenteSuccess.php	2007-07-18 16:39:49 UTC (rev 4825)
@@ -1,24 +1,10 @@
 <?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>
-
 <?php use_stylesheet('/sf/sf_admin/css/main') ?>
 <div id="sf_admin_container">
-<?php
-// auto-generated by sfPropelAdmin
-// date: 2007/07/02 12:48:13
-?>
-<?php echo form_tag('docente/edit', array(
-  'id'        => 'sf_admin_edit_form',
-  'name'      => 'sf_admin_edit_form',
-  'multipart' => true,
-  'onsubmit'  => 'double_list_submit(); return true;'
-)) ?>
-
 <?php echo object_input_hidden_tag($docente, 'getId') ?>
 
 <fieldset id="sf_fieldset_informacion_general" class="">
 <h2><?php echo __('Actividades/Materias por Docente') ?></h2>
-
-
 <div class="form-row">
 Apellido y Nombre:  
 <?php echo object_input_tag($docente, 'getApellido', array (
@@ -32,23 +18,35 @@
   'readonly' => 'true'));
 ?>
 </div>
-
-
-<div class="form-row">
-  <?php 
-  echo object_admin_double_list($docente, 'getActividades', array (
-  'control_name' => 'docente[actividades]',
-  'through_class' => 'RelActividadDocente',
-));
+<div id="sf_admin_content">
+<table cellspacing="0" class="sf_admin_list">
+  <thead>
+  <tr>
+    <th id="sf_admin_list_th_materia">Materias</th>
+  </tr>
+  </thead>
+  <tbody>
+<?php
+  foreach($actividades as $actividad){
 ?>
-</div>
-
-</fieldset>
-
+  <tr class="sf_admin_row_0">
+    <td><?echo $actividad->getActividad()->getNombre();?></td>
+  </tr>
+  <?}?>
+  </tbody>
+<tfoot>
+  <tr>
+    <th colspan="9">
+      <div class="float-right">
+      </div>
+    </th>
+  </tr>
+</tfoot>  
+</table>
 <ul class="sf_admin_actions">
   <li><?php echo button_to(__('list'), 'docente/list?id='.$docente->getId(), array (
     'class' => 'sf_admin_action_list',
     )) ?></li>
-
-</form>
+</ul>
+</fieldset>
 </div>




Más información sobre la lista de distribución Alba-desarrollo