[Alba-desarrollo] SVN Alba r4232 - in prosistem/alba/trunk/alba/apps/principal/modules: alumno/actions relCalendariovacunacionAlumno/actions relCalendariovacunacionAlumno/templates responsable/actions responsable/templates

commits en pressenter.com.ar commits en pressenter.com.ar
Vie Feb 16 16:38:51 CET 2007


Author: josx
Date: 2007-02-16 12:38:48 -0300 (Fri, 16 Feb 2007)
New Revision: 4232

Added:
   prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunaci=
onAlumno/templates/_edit_actions.php
   prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunaci=
onAlumno/templates/_edit_header.php
   prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunaci=
onAlumno/templates/_list_actions.php
   prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunaci=
onAlumno/templates/_list_header.php
   prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunaci=
onAlumno/templates/editSuccess.php
   prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunaci=
onAlumno/templates/listSuccess.php
Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions/action=
s.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunaci=
onAlumno/actions/actions.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/responsable/actions/a=
ctions.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/responsable/templates=
/editSuccess.php
Log:
Cambios en todos los templates del Calendario de Vacunacion para arrastra=
r usuario y mostrar nombres (ticket #130)=20

Modified: prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions=
/actions.class.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions/actio=
ns.class.php	2007-02-16 14:56:39 UTC (rev 4231)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions/actio=
ns.class.php	2007-02-16 15:38:48 UTC (rev 4232)
@@ -102,19 +102,14 @@
     $this->alumno =3D $this->getAlumnoOrCreate();
=20
     $datosCuenta =3D "";
-
     if($this->getRequestParameter("fk_cuenta_id")) {
         $datosCuenta =3D CuentaPeer::retrieveByPk($this->getRequestParam=
eter("fk_cuenta_id"));
     }
-
     if($this->alumno->getFkCuentaId()) {
         $datosCuenta =3D CuentaPeer::retrieveByPk($this->alumno->getFkCu=
entaId());
     }
-
     $this->datosCuenta =3D $datosCuenta;
=20
-
-
     if ($this->getRequest()->getMethod() =3D=3D sfRequest::POST)
     {
       $this->alumno =3D $this->getAlumnoOrCreate();

Modified: prosistem/alba/trunk/alba/apps/principal/modules/relCalendariov=
acunacionAlumno/actions/actions.class.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/actions/actions.class.php	2007-02-16 14:56:39 UTC (rev 4231)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/actions/actions.class.php	2007-02-16 15:38:48 UTC (rev 4232)
@@ -23,8 +23,8 @@
  * relCalendariovacunacionAlumno Acciones
  *
  * @package    alba
- * @author     Jos=E9 Luis Di Biase <josx en interorganic.com.ar>
- * @author     H=E9ctor Sanchez <hsanchez en pressenter.com.ar>
+ * @author     Jos=C3=A9 Luis Di Biase <josx en interorganic.com.ar>
+ * @author     H=C3=A9ctor Sanchez <hsanchez en pressenter.com.ar>
  * @author     Fernando Toledo <ftoledo en pressenter.com.ar>
  * @version    SVN: $Id$
  * @filesource
@@ -59,4 +59,47 @@
   function executeIrAlumnos(){
     $this->redirect('alumno/list');
   }               =20
+
+
+  public function executeEdit ()
+  {
+    $this->rel_calendariovacunacion_alumno =3D $this->getRelCalendariova=
cunacionAlumnoOrCreate();
+
+    if ($this->getRequest()->getMethod() =3D=3D sfRequest::POST)
+    {
+      $this->rel_calendariovacunacion_alumno =3D $this->getRelCalendario=
vacunacionAlumnoOrCreate();
+
+      $this->updateRelCalendariovacunacionAlumnoFromRequest();
+
+      $this->saveRelCalendariovacunacionAlumno($this->rel_calendariovacu=
nacion_alumno);
+
+      $this->setFlash('notice', 'Your modifications have been saved');
+
+      if ($this->getRequestParameter('save_and_add'))
+      {
+        if($rel_calendariovacunacion_alumno->getFkAlumnoId()) {
+            return $this->redirect('relCalendariovacunacionAlumno/create=
?fk_alumno_id=3D'.$this->rel_calendariovacunacion_alumno->getFkAlumnoId()=
);
+        } else {
+            return $this->redirect('relCalendariovacunacionAlumno/create=
');
+        }
+      }
+      else
+      {
+        return $this->redirect('relCalendariovacunacionAlumno/edit?id=3D=
'.$this->rel_calendariovacunacion_alumno->getId());
+      }
+    }
+    else
+    {
+      // add javascripts
+      $this->getResponse()->addJavascript('/sf/js/prototype/prototype');
+      $this->getResponse()->addJavascript('/sf/js/sf_admin/collapse');
+	  if ($this->getRequestParameter('fk_alumno_id'))
+                $this->rel_calendariovacunacion_alumno->setFkAlumnoId($t=
his->getRequestParameter('fk_alumno_id'));
+
+
+    }
+  }
+
+
+
 }

Added: prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacu=
nacionAlumno/templates/_edit_actions.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/templates/_edit_actions.php	2007-02-16 14:56:39 UTC (rev 4231)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/templates/_edit_actions.php	2007-02-16 15:38:48 UTC (rev 4232)
@@ -0,0 +1,17 @@
+<?php
+// auto-generated by sfPropelAdmin
+// date: 2007/02/16 11:42:06
+?>
+<ul class=3D"sf_admin_actions">
+  <li><?php echo button_to(__('list'), 'relCalendariovacunacionAlumno/li=
st?filters%5Bfk_alumno_id%5D=3D'.$rel_calendariovacunacion_alumno->getFkA=
lumnoId().'&filter=3Dfilter', array (
+  'class' =3D> 'sf_admin_action_list',
+)) ?></li>
+  <li><?php echo submit_tag(__('save and add'), array (
+  'name' =3D> 'save_and_add',
+  'class' =3D> 'sf_admin_action_save_and_add',
+)) ?></li>
+  <li><?php echo submit_tag(__('save'), array (
+  'name' =3D> 'save',
+  'class' =3D> 'sf_admin_action_save',
+)) ?></li>
+</ul>


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/rel=
CalendariovacunacionAlumno/templates/_edit_actions.php
___________________________________________________________________
Name: svn:keywords
   + Id Date Author Rev URL

Added: prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacu=
nacionAlumno/templates/_edit_header.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/templates/_edit_header.php	2007-02-16 14:56:39 UTC (rev 4231)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/templates/_edit_header.php	2007-02-16 15:38:48 UTC (rev 4232)
@@ -0,0 +1,12 @@
+<?php=20
+    $alumno =3D "";
+    if($rel_calendariovacunacion_alumno->getFkAlumnoId()) {
+        $alumno =3D " de ".$rel_calendariovacunacion_alumno->getAlumno()=
->getApellido().", ".$rel_calendariovacunacion_alumno->getAlumno()->getNo=
mbre();
+    }
+
+   if ($sf_params->get('action') =3D=3D "create") {
+?>
+    <h1><?php echo __('Ingresar Calendario de Vacunaci&oacute;n'.$alumno=
,array()) ?></h1>
+<? } else { ?>
+    <h1><?php echo __('Editar Calendario de Vacunaci&oacute;n'.$alumno,a=
rray()) ?></h1>
+<? } ?>
\ No newline at end of file


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/rel=
CalendariovacunacionAlumno/templates/_edit_header.php
___________________________________________________________________
Name: svn:keywords
   + Id Date Author Rev URL

Added: prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacu=
nacionAlumno/templates/_list_actions.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/templates/_list_actions.php	2007-02-16 14:56:39 UTC (rev 4231)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/templates/_list_actions.php	2007-02-16 15:38:48 UTC (rev 4232)
@@ -0,0 +1,12 @@
+<?php
+	$agregado =3D "";
+	if (isset($filters['fk_alumno_id']) && $filters['fk_alumno_id'] !=3D ''=
 && $filters['fk_alumno_id'] !=3D 0) {
+		$agregado =3D "?fk_alumno_id=3D".$filters['fk_alumno_id'];
+	}
+	$url =3D 'relCalendariovacunacionAlumno/create'.$agregado;
+?>
+<ul class=3D"sf_admin_actions">
+  <li><?php echo button_to(__('create'), $url , array (
+  'class' =3D> 'sf_admin_action_create',
+)) ?></li>
+</ul>


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/rel=
CalendariovacunacionAlumno/templates/_list_actions.php
___________________________________________________________________
Name: svn:keywords
   + Id Date Author Rev URL

Added: prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacu=
nacionAlumno/templates/_list_header.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/templates/_list_header.php	2007-02-16 14:56:39 UTC (rev 4231)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/templates/_list_header.php	2007-02-16 15:38:48 UTC (rev 4232)
@@ -0,0 +1,8 @@
+<h1>Vacuna por alumno
+<?
+if (isset($filters['fk_alumno_id']) && $filters['fk_alumno_id'] !=3D '' =
&& $filters['fk_alumno_id'] !=3D 0) {
+    $alumno =3D AlumnoPeer::retrieveByPk($filters['fk_alumno_id']);
+    echo $alumno->getApellido().", ".$alumno->getNombre();
+} ?>
+</h1>
+


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/rel=
CalendariovacunacionAlumno/templates/_list_header.php
___________________________________________________________________
Name: svn:keywords
   + Id Date Author Rev URL

Added: prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacu=
nacionAlumno/templates/editSuccess.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/templates/editSuccess.php	2007-02-16 14:56:39 UTC (rev 4231)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/templates/editSuccess.php	2007-02-16 15:38:48 UTC (rev 4232)
@@ -0,0 +1,138 @@
+<?php
+// auto-generated by sfPropelAdmin
+// date: 2007/02/16 11:42:06
+?>
+<?php use_helpers('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date')=
 ?>
+
+
+<div id=3D"sf_admin_header">
+<?php include_partial('relCalendariovacunacionAlumno/edit_header', array=
('rel_calendariovacunacion_alumno' =3D> $rel_calendariovacunacion_alumno)=
) ?>
+</div>
+
+<div id=3D"sf_admin_content">
+
+<?php if ($sf_request->hasErrors()): ?>
+<div class=3D"form-errors">
+<h2><?php echo __('There are some errors that prevent the form to valida=
te') ?></h2>
+<ul>
+<?php foreach ($sf_request->getErrorNames() as $name): ?>
+  <li><?php echo $sf_request->getError($name) ?></li>
+<?php endforeach; ?>
+</ul>
+</div>
+<?php elseif ($sf_flash->has('notice')): ?>
+<div class=3D"save-ok">
+<h2><?php echo __($sf_flash->get('notice')) ?></h2>
+</div>
+<?php endif; ?>
+
+<?php echo form_tag('relCalendariovacunacionAlumno/edit', 'id=3Dsf_admin=
_edit_form name=3Dsf_admin_edit_form multipart=3Dtrue') ?>
+
+<?php echo object_input_hidden_tag($rel_calendariovacunacion_alumno, 'ge=
tId') ?>
+
+
+<?php
+	if(!$rel_calendariovacunacion_alumno->getFkAlumnoId()) {
+?>
+<fieldset id=3D"sf_fieldset_none" class=3D"">
+
+<div class=3D"form-row">
+  <?php echo label_for('rel_calendariovacunacion_alumno[fk_alumno_id]', =
__('Alumno:'), 'class=3D"required" ') ?>
+  <div class=3D"content<?php if ($sf_request->hasError('rel_calendariova=
cunacion_alumno{fk_alumno_id}')): ?> form-error<?php endif; ?>">
+  <?php if ($sf_request->hasError('rel_calendariovacunacion_alumno{fk_al=
umno_id}')): ?>
+    <?php echo form_error('rel_calendariovacunacion_alumno{fk_alumno_id}=
', array('class' =3D> 'form-error-msg')) ?>
+  <?php endif; ?>
+
+  <?php echo object_select_tag($rel_calendariovacunacion_alumno, 'getFkA=
lumnoId', array (
+  'related_class' =3D> 'Alumno',
+  'control_name' =3D> 'rel_calendariovacunacion_alumno[fk_alumno_id]',
+)) ?>
+    </div>
+</div>
+
+<?php
+	} else {
+		echo object_input_hidden_tag($rel_calendariovacunacion_alumno,'getFkAl=
umnoId',array('control_name' =3D>'rel_calendariovacunacion_alumno[fk_alum=
no_id]'));
+	}
+?>
+
+
+
+<div class=3D"form-row">
+  <?php echo label_for('rel_calendariovacunacion_alumno[fk_calendariovac=
unacion_id]', __('Vacuna:'), 'class=3D"required" ') ?>
+  <div class=3D"content<?php if ($sf_request->hasError('rel_calendariova=
cunacion_alumno{fk_calendariovacunacion_id}')): ?> form-error<?php endif;=
 ?>">
+  <?php if ($sf_request->hasError('rel_calendariovacunacion_alumno{fk_ca=
lendariovacunacion_id}')): ?>
+    <?php echo form_error('rel_calendariovacunacion_alumno{fk_calendario=
vacunacion_id}', array('class' =3D> 'form-error-msg')) ?>
+  <?php endif; ?>
+
+  <?php echo object_select_tag($rel_calendariovacunacion_alumno, 'getFkC=
alendariovacunacionId', array (
+  'related_class' =3D> 'Calendariovacunacion',
+  'control_name' =3D> 'rel_calendariovacunacion_alumno[fk_calendariovacu=
nacion_id]',
+)) ?>
+    </div>
+</div>
+
+<div class=3D"form-row">
+  <?php echo label_for('rel_calendariovacunacion_alumno[observacion]', _=
_('Observaci&oacute;n:'), '') ?>
+  <div class=3D"content<?php if ($sf_request->hasError('rel_calendariova=
cunacion_alumno{observacion}')): ?> form-error<?php endif; ?>">
+  <?php if ($sf_request->hasError('rel_calendariovacunacion_alumno{obser=
vacion}')): ?>
+    <?php echo form_error('rel_calendariovacunacion_alumno{observacion}'=
, array('class' =3D> 'form-error-msg')) ?>
+  <?php endif; ?>
+
+  <?php echo object_input_tag($rel_calendariovacunacion_alumno, 'getObse=
rvacion', array (
+  'size' =3D> 64,
+  'control_name' =3D> 'rel_calendariovacunacion_alumno[observacion]',
+)) ?>
+    </div>
+</div>
+
+<div class=3D"form-row">
+  <?php echo label_for('rel_calendariovacunacion_alumno[comprobante]', _=
_('Comprobante:'), 'class=3D"required" ') ?>
+  <div class=3D"content<?php if ($sf_request->hasError('rel_calendariova=
cunacion_alumno{comprobante}')): ?> form-error<?php endif; ?>">
+  <?php if ($sf_request->hasError('rel_calendariovacunacion_alumno{compr=
obante}')): ?>
+    <?php echo form_error('rel_calendariovacunacion_alumno{comprobante}'=
, array('class' =3D> 'form-error-msg')) ?>
+  <?php endif; ?>
+
+  <?php echo object_checkbox_tag($rel_calendariovacunacion_alumno, 'getC=
omprobante', array (
+  'control_name' =3D> 'rel_calendariovacunacion_alumno[comprobante]',
+)) ?>
+    </div>
+</div>
+
+<div class=3D"form-row">
+  <?php echo label_for('rel_calendariovacunacion_alumno[fecha]', __('Fec=
ha:'), '') ?>
+  <div class=3D"content<?php if ($sf_request->hasError('rel_calendariova=
cunacion_alumno{fecha}')): ?> form-error<?php endif; ?>">
+  <?php if ($sf_request->hasError('rel_calendariovacunacion_alumno{fecha=
}')): ?>
+    <?php echo form_error('rel_calendariovacunacion_alumno{fecha}', arra=
y('class' =3D> 'form-error-msg')) ?>
+  <?php endif; ?>
+
+  <?php echo object_input_date_tag($rel_calendariovacunacion_alumno, 'ge=
tFecha', array (
+  'rich' =3D> true,
+  'withtime' =3D> true,
+  'calendar_button_img' =3D> '/sf/images/sf_admin/date.png',
+  'control_name' =3D> 'rel_calendariovacunacion_alumno[fecha]',
+)) ?>
+    </div>
+</div>
+
+</fieldset>
+
+<?php echo include_partial('edit_actions', array('rel_calendariovacunaci=
on_alumno' =3D> $rel_calendariovacunacion_alumno)) ?>
+
+</form>
+
+<ul class=3D"sf_admin_actions">
+      <li class=3D"float-left"><?php if ($rel_calendariovacunacion_alumn=
o->getId()): ?>
+<?php echo button_to(__('delete'), 'relCalendariovacunacionAlumno/delete=
?id=3D'.$rel_calendariovacunacion_alumno->getId(), array (
+  'post' =3D> true,
+  'confirm' =3D> __('Are you sure?'),
+  'class' =3D> 'sf_admin_action_delete',
+)) ?><?php endif; ?>
+</li>
+  </ul>
+
+</div>
+
+<div id=3D"sf_admin_footer">
+<?php include_partial('relCalendariovacunacionAlumno/edit_footer', array=
('rel_calendariovacunacion_alumno' =3D> $rel_calendariovacunacion_alumno)=
) ?>
+</div>


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/rel=
CalendariovacunacionAlumno/templates/editSuccess.php
___________________________________________________________________
Name: svn:keywords
   + Id Date Author Rev URL

Added: prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacu=
nacionAlumno/templates/listSuccess.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/templates/listSuccess.php	2007-02-16 14:56:39 UTC (rev 4231)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relCalendariovacunac=
ionAlumno/templates/listSuccess.php	2007-02-16 15:38:48 UTC (rev 4232)
@@ -0,0 +1,64 @@
+<?php
+// auto-generated by sfPropelAdmin
+// date: 2007/02/16 11:08:08
+?>
+<?php use_helpers('I18N', 'Date') ?>
+
+<div id=3D"sf_admin_header">
+<?php include_partial('relCalendariovacunacionAlumno/list_header', array=
('filters' =3D> $filters)) ?>
+</div>
+
+<div id=3D"sf_admin_bar">
+
+<?php echo include_partial('filters', array('filters' =3D> $filters)) ?>
+
+</div>
+
+<div id=3D"sf_admin_content">
+
+<?php if(!$pager->getNbResults()): ?>
+<?php echo __('no result') ?>
+<?php else: ?>
+<table cellspacing=3D"0" class=3D"sf_admin_list">
+<thead>
+<tr>
+<?php echo include_partial('list_th_tabular') ?>
+  <th id=3D"sf_admin_list_th_sf_actions"><?php echo __('Actions') ?></th=
>
+</tr>
+</thead>
+<tbody>
+<?php $i =3D 1; foreach ($pager->getResults() as $rel_calendariovacunaci=
on_alumno): $odd =3D fmod(++$i, 2) ?>
+<tr class=3D"sf_admin_row_<?php echo $odd ?>">
+<?php echo include_partial('list_td_tabular', array('rel_calendariovacun=
acion_alumno' =3D> $rel_calendariovacunacion_alumno)) ?>
+<?php echo include_partial('list_td_actions', array('rel_calendariovacun=
acion_alumno' =3D> $rel_calendariovacunacion_alumno)) ?>
+</tr>
+<?php endforeach; ?>
+</tbody>
+<tfoot>
+<tr><th colspan=3D"6">
+<div class=3D"float-right">
+<?php if ($pager->haveToPaginate()): ?>
+  <?php echo link_to(image_tag('/sf/images/sf_admin/first.png', 'align=3D=
absmiddle'), 'relCalendariovacunacionAlumno/list?page=3D1') ?>
+  <?php echo link_to(image_tag('/sf/images/sf_admin/previous.png', 'alig=
n=3Dabsmiddle'), 'relCalendariovacunacionAlumno/list?page=3D'.$pager->get=
PreviousPage()) ?>
+
+  <?php foreach ($pager->getLinks() as $page): ?>
+    <?php echo link_to_unless($page =3D=3D $pager->getPage(), $page, 're=
lCalendariovacunacionAlumno/list?page=3D'.$page) ?>
+  <?php endforeach; ?>
+
+  <?php echo link_to(image_tag('/sf/images/sf_admin/next.png', 'align=3D=
absmiddle'), 'relCalendariovacunacionAlumno/list?page=3D'.$pager->getNext=
Page()) ?>
+  <?php echo link_to(image_tag('/sf/images/sf_admin/last.png', 'align=3D=
absmiddle'), 'relCalendariovacunacionAlumno/list?page=3D'.$pager->getLast=
Page()) ?>
+<?php endif; ?>
+</div>
+<?php echo format_number_choice('[0] no result|[1] 1 result|(1,+Inf] %1%=
 results', array('%1%' =3D> $pager->getNbResults()), $pager->getNbResults=
()) ?>
+</th></tr>
+</tfoot>
+</table>
+<?php endif; ?>
+
+<?php echo include_partial('list_actions',array('filters' =3D> $filters)=
) ?>
+
+</div>
+
+<div id=3D"sf_admin_footer">
+<?php include_partial('relCalendariovacunacionAlumno/list_footer')?>
+</div>


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/rel=
CalendariovacunacionAlumno/templates/listSuccess.php
___________________________________________________________________
Name: svn:keywords
   + Id Date Author Rev URL

Modified: prosistem/alba/trunk/alba/apps/principal/modules/responsable/ac=
tions/actions.class.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/responsable/actions/=
actions.class.php	2007-02-16 14:56:39 UTC (rev 4231)
+++ prosistem/alba/trunk/alba/apps/principal/modules/responsable/actions/=
actions.class.php	2007-02-16 15:38:48 UTC (rev 4232)
@@ -22,8 +22,8 @@
  * Responsable Acciones
  *
  * @package    alba
- * @author     Jos=E9 Luis Di Biase <josx en interorganic.com.ar>
- * @author     H=E9ctor Sanchez <hsanchez en pressenter.com.ar>
+ * @author     Jos=C3=A9 Luis Di Biase <josx en interorganic.com.ar>
+ * @author     H=C3=A9ctor Sanchez <hsanchez en pressenter.com.ar>
  * @author     Fernando Toledo <ftoledo en pressenter.com.ar>
  * @version    SVN: $Id$
  * @filesource
@@ -48,6 +48,16 @@
     public function executeEdit (){                                     =
                 =20
         $this->responsable =3D $this->getResponsableOrCreate();         =
                                                          =20
=20
+        $datosCuenta =3D "";
+        if($this->getRequestParameter("fk_cuenta_id")) {
+            $datosCuenta =3D CuentaPeer::retrieveByPk($this->getRequestP=
arameter("fk_cuenta_id"));
+        }
+        if($this->responsable->getFkCuentaId()) {
+            $datosCuenta =3D CuentaPeer::retrieveByPk($this->responsable=
->getFkCuentaId());
+        }
+        $this->datosCuenta =3D $datosCuenta;
+
+
         if ($this->getRequest()->getMethod() =3D=3D sfRequest::POST) {  =
                                                                         =
                                            =20
             $this->responsable =3D $this->getResponsableOrCreate();=20
             $this->updateResponsableFromRequest();

Modified: prosistem/alba/trunk/alba/apps/principal/modules/responsable/te=
mplates/editSuccess.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/responsable/template=
s/editSuccess.php	2007-02-16 14:56:39 UTC (rev 4231)
+++ prosistem/alba/trunk/alba/apps/principal/modules/responsable/template=
s/editSuccess.php	2007-02-16 15:38:48 UTC (rev 4232)
@@ -1,7 +1,25 @@
 <?php
-// auto-generated by sfPropelAdmin
-// date: 2007/02/09 13:27:13
+    if($datosCuenta) {
 ?>
+<script type=3D"text/javascript">
+function completaDatos()=20
+{
+var datosCuenta =3D new Array()
+datosCuenta [0] =3D "<?=3D$datosCuenta->getDireccion()?>"
+datosCuenta [1] =3D "<?=3D$datosCuenta->getCiudad()?>"
+datosCuenta [2] =3D "<?=3D$datosCuenta->getFkProvinciaId()?>"
+datosCuenta [3] =3D "<?=3D$datosCuenta->getCodigoPostal()?>"
+datosCuenta [4] =3D "<?=3D$datosCuenta->getTelefono()?>"
+document.getElementsByName("responsable[direccion]")[0].value =3D datosC=
uenta[0]
+document.getElementsByName("responsable[ciudad]")[0].value =3D datosCuen=
ta[1]
+document.getElementsByName("responsable[fk_provincia_id]")[0].value =3D =
datosCuenta[2]
+document.getElementsByName("responsable[codigo_postal]")[0].value =3D da=
tosCuenta[3]
+document.getElementsByName("responsable[telefono]")[0].value =3D datosCu=
enta[4]
+}
+</script>
+<?
+    }
+?>
 <?php use_helpers('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date')=
 ?>
=20
 <h1><?php=20
@@ -108,7 +126,12 @@
 </fieldset>
 <fieldset id=3D"sf_fieldset_donde_vive" class=3D"">
 <h2><?php echo __('Donde vive') ?></h2>
-
+<br>
+<?php
+    if($datosCuenta) {
+        echo button_to("Cargar datos de la cuenta", "#", array("class" =3D=
> "sf_admin_action_sava", "onClick" =3D> "javascript:completaDatos()"));
+   }
+?>
 <div class=3D"form-row">
   <?php echo label_for('responsable[direccion]', __('Direcci&oacute;n:')=
, '') ?>
   <div class=3D"content<?php if ($sf_request->hasError('responsable{dire=
ccion}')): ?> form-error<?php endif; ?>">




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