[Alba-desarrollo] SVN Alba r6144 - in prosistem/alba/trunk/alba: apps/principal/modules apps/principal/modules/alumno/actions apps/principal/modules/alumno/config apps/principal/modules/alumno/templates apps/principal/modules/cuenta/templates apps/principal/modules/legajopedagogico/templates apps/principal/modules/legajosalud apps/principal/modules/legajosalud/actions apps/principal/modules/legajosalud/config apps/principal/modules/legajosalud/templates apps/principal/modules/legajosalud/validate config web/images/small

commits en pressenter.com.ar commits en pressenter.com.ar
Lun Mayo 4 21:59:48 CEST 2009


Author: josx
Date: 2009-05-04 16:59:48 -0300 (Mon, 04 May 2009)
New Revision: 6144

Added:
   prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/
   prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/actions/
   prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/actions/actions.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/config/
   prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/config/security.yml
   prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/config/view.yml
   prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/
   prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/_edit_actions.php
   prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/editSuccess.php
   prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/verLegajoSuccess.php
   prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/validate/
   prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/validate/save.yml
   prosistem/alba/trunk/alba/web/images/small/legajosalud.png
Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions/actions.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/alumno/config/generator.yml
   prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/_list_td_actions.php
   prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/listSuccess.php
   prosistem/alba/trunk/alba/apps/principal/modules/cuenta/templates/verCompletaSuccess.php
   prosistem/alba/trunk/alba/apps/principal/modules/legajopedagogico/templates/indexSuccess.php
   prosistem/alba/trunk/alba/config/schema.yml
Log:
Agregando el modulo legajo de salud para los alumnos

Modified: prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions/actions.class.php	2009-05-04 18:38:26 UTC (rev 6143)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions/actions.class.php	2009-05-04 19:59:48 UTC (rev 6144)
@@ -48,6 +48,12 @@
     $this->redirect( 'legajopedagogico/verLegajo?aid='.$this->getRequestParameter('id'));
   }
 
+
+  function executeLegajosalud() {
+    $this->redirect('legajosalud/verLegajo?aid='.$this->getRequestParameter('id'));
+  }
+
+
   /**
   * Ver las vacunas del alumno
   */

Modified: prosistem/alba/trunk/alba/apps/principal/modules/alumno/config/generator.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/alumno/config/generator.yml	2009-05-04 18:38:26 UTC (rev 6143)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/config/generator.yml	2009-05-04 19:59:48 UTC (rev 6144)
@@ -39,6 +39,7 @@
                 _delete: -
                 irCuenta:  { name: Ir a Cuenta, action: irCuenta, icon: next.png }
                 Vacunas: { name: Vacunas, action: vacunas, icon: jeringa.gif}
+                Salud: { name: Salud, action: legajosalud, icon: small/legajosalud.png }
                 asistencia: { name: Asistencia, action: asistencia, icon: small/asistencia.png }
                 legajo: { name: Legajo, action: legajo, icon: small/legajo.png }
             actions:

Modified: prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/_list_td_actions.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/_list_td_actions.php	2009-05-04 18:38:26 UTC (rev 6143)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/_list_td_actions.php	2009-05-04 19:59:48 UTC (rev 6144)
@@ -11,6 +11,7 @@
 )) ?></li>
   <li><?php echo link_to(image_tag('small/ir_a.png', array('alt' => __('Ir a Cuenta'), 'title' => __('Ir a Cuenta'))), 'cuenta/verCompleta?id='.$alumno->getFkCuentaId()) ?></li>
   <li><?php echo link_to(image_tag('jeringa.gif', array('alt' => __('Vacunas'), 'title' => __('Vacunas'))), 'alumno/vacunas?id='.$alumno->getId()) ?></li>
+  <li><?php echo link_to(image_tag('small/legajosalud.png', array('alt' => __('Legajo de Salud'), 'title' => __('Legajo de Salud'))), 'alumno/legajosalud?id='.$alumno->getId()) ?></li>
   <li><?php echo link_to(image_tag('small/asistencia.png', array('alt' => __('Asistencia'), 'title' => __('Asistencia'))), 'alumno/asistencia?id='.$alumno->getId()) ?></li>
   <li><?php echo link_to(image_tag('small/legajo.png', array('alt' => __('Legajo'), 'title' => __('Legajo'))), 'alumno/legajo?id='.$alumno->getId()) ?></li>
   <li><?php echo link_to(image_tag('small/boletin.png',array("title"=>"Ver Bolet&iacute;n")), 'boletin/mostrar?alumno_id='. $alumno->getId(),'target=_blank') ?></li>

Modified: prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/listSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/listSuccess.php	2009-05-04 18:38:26 UTC (rev 6143)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/listSuccess.php	2009-05-04 19:59:48 UTC (rev 6144)
@@ -65,4 +65,4 @@
 <div id="sf_admin_footer">
 <?php include_partial('alumno/list_footer') ?>
 </div>
-</div>
\ No newline at end of file
+</div>

Modified: prosistem/alba/trunk/alba/apps/principal/modules/cuenta/templates/verCompletaSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/cuenta/templates/verCompletaSuccess.php	2009-05-04 18:38:26 UTC (rev 6143)
+++ prosistem/alba/trunk/alba/apps/principal/modules/cuenta/templates/verCompletaSuccess.php	2009-05-04 19:59:48 UTC (rev 6144)
@@ -72,6 +72,9 @@
         <li>
             <?php echo link_to(image_tag('jeringa.gif',array("title"=>"Vacunas")), 'alumno/Vacunas?id='. $alumno->getID()) ?>
         </li>
+        <li>
+            <?php echo link_to(image_tag('small/legajosalud.png',array("title"=>"Salud")), 'alumno/Legajosalud?id='. $alumno->getID()) ?>
+        </li>
          <li>
             <?php echo link_to(image_tag('small/asistencia.png',array("title"=>"Asistencias")), 'alumno/Asistencia?id='. $alumno->getID()) ?>
         </li>

Modified: prosistem/alba/trunk/alba/apps/principal/modules/legajopedagogico/templates/indexSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/legajopedagogico/templates/indexSuccess.php	2009-05-04 18:38:26 UTC (rev 6143)
+++ prosistem/alba/trunk/alba/apps/principal/modules/legajopedagogico/templates/indexSuccess.php	2009-05-04 19:59:48 UTC (rev 6144)
@@ -75,6 +75,8 @@
   &nbsp;    
     <li><?php echo link_to(image_tag('jeringa.gif', array('alt' => __('Vacunas'), 'title' => __('Vacunas'))), 'alumno/vacunas?id='.$alumno->getId()); ?></li>
   &nbsp;    
+    <li><?php echo link_to(image_tag('small/legajosalud.png', array('alt' => __('Legajo de Salud'), 'title' => __('Legajo de Salud'))), 'alumno/legajosalud?id='.$alumno->getId()); ?></li>
+  &nbsp;    
     <li><?php echo link_to(image_tag('small/boletin.png',array("title"=>"Ver Bolet&iacute;n")), 'boletin/mostrar?alumno_id='. $alumno->getId(),'target=_blank') ?></li>        
     <li><?php echo link_to(image_tag('next.png', array('alt' => 'Cuenta', 'title' => 'Cuenta')), 'alumno/irCuenta?id='.$alumno->getFkCuentaId()); ?></li>
     </ul>

Added: prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/actions/actions.class.php	                        (rev 0)
+++ prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/actions/actions.class.php	2009-05-04 19:59:48 UTC (rev 6144)
@@ -0,0 +1,157 @@
+<?php
+
+/**
+ *    This file is part of Alba.
+ * 
+ *    Alba is free software; you can redistribute it and/or modify
+ *    it under the terms of the GNU General Public License as published by
+ *    the Free Software Foundation; either version 2 of the License, or
+ *    (at your option) any later version.
+ *
+ *    Alba is distributed in the hope that it will be useful,
+ *    but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *    GNU General Public License for more details.
+ *
+ *    You should have received a copy of the GNU General Public License
+ *    along with Alba; if not, write to the Free Software
+ *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+
+/**
+ * legajosalud Acciones
+ *
+ * @package    alba
+ * @author     José Luis Di Biase <josx en interorganic.com.ar>
+ * @author     Héctor Sanchez <hsanchez en pressenter.com.ar>
+ * @author     Fernando Toledo <ftoledo en pressenter.com.ar>
+ * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
+ * @filesource
+ * @license GPL
+ */
+
+class legajosaludActions extends sfActions
+{
+ /**
+  * Executes index action
+  *
+  * @param sfRequest $request A request object
+  */
+
+    public function executeVerLegajo() {
+        // inicializando variables
+        $aEntradaLegajo = array();
+        $alumno = "";
+
+        // tomando los datos del formulario
+        $alumno_id = $this->getRequestParameter('aid');
+        
+        if($alumno_id) {
+            $alumno = AlumnoPeer::retrieveByPk($alumno_id);
+
+            //traigo todas los items del legajo para el alumno
+            $criteria = new Criteria();
+            $criteria->add(LegajosaludPeer::FK_ALUMNO_ID, $alumno_id);
+            $aEntradaLegajo= LegajosaludPeer::doSelect($criteria);
+        }
+
+
+        // asignando variables para ser usadas en el template
+        $this->aEntradaLegajo = $aEntradaLegajo;
+        $this->alumno  = $alumno;
+    }
+
+    public function executeCreate (){
+        return $this->forward('legajosalud', 'edit');
+    }
+
+    public function executeSave ($request){
+        $this->legajosalud = $this->getLegajosaludOrCreate();
+        $this->updateLegajosaludFromRequest();
+        $this->legajosalud->setFkUsuarioId($this->getUser()->getAttribute('id'));   // guardo el usuario que hizo esta entrada
+        $this->saveLegajosalud($this->legajosalud);
+       
+        $this->getUser()->setFlash('notice', 'Your modifications have been saved');
+        if ($this->getRequestParameter('save_and_add')) {
+            return $this->redirect('legajosalud/create?aid='.$this->legajosalud->getFkAlumnoId());
+        } else  {
+            return $this->redirect('legajosalud/edit?aid='.$this->legajosalud->getFkAlumnoId().'&id='.$this->legajosalud->getId());
+        }
+
+    }
+
+    public function executeEdit() {
+        $this->alumno_id = $this->getRequestParameter('aid');
+        $this->legajosalud = $this->getLegajosaludOrCreate();
+        $this->alumno = AlumnoPeer::retrieveByPk($this->alumno_id);
+
+        // add javascripts
+        $this->getResponse()->addJavascript(sfConfig::get('sf_prototype_web_dir').'/js/prototype');
+        $this->getResponse()->addJavascript(sfConfig::get('sf_admin_web_dir').'/js/collapse');
+    }
+
+    public function handleErrorSave() {
+        $this->executeEdit();
+        $this->updateLegajosaludFromRequest();
+        $this->setTemplate('edit');
+        return sfView::SUCCESS;
+    }
+
+    protected function saveLegajosalud($legajosalud) {
+        $legajosalud->save();
+    }
+
+    protected function updateLegajosaludFromRequest() {
+        $legajosalud = $this->getRequestParameter('legajosalud');
+
+        if (isset($legajosalud['fk_alumno_id'])) {
+            $this->legajosalud->setFkAlumnoId($legajosalud['fk_alumno_id']);
+        }
+
+        if (isset($legajosalud['titulo'])) {
+            $this->legajosalud->setTitulo($legajosalud['titulo']);
+        }
+
+        if (isset($legajosalud['fecha'])) {
+            if ($legajosalud['fecha']) {
+                list($d, $m, $y) = $this->getContext()->getI18N()->getDateForCulture($legajosalud['fecha'], $this->getUser()->getCulture());
+                $this->legajosalud->setFecha("$y-$m-$d");
+            } else {
+                $this->legajosalud->setFecha(null);        
+            }
+        }
+
+        if (isset($legajosalud['descripcion'])) {
+            $this->legajosalud->setDescripcion($legajosalud['descripcion']);
+        }
+
+        if (isset($legajopedagogico['fk_usuario_id'])) {
+            $this->legajopedagogico->setFkUsuarioId($legajopedagogico['fk_usuario_id']);
+        }
+    }
+
+    protected function getLegajosaludOrCreate($id = 'id') {
+        if (!$this->getRequestParameter('id', 0)) {
+            $legajosalud = new Legajosalud();
+        } else {
+            $legajosalud = LegajosaludPeer::retrieveByPk($this->getRequestParameter($id));
+            $this->forward404Unless($legajosalud);
+        }
+        return $legajosalud;
+    }
+
+    public function executeDelete(){
+        $alumno_id = $this->getRequestParameter('aid');
+        $this->legajosalud = LegajosaludPeer::retrieveByPk($this->getRequestParameter('id'));
+        $this->forward404Unless($this->legajosalud);
+        $this->deleteLegajosalud($this->legajosalud);
+        return $this->redirect("legajosalud/verLegajo?aid=".$alumno_id);
+    }
+
+    protected function deleteLegajosalud($legajosalud){
+        $legajosalud->delete();
+    }
+
+
+}

Added: prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/config/security.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/config/security.yml	                        (rev 0)
+++ prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/config/security.yml	2009-05-04 19:59:48 UTC (rev 6144)
@@ -0,0 +1,3 @@
+all:
+    is_secure: on
+    credentials: legajosalud

Added: prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/config/view.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/config/view.yml	                        (rev 0)
+++ prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/config/view.yml	2009-05-04 19:59:48 UTC (rev 6144)
@@ -0,0 +1,4 @@
+default:
+  stylesheets:    [..%SF_ADMIN_WEB_DIR%/css/main]
+
+

Added: prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/_edit_actions.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/_edit_actions.php	                        (rev 0)
+++ prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/_edit_actions.php	2009-05-04 19:59:48 UTC (rev 6144)
@@ -0,0 +1,9 @@
+<ul class="sf_admin_actions">
+      <li><?php echo submit_tag(__('save'), array (
+  'name' => 'save',
+  'class' => 'sf_admin_action_save',
+)) ?></li>
+    <li><?php echo button_to(__('list'), 'legajosalud/verLegajo?id='.$legajosalud->getId(), array (
+  'class' => 'sf_admin_action_list',
+)) ?></li>
+</ul>

Added: prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/editSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/editSuccess.php	                        (rev 0)
+++ prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/editSuccess.php	2009-05-04 19:59:48 UTC (rev 6144)
@@ -0,0 +1,92 @@
+<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>
+<h1><?php echo __('Editar Entrada en Legajo de Salud para '.$alumno->getApellido().' '.$alumno->getNombre(), array()) ?></h1>
+
+<div id="sf_admin_container">
+
+<?php if ($sf_user->hasFlash('notice')): ?>
+<div class="save-ok">
+<h2><?php echo __($sf_user->getFlash('notice')) ?></h2>
+</div>
+<?php endif; ?>
+
+<?php echo form_tag('legajosalud/save', 'id=sf_admin_edit_form name=sf_admin_edit_form multipart=true') ?>
+
+<?php echo object_input_hidden_tag($legajosalud, 'getId') ?>
+<?php echo input_hidden_tag('legajosalud[fk_alumno_id]', $alumno_id) ?>
+<?php echo input_hidden_tag('aid', $alumno_id) ?>
+
+
+<fieldset id="sf_fieldset_informacion_general" class="">
+<h2><?php echo __('Entrada') ?></h2>
+
+<div class="form-row">
+
+  <?php echo label_for('legajosalud[fecha]', __('Fecha:'), 'class="required" ') ?>
+  <div class="content<?php if ($sf_request->hasError('legajosalud{fecha}')): ?> form-error<?php endif; ?>">
+  <?php if ($sf_request->hasError('legajosalud{fecha}')): ?>
+    <?php echo form_error('legajopedagogico{fecha}', array('class' => 'form-error-msg')) ?>
+  <?php endif; ?>
+
+  <?php echo object_input_date_tag($legajosalud, 'getFecha', array (
+  'rich' => true,
+  'withtime' => true,
+  'calendar_button_img' => sfConfig::get('sf_admin_web_dir').'/images/date.png',
+  'control_name' => 'legajosalud[fecha]',
+)) ?>
+  </div> 
+</div>
+
+<div class="form-row">
+<?php echo label_for('legajosalud[titulo]', __('Titulo:'), 'class="required" ') ?>
+  <div class="content<?php if ($sf_request->hasError('legajosalud{titulo}')): ?> form-error<?php endif; ?>">
+  <?php if ($sf_request->hasError('legajosalud{titulo}')): ?>
+    <?php echo form_error('legajosalud{titulo}', array('class' => 'form-error-msg')) ?>
+  <?php endif; ?>
+
+  <?php echo object_input_tag($legajosalud, 'getTitulo', array (
+  'size' => 20,
+  'control_name' => 'legajosalud[titulo]',
+)) ?>
+    </div>
+
+</div>
+
+<div class="form-row">
+  <?php echo label_for('legajosalud[descripcion]', __('Descripci&oacute;n:'), 'class="required" ') ?>
+  <div class="content<?php if ($sf_request->hasError('legajosalud{descripcion}')): ?> form-error<?php endif; ?>">
+  <?php if ($sf_request->hasError('legajosalud{descripcion}')): ?>
+    <?php echo form_error('legajosalud{descripcion}', array('class' => 'form-error-msg')) ?>
+  <?php endif; ?>
+
+<?php 
+#echo object_input_tag($legajosalud, 'getDescripcion', array ( 'size' => 40, 'control_name' => 'legajosalud[descripcion]',));
+echo textarea_tag('legajosalud[descripcion]', ($legajosalud->getDescripcion())?stream_get_contents($legajosalud->getDescripcion()):"" ,'size=80x20');
+?>
+    </div>
+</div>
+</fieldset>
+
+<ul class="sf_admin_actions">
+      <li><?php echo submit_tag(__('save'), array (
+  'name' => 'save',
+  'class' => 'sf_admin_action_save',
+)) ?></li>
+    <li><?php echo button_to(__('Legajos'), 'legajosalud/verLegajo?aid='.$alumno_id, array (
+  'class' => 'sf_admin_action_list',
+)) ?></li>
+</ul>
+
+</form>
+
+<ul class="sf_admin_actions">
+      <li class="float-left"><?php if ($legajosalud->getId()): ?>
+<?php echo button_to(__('delete'), 'legajosalud/delete?id='.$legajosalud->getId(), array (
+  'post' => true,
+  'confirm' => __('Are you sure?'),
+  'class' => 'sf_admin_action_delete',
+)) ?><?php endif; ?>
+</li>
+  </ul>
+
+</div>
+

Added: prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/verLegajoSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/verLegajoSuccess.php	                        (rev 0)
+++ prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/templates/verLegajoSuccess.php	2009-05-04 19:59:48 UTC (rev 6144)
@@ -0,0 +1,62 @@
+<?php use_helper('I18N', 'Date') ?>
+<div id="sf_admin_container">
+<h1>Legajo de Salud de <?php echo $alumno->getApellido()." ".$alumno->getNombre()?> </h1>
+
+<div class="sf_admin_filters">
+</div>
+
+<table cellspacing="0" class="sf_admin_list">
+  <thead>
+  <tr>
+    <th id="sf_admin_list_th_fecha"> Fecha</th>
+    <th id="sf_admin_list_th_titulo"> T&iacute;tulo</th>
+    <th id="sf_admin_list_th_categoria">Descripci&oacute;n</th>
+    <th id="sf_admin_list_th_sf_actions">Acciones</th>
+  </tr>
+  </thead>
+
+  <tbody>
+<?php
+    $i = 0;
+    foreach($aEntradaLegajo as $entradaLegajo){
+?>
+  <tr class="sf_admin_row_0">
+    <td><?php echo format_date($entradaLegajo->getFecha(), "dd/MM/yy")?></td>
+    <td><?php echo $entradaLegajo->getTitulo()?></td>
+    <td><?php echo sprintf("%0.100s",stream_get_contents($entradaLegajo->getDescripcion())) ?></td>
+    <td>
+    <ul class="sf_admin_td_actions">
+    <li><?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/edit_icon.png', array('alt' => __('verLegajo'), 'title' => __('verLegajo'))), 'legajosalud/edit?aid='.$alumno->getId().'&id='.$entradaLegajo->getId()); ?>
+    <li><?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/delete_icon.png', array('alt' => __('borrar'), 'title' => __('borrar'))), 'legajosalud/delete?aid='.$alumno->getId().'&id='.$entradaLegajo->getId()); ?>
+    </ul>
+    </td>
+  </tr>
+  <?php } ?>
+  </tbody>
+
+
+<tfoot>
+  <tr>
+    <th colspan="9">
+    </th>
+  </tr>
+</tfoot>  
+</table>
+      <div class="float-right">
+          <ul class="sf_admin_actions">
+            <li>
+                <?php echo button_to('Nuevo', 'legajosalud/create?aid='.$alumno->getId(),'class=sf_admin_action_create'); ?>
+            </li>
+            <li>
+                <?php echo button_to('Listado Alumnos','alumno/list',"class=sf_admin_action_list")?>
+            </li>
+            <li>
+                <?php echo button_to('Ir a Cuenta','cuenta/verCompleta?id='.$alumno->getFkCuentaId(),"class=sf_admin_action_ir_a") ?>
+            </li>
+        </ul>
+      </div>
+
+</div>
+
+</div>
+<?php echo javascript_include_tag('varios/wz_tooltip.js'); ?>

Added: prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/validate/save.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/validate/save.yml	                        (rev 0)
+++ prosistem/alba/trunk/alba/apps/principal/modules/legajosalud/validate/save.yml	2009-05-04 19:59:48 UTC (rev 6144)
@@ -0,0 +1,39 @@
+methods:
+  post:
+    - "legajosalud{fecha}"
+    - "legajosalud{titulo}"
+    - "legajosalud{descripcion}"
+
+fillin:
+    enabled:       on
+      
+names:
+    legajosalud{fecha}:
+        required:     Yes
+        required_msg: El campo fecha es obligatorio
+        validators: validarFecha
+
+    legajosalud{titulo}:
+        required:     Yes
+        required_msg: El campo titulo es obligatorio
+        validators: caracteresMaximos128
+
+    legajosalud{descripcion}:
+        required:     No
+
+caracteresMaximos255:
+    class:  sfStringValidator
+    param:
+        max: 255
+        max_error: La maxima cantidad de caracteres permitida es de 255
+
+caracteresMaximos128:
+    class:  sfStringValidator
+    param:
+        max: 128
+        max_error: La maxima cantidad de caracteres permitida es de 128
+
+validarFecha:
+    class:           albaDateValidator
+    param:
+        date_error:    EL campo debe ser una fecha

Modified: prosistem/alba/trunk/alba/config/schema.yml
===================================================================
--- prosistem/alba/trunk/alba/config/schema.yml	2009-05-04 18:38:26 UTC (rev 6143)
+++ prosistem/alba/trunk/alba/config/schema.yml	2009-05-04 19:59:48 UTC (rev 6144)
@@ -1860,3 +1860,32 @@
     variables:
       type: VARCHAR
       size: 128
+  legajosalud: 
+    _attributes: 
+      idMethod: native
+    id: 
+      type: integer
+      required: true
+      autoIncrement: true
+      primaryKey: true
+    fk_alumno_id: 
+      type: integer
+      required: true
+      foreignTable: alumno
+      foreignReference: id
+    titulo: 
+      type: varchar
+      size: 255
+      required: true
+    descripcion:
+      type: blob
+      required: true
+    fecha: 
+      type: timestamp
+      required: true
+    fk_usuario_id: 
+      type: integer
+      required: true
+      foreignTable: usuario
+      foreignReference: id
+

Added: prosistem/alba/trunk/alba/web/images/small/legajosalud.png
===================================================================
(Binary files differ)


Property changes on: prosistem/alba/trunk/alba/web/images/small/legajosalud.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream




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