summaryrefslogtreecommitdiff
path: root/protected/views/veranstaltung/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/views/veranstaltung/index.php')
-rw-r--r--protected/views/veranstaltung/index.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/protected/views/veranstaltung/index.php b/protected/views/veranstaltung/index.php
new file mode 100644
index 0000000..35f2ec7
--- /dev/null
+++ b/protected/views/veranstaltung/index.php
@@ -0,0 +1,40 @@
+<?php
+$this->breadcrumbs=array(
+ 'Veranstaltungen',
+);
+
+$this->menu=array(
+ array('label'=>'Veranstaltung erstellen', 'url'=>array('create')),
+);?>
+
+<h1>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(
+ 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',
+ ),
+ ),
+)); ?>