summaryrefslogtreecommitdiff
path: root/protected/views/myVeranstaltung/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/views/myVeranstaltung/index.php')
-rw-r--r--protected/views/myVeranstaltung/index.php38
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',
+ ),
+ ),
+)); ?>