diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-05-20 16:58:26 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-05-20 16:58:26 +0200 |
| commit | 4f959ffc80e64dc9ee8383826a546723d97305d9 (patch) | |
| tree | 3a0704c0e3a9f44746739ccffa0d64acc5ab172d /protected/views/myVeranstaltung/index.php | |
| parent | acec2b5dc35302147f9a9c73d837dce2f3f9958e (diff) | |
| parent | 9aad228e1af661b9b39df83700d27e71697dc66f (diff) | |
Merge branch 'master' of ssh://proxy.ccwn.org:9044/home/ccwn/git-repos/admin.astaf.de
Diffstat (limited to 'protected/views/myVeranstaltung/index.php')
| -rw-r--r-- | protected/views/myVeranstaltung/index.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/protected/views/myVeranstaltung/index.php b/protected/views/myVeranstaltung/index.php new file mode 100644 index 0000000..373e056 --- /dev/null +++ b/protected/views/myVeranstaltung/index.php @@ -0,0 +1,38 @@ +<?php +$this->breadcrumbs=array( + 'Unsere Veranstaltungen', +); + +$this->menu=array( + array('label'=>'Neue Veranstaltung erstellen', 'url'=>array('create')), +); +?> + +<h1>Unsere Veranstaltungen</h1> + +<?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', + ), + ), +)); ?> |
