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

commits en pressenter.com.ar commits en pressenter.com.ar
Lun Jul 2 21:39:24 CEST 2007


Author: hsanchez
Date: 2007-07-02 16:39:22 -0300 (Mon, 02 Jul 2007)
New Revision: 4805

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:
Empezando a crear el template para ver las actividades del 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-02 19:38:57 UTC (rev 4804)
+++ prosistem/alba/trunk/alba/apps/principal/modules/docente/actions/actions.class.php	2007-07-02 19:39:22 UTC (rev 4805)
@@ -38,7 +38,10 @@
     }
 
     function executeActividadesPorDocente() {
-        $this->redirect('relActividadDocente/list?filters%5Bfk_docente_id%5D='.$this->getRequestParameter('id').'&filter=filtrar');
+        $this->id_docente = $this->getRequestParameter('id');
+        $this->docente = DocentePeer::RetrieveByPK($this->id_docente);
+
+        //$this->redirect('relActividadDocente/list?filters%5Bfk_docente_id%5D='.$this->getRequestParameter('id').'&filter=filtrar');
     }
 
     function executeHorariosPorDocente() {

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-02 19:38:57 UTC (rev 4804)
+++ prosistem/alba/trunk/alba/apps/principal/modules/docente/templates/actividadesPorDocenteSuccess.php	2007-07-02 19:39:22 UTC (rev 4805)
@@ -0,0 +1,54 @@
+<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>
+
+<?php use_stylesheet('/sf/sf_admin/css/main') ?>
+
+<?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 __('Informacion general') ?></h2>
+
+
+<div class="form-row">
+
+  <?php $value = object_input_tag($docente, 'getApellido', array (
+  'size' => 64,
+  'control_name' => 'docente[apellido]',
+)); echo $value ? $value : '&nbsp;' ?>
+    </div>
+</div>
+
+<div class="form-row">
+
+  <?php $value = object_input_tag($docente, 'getNombre', array (
+  'size' => 64,
+  'control_name' => 'docente[nombre]',
+)); echo $value ? $value : '&nbsp;' ?>
+    </div>
+</div>
+
+
+<div class="form-row">
+
+  <?php $value = object_admin_double_list($docente, 'getActividades', array (
+  'control_name' => 'docente[actividades]',
+  'through_class' => 'RelActividadDocente',
+)); echo $value ? $value : '&nbsp;' ?>
+    </div>
+</div>
+
+</fieldset>
+
+
+</form>
+




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