summaryrefslogtreecommitdiff
path: root/protected/views/myVeranstaltung/index.php
diff options
context:
space:
mode:
authorTristan Zur <tzur@ccwn.org>2012-05-16 18:14:16 +0200
committerTristan Zur <tzur@ccwn.org>2012-05-16 18:14:16 +0200
commit3cb7fbfceae978d2b87ae976bf4536c3461bb868 (patch)
tree36d42842f3dfbc8a9598ea519792933bac99c3f8 /protected/views/myVeranstaltung/index.php
parent48f25c5eadd2a82a365b034a59b3cba4536a1e74 (diff)
Initiale Veranstaltungsverwaltung für die Vereine hinzugefügt
Diffstat (limited to 'protected/views/myVeranstaltung/index.php')
-rw-r--r--protected/views/myVeranstaltung/index.php36
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',
+ ),
+ ),
)); ?>