diff options
Diffstat (limited to 'protected/views/speisTrank/view.php')
| -rw-r--r-- | protected/views/speisTrank/view.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/protected/views/speisTrank/view.php b/protected/views/speisTrank/view.php new file mode 100644 index 0000000..65968ae --- /dev/null +++ b/protected/views/speisTrank/view.php @@ -0,0 +1,24 @@ +<?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'=>'Are you sure you want to delete this item?')), +); +?> + +<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'), + ), +)); ?> |
