From 599837e2e293a1984753795d2e3e194fff8f35d5 Mon Sep 17 00:00:00 2001 From: roberto Date: Fri, 21 Sep 2012 11:51:17 +0000 Subject: [PATCH] =?UTF-8?q?Se=20introduce=20pantalla=20de=20mensaje=20de?= =?UTF-8?q?=20rasultado=20en=20confirmaci=C3=B3n=20de=20registro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_PROFIND_Web/trunk@6 3fe1ab16-cfe0-e34b-8c9f-7d8c168d430d --- .../controllers/RegistroUsuarioController.php | 12 ++++++---- www/themes/profind/views/layouts/mensajes.php | 24 +++++++++++++++++++ .../registrousuario/confirmacion_usuario.php | 11 +++++++++ .../registrousuario/error_confirmacion.php | 11 +++++++++ 4 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 www/themes/profind/views/layouts/mensajes.php create mode 100644 www/themes/profind/views/registrousuario/confirmacion_usuario.php create mode 100644 www/themes/profind/views/registrousuario/error_confirmacion.php diff --git a/www/protected/controllers/RegistroUsuarioController.php b/www/protected/controllers/RegistroUsuarioController.php index 3941e67..18e9754 100644 --- a/www/protected/controllers/RegistroUsuarioController.php +++ b/www/protected/controllers/RegistroUsuarioController.php @@ -7,6 +7,10 @@ class RegistroUsuarioController extends Controller { public $defaultAction = 'registrar'; + public function init(){ + $this->layout = '/layouts/mensajes'; + } + public function accessRules() { return array( @@ -93,16 +97,16 @@ class RegistroUsuarioController extends Controller { $usuario->estado = Usuario::ESTADO_ACTIVO; $usuario->clave_seguridad = $usuario->encrypt(microtime()); $usuario->save(); - $this->enviarMailConfirmacionActivacion($usuario); - //$this->render('/user/message', array('title' => Yii::t("User activation"), 'content' => Yii::t("You account is activated."))); + $this->enviarMailConfirmacionActivacion($usuario); + $this->render('confirmacion_usuario'); Yii::log ("You account is activated."); } else { - //$this->render('/user/message', array('title' => Yii::t("User activation"), 'content' => Yii::t("Incorrect activation URL."))); + $this->render('error_confirmacion'); Yii::log ("Incorrect activation URL. 2 "); } } else { - //$this->render('/user/message', array('title' => Yii::t("User activation"), 'content' => Yii::t("Incorrect activation URL."))); + $this->render('error_confirmacion'); Yii::log ("Incorrect activation URL. 1"); } } diff --git a/www/themes/profind/views/layouts/mensajes.php b/www/themes/profind/views/layouts/mensajes.php new file mode 100644 index 0000000..1705a95 --- /dev/null +++ b/www/themes/profind/views/layouts/mensajes.php @@ -0,0 +1,24 @@ + + + + + + + <?php echo CHtml::encode($this->pageTitle); ?> + + + + + + + + +
+
+ +
+
+ + + + \ No newline at end of file diff --git a/www/themes/profind/views/registrousuario/confirmacion_usuario.php b/www/themes/profind/views/registrousuario/confirmacion_usuario.php new file mode 100644 index 0000000..18d05c4 --- /dev/null +++ b/www/themes/profind/views/registrousuario/confirmacion_usuario.php @@ -0,0 +1,11 @@ + + + +

Gracias por registrarse en PROFIND

+

+ Gracias por registrarse en PROFIND.
+ Su cuenta ha sido confirmada. +

+

El equipo de PROFIND

+ + \ No newline at end of file diff --git a/www/themes/profind/views/registrousuario/error_confirmacion.php b/www/themes/profind/views/registrousuario/error_confirmacion.php new file mode 100644 index 0000000..d97e642 --- /dev/null +++ b/www/themes/profind/views/registrousuario/error_confirmacion.php @@ -0,0 +1,11 @@ + + + +

Se ha producido un error, al registrarse en PROFIND

+

+ Disculpe las molestias, pongase en contacto con PROFIND.
+ Para solucionar el problema. +

+

El equipo de PROFIND

+ + \ No newline at end of file