[Alba-desarrollo] SVN Alba r4806 - in
prosistem/alba/trunk/alba/apps/principal/modules/docente:
actions templates
commits en pressenter.com.ar
commits en pressenter.com.ar
Lun Jul 2 22:40:47 CEST 2007
Author: hsanchez
Date: 2007-07-02 17:40:46 -0300 (Mon, 02 Jul 2007)
New Revision: 4806
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:
Primera version de las 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-02 19:39:22 UTC (rev 4805)
+++ prosistem/alba/trunk/alba/apps/principal/modules/docente/actions/actions.class.php 2007-07-02 20:40:46 UTC (rev 4806)
@@ -40,6 +40,9 @@
function executeActividadesPorDocente() {
$this->id_docente = $this->getRequestParameter('id');
$this->docente = DocentePeer::RetrieveByPK($this->id_docente);
+ if (!$this->docente){
+ $this->forward404();
+ }
//$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-02 19:39:22 UTC (rev 4805)
+++ prosistem/alba/trunk/alba/apps/principal/modules/docente/templates/actividadesPorDocenteSuccess.php 2007-07-02 20:40:46 UTC (rev 4806)
@@ -1,7 +1,7 @@
<?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
@@ -16,39 +16,39 @@
<?php echo object_input_hidden_tag($docente, 'getId') ?>
<fieldset id="sf_fieldset_informacion_general" class="">
-<h2><?php echo __('Informacion general') ?></h2>
+<h2><?php echo __('Actividades/Materias por Docente') ?></h2>
<div class="form-row">
-
- <?php $value = object_input_tag($docente, 'getApellido', array (
- 'size' => 64,
+Apellido y Nombre:
+<?php echo object_input_tag($docente, 'getApellido', array (
+ 'size' => 32,
'control_name' => 'docente[apellido]',
-)); echo $value ? $value : ' ' ?>
- </div>
-</div>
-
-<div class="form-row">
-
- <?php $value = object_input_tag($docente, 'getNombre', array (
- 'size' => 64,
+ 'readonly' => 'true' ));
+
+ echo object_input_tag($docente, 'getNombre', array (
+ 'size' => 32,
'control_name' => 'docente[nombre]',
-)); echo $value ? $value : ' ' ?>
- </div>
+ 'readonly' => 'true'));
+?>
</div>
<div class="form-row">
-
- <?php $value = object_admin_double_list($docente, 'getActividades', array (
+ <?php
+ echo object_admin_double_list($docente, 'getActividades', array (
'control_name' => 'docente[actividades]',
'through_class' => 'RelActividadDocente',
-)); echo $value ? $value : ' ' ?>
- </div>
+));
+?>
</div>
</fieldset>
+<ul class="sf_admin_actions">
+ <li><?php echo button_to(__('list'), 'docente/list?id='.$docente->getId(), array (
+ 'class' => 'sf_admin_action_list',
+ )) ?></li>
</form>
-
+</div>
Más información sobre la lista de distribución Alba-desarrollo