[Alba-desarrollo] SVN Alba r4193 - in prosistem/alba/trunk/alba/apps/principal/modules: alumno/config alumno/templates cuenta/actions division/actions division/config

commits en pressenter.com.ar commits en pressenter.com.ar
Mie Feb 14 21:31:23 CET 2007


Author: josx
Date: 2007-02-14 17:31:19 -0300 (Wed, 14 Feb 2007)
New Revision: 4193

Added:
   prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/_lis=
t_header.php
   prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/list=
Success.php
Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/alumno/config/generat=
or.yml
   prosistem/alba/trunk/alba/apps/principal/modules/cuenta/actions/action=
s.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/division/actions/acti=
ons.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/division/config/gener=
ator.yml
Log:
Agregue link desde mostrar division a mostrar los alumnos de las mismas

Modified: prosistem/alba/trunk/alba/apps/principal/modules/alumno/config/=
generator.yml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/config/genera=
tor.yml	2007-02-14 20:24:04 UTC (rev 4192)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/config/genera=
tor.yml	2007-02-14 20:31:19 UTC (rev 4193)
@@ -30,7 +30,7 @@
             lugar_nacimiento: { name: Lugar de Nacimiento}
=20
       list:
-            title: Listado de Alumnos
+            title: " "
             display: [ =3Dapellido, nombre, nro_documento, sexo, telefon=
o, email, activo ]
             filters:  [ _nombre_apellido, _division, nro_documento ]
             object_actions:

Added: prosistem/alba/trunk/alba/apps/principal/modules/alumno/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/alumno/templates/_li=
st_header.php	2007-02-14 20:24:04 UTC (rev 4192)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/_li=
st_header.php	2007-02-14 20:31:19 UTC (rev 4193)
@@ -0,0 +1,7 @@
+<h1>Listado de Alumnos=20
+<?
+if (isset($filters['division']) && $filters['division'] !=3D '' && $filt=
ers['division'] !=3D 0) {
+    $division =3D DivisionPeer::retrieveByPk($filters['division']);
+    ?> de <? echo $division->getAnio()->getDescripcion()." ".$division->=
getDescripcion();?>
+<? } ?>
+</h1>


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

Added: prosistem/alba/trunk/alba/apps/principal/modules/alumno/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/alumno/templates/lis=
tSuccess.php	2007-02-14 20:24:04 UTC (rev 4192)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/lis=
tSuccess.php	2007-02-14 20:31:19 UTC (rev 4193)
@@ -0,0 +1,67 @@
+<?php
+// auto-generated by sfPropelAdmin
+// date: 2007/02/14 16:46:15
+?>
+<?php use_helpers('I18N', 'Date') ?>
+
+<h1><?php echo __(' ',=20
+array()) ?></h1>
+
+<div id=3D"sf_admin_header">
+<?php include_partial('alumno/list_header', array('filters' =3D> $filter=
s)) ?>
+</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 $alumno): $odd =3D fmod=
(++$i, 2) ?>
+<tr class=3D"sf_admin_row_<?php echo $odd ?>">
+<?php echo include_partial('list_td_tabular', array('alumno' =3D> $alumn=
o)) ?>
+<?php echo include_partial('list_td_actions', array('alumno' =3D> $alumn=
o)) ?>
+</tr>
+<?php endforeach; ?>
+</tbody>
+<tfoot>
+<tr><th colspan=3D"8">
+<div class=3D"float-right">
+<?php if ($pager->haveToPaginate()): ?>
+  <?php echo link_to(image_tag('/sf/images/sf_admin/first.png', 'align=3D=
absmiddle'), 'alumno/list?page=3D1') ?>
+  <?php echo link_to(image_tag('/sf/images/sf_admin/previous.png', 'alig=
n=3Dabsmiddle'), 'alumno/list?page=3D'.$pager->getPreviousPage()) ?>
+
+  <?php foreach ($pager->getLinks() as $page): ?>
+    <?php echo link_to_unless($page =3D=3D $pager->getPage(), $page, 'al=
umno/list?page=3D'.$page) ?>
+  <?php endforeach; ?>
+
+  <?php echo link_to(image_tag('/sf/images/sf_admin/next.png', 'align=3D=
absmiddle'), 'alumno/list?page=3D'.$pager->getNextPage()) ?>
+  <?php echo link_to(image_tag('/sf/images/sf_admin/last.png', 'align=3D=
absmiddle'), 'alumno/list?page=3D'.$pager->getLastPage()) ?>
+<?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') ?>
+
+</div>
+
+<div id=3D"sf_admin_footer">
+<?php include_partial('alumno/list_footer') ?>
+</div>


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

Modified: prosistem/alba/trunk/alba/apps/principal/modules/cuenta/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/cuenta/actions/actio=
ns.class.php	2007-02-14 20:24:04 UTC (rev 4192)
+++ prosistem/alba/trunk/alba/apps/principal/modules/cuenta/actions/actio=
ns.class.php	2007-02-14 20:31:19 UTC (rev 4193)
@@ -23,8 +23,8 @@
  * cuenta 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

Modified: prosistem/alba/trunk/alba/apps/principal/modules/division/actio=
ns/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/division/actions/act=
ions.class.php	2007-02-14 20:24:04 UTC (rev 4192)
+++ prosistem/alba/trunk/alba/apps/principal/modules/division/actions/act=
ions.class.php	2007-02-14 20:31:19 UTC (rev 4193)
@@ -23,8 +23,8 @@
  * division 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
@@ -37,14 +37,18 @@
         $this->vista =3D $this->getRequestParameter('vista');
     }
=20
-     protected function addFiltersCriteria(&$c)
-     {
-         $c->add(AnioPeer::FK_ESTABLECIMIENTO_ID, $this->getUser()->getA=
ttribute('fk_establecimiento_id'));
-         $c->addJoin(DivisionPeer::FK_ANIO_ID,AnioPeer::ID);
+    protected function addFiltersCriteria(&$c)
+    {
+        $c->add(AnioPeer::FK_ESTABLECIMIENTO_ID, $this->getUser()->getAt=
tribute('fk_establecimiento_id'));
+        $c->addJoin(DivisionPeer::FK_ANIO_ID,AnioPeer::ID);
         =20
-     }
+    }
=20
+    public function executeAlumnosPorDivision() {
+        $this->redirect('alumno/list?filters%5Bdivision%5D=3D'.$this->ge=
tRequestParameter('id').'&filter=3Dfiltrar');
+    }
=20
+
 }
=20
 ?>
\ No newline at end of file

Modified: prosistem/alba/trunk/alba/apps/principal/modules/division/confi=
g/generator.yml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/division/config/gene=
rator.yml	2007-02-14 20:24:04 UTC (rev 4192)
+++ prosistem/alba/trunk/alba/apps/principal/modules/division/config/gene=
rator.yml	2007-02-14 20:31:19 UTC (rev 4193)
@@ -19,3 +19,4 @@
         object_actions:
             _edit:      -
             _delete:    -
+            alumnosPorDivision:  { name: Alumnos por Division, action: a=
lumnosPorDivision, icon: small/alumnos.png }           =20




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