summaryrefslogtreecommitdiff
path: root/manager
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2010-06-28 16:13:14 +0200
committerMichael Tänzer <neo@nhng.de>2010-06-28 16:13:14 +0200
commita1f716c45f882365e02a072b42a9ad05d34a39df (patch)
tree498e317083e3c68b3fb07096016d7dbe4e15a708 /manager
parent87d25d702414bb8671a78264a1e41f90ecb3cd94 (diff)
downloadcacert-mgr-a1f716c45f882365e02a072b42a9ad05d34a39df.tar.gz
cacert-mgr-a1f716c45f882365e02a072b42a9ad05d34a39df.tar.xz
cacert-mgr-a1f716c45f882365e02a072b42a9ad05d34a39df.zip
Restructure to have the index action present an overview
The index action should display an overview over the available actions Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'manager')
-rw-r--r--manager/application/controllers/AddPointsController.php12
-rw-r--r--manager/application/views/scripts/add-points/assuranceform.phtml (renamed from manager/application/views/scripts/add-points/index.phtml)0
2 files changed, 4 insertions, 8 deletions
diff --git a/manager/application/controllers/AddPointsController.php b/manager/application/controllers/AddPointsController.php
index 0371718..95b524b 100644
--- a/manager/application/controllers/AddPointsController.php
+++ b/manager/application/controllers/AddPointsController.php
@@ -21,21 +21,17 @@ class AddPointsController extends Zend_Controller_Action
public function indexAction()
{
- $this->view->assurance_form = $this->getAssuranceForm();
- $this->render('index');
+ // Just render the view
+ return;
}
public function assuranceAction()
{
// Validate form
- if (!$this->getRequest()->isPost()) {
- return $this->_forward('index');
- }
-
$form = $this->getAssuranceForm();
- if (!$form->isValid($_POST)) {
+ if (!$this->getRequest()->isPost() || !$form->isValid($_POST)) {
$this->view->assurance_form = $form;
- return $this->render('index');
+ return $this->render('assuranceform');
}
// Form is valid -> get values for processing
diff --git a/manager/application/views/scripts/add-points/index.phtml b/manager/application/views/scripts/add-points/assuranceform.phtml
index b627b78..b627b78 100644
--- a/manager/application/views/scripts/add-points/index.phtml
+++ b/manager/application/views/scripts/add-points/assuranceform.phtml