diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-05-15 21:30:11 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-05-15 21:30:11 +0200 |
| commit | 5759435f4da8ec800ba9af0fbbf7d6691e9ed56c (patch) | |
| tree | a3e6f6c676743e89b11804a03bd4f1e837983be9 /protected/views/veranstaltung/index.php | |
| parent | 94bdb31c204cdae3ca820828d4731f11f6ffeeae (diff) | |
diverse Layoutings
Diffstat (limited to 'protected/views/veranstaltung/index.php')
| -rw-r--r-- | protected/views/veranstaltung/index.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/protected/views/veranstaltung/index.php b/protected/views/veranstaltung/index.php new file mode 100644 index 0000000..13f1dcf --- /dev/null +++ b/protected/views/veranstaltung/index.php @@ -0,0 +1,35 @@ +<?php +$this->breadcrumbs=array( + 'Veranstaltungen', +); + +$this->menu=array( + array('label'=>'Veranstaltung erstellen', 'url'=>array('create')), +);?> + +<h3>Veranstaltungen</h3> + + +<?php $this->widget('zii.widgets.grid.CGridView', array( + 'id'=>'veranstaltung-grid', + 'dataProvider'=>$model->search(), + 'filter'=>$model, + 'columns'=>array( + 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($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( + 'class'=>'CButtonColumn', + ), + ), +)); ?> |
