[Alba-desarrollo] SVN Alba r5483 - in
prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision:
actions templates
commits en pressenter.com.ar
commits en pressenter.com.ar
Mie Feb 27 17:51:37 CET 2008
Author: josx
Date: 2008-02-27 14:51:36 -0200 (Wed, 27 Feb 2008)
New Revision: 5483
Added:
prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/editSuccess.php
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/actions/actions.class.php
Log:
Agregando lo necesario para modificar la pantalla que relaciona division y alumno
Modified: prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/actions/actions.class.php 2008-02-26 18:53:03 UTC (rev 5482)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/actions/actions.class.php 2008-02-27 16:51:36 UTC (rev 5483)
@@ -81,7 +81,55 @@
+ public function executeEdit()
+ {
+ $this->rel_alumno_division = $this->getRelAlumnoDivisionOrCreate();
+ if ($this->getRequest()->getMethod() == sfRequest::POST)
+ {
+ $this->updateRelAlumnoDivisionFromRequest();
+ $this->saveRelAlumnoDivision($this->rel_alumno_division);
+ $this->setFlash('notice', 'Your modifications have been saved');
+ if ($this->getRequestParameter('save_and_add')) {
+ return $this->redirect('relAlumnoDivision/create');
+ }
+ else if ($this->getRequestParameter('save_and_list'))
+ {
+ return $this->redirect('relAlumnoDivision/list');
+ }
+ else
+ {
+ return $this->redirect('relAlumnoDivision/edit?id='.$this->rel_alumno_division->getId());
+ }
+ }
+ else
+ {
+ $this->labels = $this->getLabels();
+ }
+ }
+
+
+
+ public function executeDelete()
+ {
+ $this->rel_alumno_division = RelAlumnoDivisionPeer::retrieveByPk($this->getRequestParameter('id'));
+ $this->forward404Unless($this->rel_alumno_division);
+
+ try
+ {
+ $this->deleteRelAlumnoDivision($this->rel_alumno_division);
+ }
+ catch (PropelException $e)
+ {
+ $this->getRequest()->setError('delete', 'Could not delete the selected Rel alumno division. Make sure it does not have any associated items.');
+ return $this->forward('relAlumnoDivision', 'list');
+ }
+
+ return $this->redirect('relAlumnoDivision/list');
+ }
+
+
+
}
?>
Added: prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/editSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/editSuccess.php (rev 0)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/editSuccess.php 2008-02-27 16:51:36 UTC (rev 5483)
@@ -0,0 +1,31 @@
+<?php
+// auto-generated by sfPropelAdmin
+// date: 2008/02/26 13:13:15
+?>
+<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>
+<?php use_stylesheet('/sf/sf_admin/css/main') ?>
+
+<div id="sf_admin_container">
+
+<h1><?php echo __('Asignar alumno a grado y sección',
+array()) ?></h1>
+
+
+
+<div id="sf_admin_header">
+<?php include_partial('relAlumnoDivision/edit_header', array('rel_alumno_division' => $rel_alumno_division)) ?>
+</div>
+
+<div id="sf_admin_content">
+<?php include_partial('relAlumnoDivision/edit_messages', array('rel_alumno_division' => $rel_alumno_division, 'labels' => $labels)) ?>
+<?php include_partial('relAlumnoDivision/edit_form', array('rel_alumno_division' => $rel_alumno_division, 'labels' => $labels)) ?>
+</div>
+
+<div id="sf_admin_footer">
+<?php include_partial('relAlumnoDivision/edit_footer', array('rel_alumno_division' => $rel_alumno_division)) ?>
+</div>
+
+
+
+
+</div>
Más información sobre la lista de distribución Alba-desarrollo