summaryrefslogtreecommitdiff
path: root/protected/views/veranstaltung/index.php
diff options
context:
space:
mode:
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(