add show form is broken up into tabs.
This commit is contained in:
parent
42e2e0d407
commit
c83244fb3a
8 changed files with 38 additions and 159 deletions
|
@ -98,19 +98,19 @@ class ScheduleController extends Zend_Controller_Action
|
|||
|
||||
$data = $request->getPost();
|
||||
|
||||
if ($formWhat->isValid($data) && $formWhen->isValid($data) && $formWho->isValid($data) && $formStyle->isValid($data)) {
|
||||
|
||||
if ($formStyle->isValid($data) && $formWhen->isValid($data) && $formWho->isValid($data) && $formStyle->isValid($data)) {
|
||||
|
||||
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
|
||||
|
||||
$show = new Show(new User($userInfo->id, $userInfo->type));
|
||||
$overlap = $show->addShow($form->getValues());
|
||||
$overlap = $show->addShow($data);
|
||||
|
||||
if(isset($overlap)) {
|
||||
$this->view->overlap = $overlap;
|
||||
$this->view->form = $this->view->render('schedule/add-show-dialog.phtml');
|
||||
}
|
||||
|
||||
return;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue