protected function renderControls()
 {
     echo $this->form->typeaheadFieldControlGroup($this->model, 'name', CJavaScript::encode($this->getTypeaheadData(VideoLibrary::getTVShows(array('properties' => array())))));
     echo $this->form->dropDownListControlGroup($this->model, 'genre', $this->model->getGenres(), array('empty' => ' '));
     echo $this->form->dropDownListControlGroup($this->model, 'watchedStatus', VideoFilterForm::getWatchedStatuses(), array('empty' => ' ', 'style' => 'width: 120px;'));
     echo $this->form->typeaheadFieldControlGroup($this->model, 'actor', $this->getActorNameTypeaheadData(Actor::MEDIA_TYPE_TVSHOW));
 }
Example #2
0
 protected function renderControls()
 {
     $ctrl = Yii::app()->controller;
     echo $this->form->typeaheadFieldControlGroup($this->model, 'name', array('prefetch' => $ctrl->createUrl('typeahead/getTVShowNames')));
     echo $this->form->dropDownListControlGroup($this->model, 'genre', $this->model->getGenres(), array('empty' => ' '));
     echo $this->form->dropDownListControlGroup($this->model, 'watchedStatus', VideoFilterForm::getWatchedStatuses(), array('empty' => ' ', 'style' => 'width: 120px;'));
     echo $this->form->typeaheadFieldControlGroup($this->model, 'actor', array('prefetch' => $ctrl->createUrl('typeahead/getActorNames', array('mediaType' => Actor::MEDIA_TYPE_TVSHOW))));
 }
Example #3
0
 protected function renderControls()
 {
     $ctrl = Yii::app()->controller;
     // Wrap the movie name typeahead field in a container so we can style it
     echo CHtml::openTag('div', array('class' => 'movie-name-typeahead'));
     echo $this->form->movieNameFieldControlGroup($this->model, 'name', array('prefetch' => $ctrl->createUrl('typeahead/getMovieNames')));
     echo CHtml::closeTag('div');
     echo $this->form->dropDownListControlGroup($this->model, 'genre', $this->model->getGenres(), array('empty' => ' '));
     echo $this->form->textFieldControlGroup($this->model, 'year', array('style' => 'max-width: 40px;'));
     echo $this->form->textFieldControlGroup($this->model, 'rating', array('style' => 'max-width: 40px;'));
     echo $this->form->dropDownListControlGroup($this->model, 'quality', $this->model->getQualities(), array('empty' => ' ', 'style' => 'width: 70px;'));
     echo $this->form->dropDownListControlGroup($this->model, 'watchedStatus', VideoFilterForm::getWatchedStatuses(), array('empty' => ' ', 'style' => 'width: 120px;'));
     echo $this->form->typeaheadFieldControlGroup($this->model, 'actor', array('prefetch' => $ctrl->createUrl('typeahead/getActorNames', array('mediaType' => Actor::MEDIA_TYPE_MOVIE))));
     echo $this->form->typeaheadFieldControlGroup($this->model, 'director', array('prefetch' => $ctrl->createUrl('typeahead/getDirectorNames')));
 }