summaryrefslogtreecommitdiff
path: root/protected/views/speisTrank/view.php
blob: f46fd874ef2fa07c1d17973302c2631160425164 (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
<?php
$this->breadcrumbs=array(
	'Speis & Trank'=>array('index'),
	$model->name,
);

$this->menu=array(
	array('label'=>'Speis & Trank', 'url'=>array('index')),
	array('label'=>'Kulinarisches Angebot erstellen', 'url'=>array('create')),
	array('label'=>'\''.$model->name.'\' bearbeiten', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'\''.$model->name.'\' löschen', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Willst du das kulinarische Angebot \''.$model->name.'\' wirklich löschen?')),
);
?>

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

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		array('label'=>'Kategorie', 'value'=>($model->kategorie) ? $model->kategorie->name : "-"),
		'beschreibung:html',
		array('label'=>'Öffentlich', 'value'=>CHtml::image($model->published ? "images/ok.png" : "images/nok.png", $model->published ? "ok.png" : "nok.png"), 'type'=>'raw'),
	),
)); ?>
<h3>Angeboten durch:</h3>
<?php $this->renderPartial('_angebot_vereine',array(
			'angebot_vereine'=>$model->angebot_vereine,
		)); ?>