diff options
Diffstat (limited to 'protected/views/myVeranstaltung/index.php')
| -rw-r--r-- | protected/views/myVeranstaltung/index.php | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/protected/views/myVeranstaltung/index.php b/protected/views/myVeranstaltung/index.php index 6ff8a23..f5b5893 100644 --- a/protected/views/myVeranstaltung/index.php +++ b/protected/views/myVeranstaltung/index.php @@ -1,17 +1,39 @@ <?php $this->breadcrumbs=array( - 'Veranstaltungs', + 'Unsere Veranstaltungen', ); $this->menu=array( - array('label'=>'Create Veranstaltung', 'url'=>array('create')), - array('label'=>'Manage Veranstaltung', 'url'=>array('admin')), + array('label'=>'Unsere Veranstaltungen', 'url'=>array('index')), + array('label'=>'Neue Veranstaltung erstellen', 'url'=>array('create')), ); ?> -<h1>Veranstaltungs</h1> +<h1>Unsere Veranstaltungen</h1> -<?php $this->widget('zii.widgets.CListView', array( - 'dataProvider'=>$dataProvider, - 'itemView'=>'_view', +<?php $this->renderPartial('/common/_comparison_text'); ?> + +<?php $this->renderPartial('/common/_advanced_search',array( + 'model'=>$model, +)); ?> + +<?php $this->widget('zii.widgets.grid.CGridView', array( + 'id'=>'veranstaltung-grid', + 'dataProvider'=>$model->search(), + 'filter'=>$model, + 'columns'=>array( + //'id', + //'verein_id', + 'titel', + array('value'=>'Format::displayDateTime($data->startzeit)', 'name'=>'startzeit'), + array('value'=>'Format::displayDateTime($data->endzeit)', 'name'=>'endzeit'), + 'beschreibung', + array('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('name'=>'published', 'filter'=>'', 'value'=>'CHtml::image($data->published ? "images/ok.png" : "images/nok.png", $data->published ? "ok.png" : "nok.png")', 'type'=>'raw'), + array( + 'class'=>'CButtonColumn', + ), + ), )); ?> |
