| Conditions | 2 |
| Paths | 2 |
| Total Lines | 23 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | protected function renderControls() |
||
| 14 | { |
||
| 15 | $ctrl = Yii::app()->controller; |
||
| 16 | |||
| 17 | echo $this->form->typeaheadFieldControlGroup($this->model, 'name', array( |
||
| 18 | 'prefetch'=>$ctrl->createUrl('typeahead/getTVShowNames'))); |
||
| 19 | |||
| 20 | echo $this->form->dropDownListControlGroup($this->model, 'genre', |
||
| 21 | $this->model->getGenres(), array('empty'=>' ')); |
||
| 22 | |||
| 23 | echo $this->form->dropDownListControlGroup($this->model, 'watchedStatus', |
||
| 24 | VideoFilterForm::getWatchedStatuses(), |
||
| 25 | array('empty'=>' ', 'style'=>'width: 120px;')); |
||
| 26 | |||
| 27 | if ($this->enableActorTypeahead()) |
||
| 28 | { |
||
| 29 | echo $this->form->typeaheadFieldControlGroup($this->model, 'actor', [ |
||
| 30 | 'prefetch' => $ctrl->createUrl('typeahead/getActorNames', ['mediaType' => Actor::MEDIA_TYPE_TVSHOW]), |
||
| 31 | ]); |
||
| 32 | } |
||
| 33 | else |
||
| 34 | { |
||
| 35 | echo $this->form->textFieldControlGroup($this->model, 'actor'); |
||
| 36 | } |
||
| 40 |