summaryrefslogtreecommitdiff
path: root/protected/views/verein/view.php
blob: 0f8e8f00e67969fcf79131334c1e78617f99eeaf (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
<?php
$this->breadcrumbs=array(
	'Vereine'=>array('index'),
	$model->name,
);

$this->menu=array(
	array('label'=>'Vereine', 'url'=>array('index')),
	array('label'=>'Verein erstellen', 'url'=>array('create')),
	array('label'=>'\''.$model->slug.'\' bearbeiten', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'\''.$model->slug.'\' löschen', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Willst du \''.$model->slug.'\' wirklich löschen?')),
);
?>

<h1><?php echo $model->name; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'slug',
		/*'name',*/
		array('label'=>'Bild', 'value'=>CHtml::image($model->bild), 'type'=>'raw'),
		array('label'=>'Homepage', 'value'=>CHtml::link($model->url, $model->url, array("target"=>"_blank")), 'type'=>'raw'),
		'email',
		'kontaktdaten:html',
		'beschreibung:html',
		array('label'=>'Standort', 'value'=>($model->standort) ? $model->standort->name : "-"),
		array('label'=>'Öffentlich', 'value'=>CHtml::image($model->published ? "images/ok.png" : "images/nok.png", $model->published ? "ok.png" : "nok.png"), 'type'=>'raw'),
	),
)); ?>