summaryrefslogtreecommitdiff
path: root/protected/views/veranstaltung/index.php
diff options
context:
space:
mode:
authorTristan Zur <tzur@ccwn.org>2012-04-28 17:35:58 +0200
committerTristan Zur <tzur@ccwn.org>2012-04-28 17:35:58 +0200
commit8b87e1e00a2dbd413f4cb1abb66161d7ace55b78 (patch)
tree37e0fb03cd8755fcbae3e6640718abf4e7bb3131 /protected/views/veranstaltung/index.php
parent139dbc9cc21fb1d419c6ecc80380f723e613efbc (diff)
- Verbesserung der Suchfunktionen
Diffstat (limited to 'protected/views/veranstaltung/index.php')
-rw-r--r--protected/views/veranstaltung/index.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/protected/views/veranstaltung/index.php b/protected/views/veranstaltung/index.php
index 42d1d62..35f2ec7 100644
--- a/protected/views/veranstaltung/index.php
+++ b/protected/views/veranstaltung/index.php
@@ -20,12 +20,17 @@ $this->menu=array(
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
- 'id',
- array('header'=>'Verein', 'value'=>'$data->verein->name'),
+ array('header'=>'Verein',
+ 'name'=>'verein_id',
+ 'filter'=>CHtml::listData(Verein::model()->findAll(), 'id', 'name'),
+ 'value'=>'$data->verein->name'),
'titel',
- array('header'=>'Startzeit', 'value'=>Format::displayDateTime($model->startzeit)),
- array('header'=>'Endzeit', 'value'=>Format::displayDateTime($model->endzeit)),
- array('header'=>'Standort', 'value'=>'($data->standort) ? $data->standort->name : "Kein Standort"'),
+ array('header'=>'Startzeit', 'value'=>'Format::displayDateTime($data->startzeit)'),
+ array('header'=>'Endzeit', 'value'=>'Format::displayDateTime($data->endzeit)'),
+ array('header'=>'Standort',
+ 'name'=>'standort_id',
+ 'filter'=>CHtml::listData(Standort::model()->findAll(array('condition'=>'type="Bühne"')), 'id', 'name'),
+ 'value'=>'($data->standort) ? $data->standort->name : "Kein Standort"'),
array('header'=>'Öffentlich',
'value'=>'CHtml::image($data->published ? "images/ok.png" : "images/nok.png", $data->published ? "ok.png" : "nok.png")', 'type'=>'raw'),
array(