CC-84: Smart Playlists

- removed criteria subform and reverted back to original criteria options design
This commit is contained in:
denise 2012-07-24 12:12:47 -04:00
parent 64185dac95
commit c82ea30809
6 changed files with 67 additions and 415 deletions

View file

@ -76,12 +76,9 @@ class PlaylistController extends Zend_Controller_Action
$formatter = new LengthFormatter($pl->getLength());
$this->view->length = $formatter->format();
$form = new Application_Form_SmartPlaylist();
$form = new Application_Form_SmartPlaylistCriteria();
$form->removeDecorator('DtDdWrapper');
$form->startForm($pl->getId());
/*$subform = new Application_Form_SmartPlaylistCriteriaSubForm();
$form->removeDecorator('DtDdWrapper');
$form->addSubForm($subform, 'sp_set_1');*/
$this->view->form = $form;
@ -175,7 +172,7 @@ class PlaylistController extends Zend_Controller_Action
if($isAdminOrPM || $pl->getCreatorId() == $userInfo->id){
$this->view->pl = $pl;
$form = new Application_Form_SmartPlaylist();
$form = new Application_Form_SmartPlaylistCriteria();
$form->startForm($this->pl_sess->id);
$this->view->form = $form;
}
@ -503,4 +500,5 @@ class PlaylistController extends Zend_Controller_Action
die(json_encode($result));
}
}
}