From 8c4cd2ac12048caa450cd20efbaa06a1ffbab47a Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 8 Jul 2013 15:31:57 -0400 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=B5es=20de=20sintaxe=20no=20Contr?= =?UTF-8?q?oller=20CertifiedModels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Controller/CertifiedModelsController.php | 16 +++--- Plugin/PagSeguro | 2 +- View/CertifiedModels/admin_index.ctp | 63 ++++++++++++------------ View/Layouts/default.ctp | 10 ++-- View/Messages/admin_send_message.ctp | 6 +-- 5 files changed, 46 insertions(+), 51 deletions(-) diff --git a/Controller/CertifiedModelsController.php b/Controller/CertifiedModelsController.php index d59ab91..026d78f 100644 --- a/Controller/CertifiedModelsController.php +++ b/Controller/CertifiedModelsController.php @@ -41,7 +41,7 @@ public function add() { $this->CertifiedModel->create(); if ($this->CertifiedModel->save($this->request->data)) { $this->Session->setFlash( - __('O certificado foi salvo', __('certified model')), + __('O certificado foi salvo'), 'alert', array( 'plugin' => 'TwitterBootstrap', @@ -51,7 +51,7 @@ public function add() { $this->redirect(array('action' => 'index')); } else { $this->Session->setFlash( - __('O certificado não foi salvo. Por favor, tente novamente.', __('certified model')), + __('O certificado não foi salvo. Por favor, tente novamente.'), 'alert', array( 'plugin' => 'TwitterBootstrap', @@ -76,7 +76,7 @@ public function edit($id = null) { if ($this->request->is('post') || $this->request->is('put')) { if ($this->CertifiedModel->save($this->request->data)) { $this->Session->setFlash( - __('O certificado foi alterado', __('certified model')), + __('O certificado foi alterado'), 'alert', array( 'plugin' => 'TwitterBootstrap', @@ -86,7 +86,7 @@ public function edit($id = null) { $this->redirect(array('action' => 'index')); } else { $this->Session->setFlash( - __('O certificado não foi alterado. Por favor, tente novamente.', __('certified model')), + __('O certificado não foi alterado. Por favor, tente novamente.'), 'alert', array( 'plugin' => 'TwitterBootstrap', @@ -115,7 +115,7 @@ public function delete($id = null) { } if ($this->CertifiedModel->delete()) { $this->Session->setFlash( - __('O certificado foi excluído', __('certified model')), + __('O certificado foi excluído'), 'alert', array( 'plugin' => 'TwitterBootstrap', @@ -125,7 +125,7 @@ public function delete($id = null) { $this->redirect(array('action' => 'index')); } $this->Session->setFlash( - __('O certificado não foi excluído', __('certified model')), + __('O certificado não foi excluído'), 'alert', array( 'plugin' => 'TwitterBootstrap', @@ -167,7 +167,7 @@ public function admin_add() { $this->CertifiedModel->create(); if ($this->CertifiedModel->save($this->request->data)) { $this->Session->setFlash( - __('O certificado foi salvo', __('certified model')), + __('O certificado foi salvo'), 'alert', array( 'plugin' => 'TwitterBootstrap', @@ -177,7 +177,7 @@ public function admin_add() { $this->redirect(array('action' => 'index')); } else { $this->Session->setFlash( - __('O certificado não foi salvo. Por favor, tente novamente.', __('certified model')), + __('O certificado não foi salvo. Por favor, tente novamente.'), 'alert', array( 'plugin' => 'TwitterBootstrap', diff --git a/Plugin/PagSeguro b/Plugin/PagSeguro index 55300a6..7a2c7cf 160000 --- a/Plugin/PagSeguro +++ b/Plugin/PagSeguro @@ -1 +1 @@ -Subproject commit 55300a61019b83b025349718c2b791f9f00516b8 +Subproject commit 7a2c7cf43884428f66a316e1820295d9dbee12a5 diff --git a/View/CertifiedModels/admin_index.ctp b/View/CertifiedModels/admin_index.ctp index 8e40128..8f67854 100755 --- a/View/CertifiedModels/admin_index.ctp +++ b/View/CertifiedModels/admin_index.ctp @@ -1,33 +1,32 @@ -
- + -
-

- - - - - - - - - - - - - - - -
Paginator->sort('CertifiedModel.title', __('Título'));?>Paginator->sort('CertifiedModel.description', __('Descrição'));?>Paginator->sort('CertifiedModel.image', __('Imagem'));?>
- Form->postLink(__('Remover'), array('action' => 'delete', $model['CertifiedModel']['id']), null, __('Você quer mesmo apagar o modelo \'%s\'?', $model['CertifiedModel']['title'])); - ?> -
-
-
+
+

+ + + + + + + + + + + + + + + +
Paginator->sort('CertifiedModel.title', __('Título'));?>Paginator->sort('CertifiedModel.description', __('Descrição'));?>Paginator->sort('CertifiedModel.image', __('Imagem'));?>
+ + Form->postLink(__('Remover'), array('action' => 'delete', $model['CertifiedModel']['id']), null, __('Você quer mesmo apagar o modelo \'%s\'?', $model['CertifiedModel']['title'])); + ?> +
+
\ No newline at end of file diff --git a/View/Layouts/default.ctp b/View/Layouts/default.ctp index acfdd92..8aebcde 100755 --- a/View/Layouts/default.ctp +++ b/View/Layouts/default.ctp @@ -57,13 +57,11 @@ -
- element('alerts'); - - echo $this->fetch('content'); - ?> + element('alerts'); ?> +
+
+ fetch('content'); ?>