[Alba-desarrollo] SVN Alba r4200 - in prosistem/alba/trunk/alba/apps/principal/modules: alumno/actions alumno/config alumno/templates asistencia/templates

commits en pressenter.com.ar commits en pressenter.com.ar
Mie Feb 14 23:24:19 CET 2007


Author: ftoledo
Date: 2007-02-14 19:23:50 -0300 (Wed, 14 Feb 2007)
New Revision: 4200

Added:
   prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/_edit_actions.php
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/asistencia/templates/indexSuccess.php
Log:
Cambiando botones de acciones del generator x button_to en los templates es mas optimo

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	2007-02-14 21:58:02 UTC (rev 4199)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions/actions.class.php	2007-02-14 22:23:50 UTC (rev 4200)
@@ -39,23 +39,6 @@
     }
   
   /**
-  * Ir a la cuenta del alumno
-  */      
-  function executeIrCuenta(){
-    if ($this->getRequestParameter('id') ){
-        $c = new Criteria();
-        $c->add(AlumnoPeer::ID, $this->getRequestParameter('id'));
-        $Alum = AlumnoPeer::doSelectOne($c);
-        if($Alum->getFkCuentaId()) {
-            $this->redirect('cuenta/verCompleta?id='.$Alum->getFkCuentaId());
-        } else {
-             $this->redirect('alumno/list');
-        }
-    } else
-        $this->redirect('alumno/create');
-  }
-  
-  /**
   * Ver las Asistencias del alumno
   */  
   function executeAsistencia() {

Modified: prosistem/alba/trunk/alba/apps/principal/modules/alumno/config/generator.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/alumno/config/generator.yml	2007-02-14 21:58:02 UTC (rev 4199)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/config/generator.yml	2007-02-14 22:23:50 UTC (rev 4200)
@@ -60,4 +60,4 @@
                 _save: -
                 _list: -
                 _save_and_add: -
-                irCuenta: { name: Ir a Cuenta, action: irCuenta, icon: next.png }
\ No newline at end of file
+                
\ No newline at end of file

Added: prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/_edit_actions.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/_edit_actions.php	2007-02-14 21:58:02 UTC (rev 4199)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/templates/_edit_actions.php	2007-02-14 22:23:50 UTC (rev 4200)
@@ -0,0 +1,20 @@
+<?php
+// auto-generated by sfPropelAdmin
+// date: 2007/02/14 19:06:46
+?>
+<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'), 'alumno/list?id='.$alumno->getId(), array (
+  'class' => 'sf_admin_action_list',
+)) ?></li>
+    <li><?php echo submit_tag(__('save and add'), array (
+  'name' => 'save_and_add',
+  'class' => 'sf_admin_action_save_and_add',
+)) ?></li>
+    <li><?php echo button_to(__('Ir a Cuenta'), 'cuenta/verCompleta?id='.$alumno->getFkCuentaId(), array (
+  'class' => 'sf_admin_action_ir_a',
+)) ?></li>
+</ul>


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

Modified: prosistem/alba/trunk/alba/apps/principal/modules/asistencia/templates/indexSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/asistencia/templates/indexSuccess.php	2007-02-14 21:58:02 UTC (rev 4199)
+++ prosistem/alba/trunk/alba/apps/principal/modules/asistencia/templates/indexSuccess.php	2007-02-14 22:23:50 UTC (rev 4200)
@@ -185,7 +185,7 @@
             echo input_hidden_tag('vista', "noMuestraMenu"); 
             if($alumno_id >= 0)
                  echo input_hidden_tag('alumno_id', $alumno_id);
-            echo submit_tag(__('Imprimir'), array ('name' => 'Imprimir','class' => 'sf_admin_action_saveprint'));
+            echo submit_tag(__('Imprimir'), array ('name' => 'Imprimir','class' => 'sf_admin_action_print'));
          ?>
         </form>
         </li></ul>
@@ -234,9 +234,9 @@
 
       <div class="float-right">
           <ul class="sf_admin_actions">
-            <li><input style="background: #ffc url(small/alumnos.png) no-repeat 3px 2px" value="Listado Alumnos" type="button" onclick="document.location.href='<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/alumno/list';" /></li>
+            <li><?php echo button_to('Listado de alumnos','alumno/list',array('class' => 'sf_admin_action_list'))?></li>
 <? if($alumno_id >= 0) {?>
-            <li><input style="background: #ffc url(small/alumnos.png) no-repeat 3px 2px" value="Ir a Cuenta" type="button" onclick="document.location.href='<?=sfContext::getInstance()->getRequest()->getRelativeUrlRoot()?>/cuenta/verCompleta/id/<?=$cuenta_id?>';" /></li>
+            <li><?php echo button_to('Ir a Cuenta','cuenta/verCompleta?id=' .$cuenta_id,array('class'=>'sf_admin_action_ir_a'))?></li>
 <? } ?>
         </ul>
       </div>




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