summaryrefslogtreecommitdiff
path: root/protected/views/veranstaltung/index.php
blob: f058e2ef107dfebc024599b92c74b982e04e4aae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?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(
		'id',
		array('header'=>'Verein', 'value'=>'$data->verein->name'),
		'titel',
		'startzeit',
		'endzeit',
		array('header'=>'Standort', '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',
		),
	),
)); ?>