diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-04-30 10:18:11 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-04-30 10:18:11 +0200 |
| commit | acec2b5dc35302147f9a9c73d837dce2f3f9958e (patch) | |
| tree | 2f88a3a657a9211331e1e63e056a089189bd0dd2 /protected/views/veranstaltung/view.php | |
| parent | 56593a21209f3ce55fe66d303dbe01b8e081778b (diff) | |
| parent | 148a216bba21cec1cbe07b60b5191791e0016d6f (diff) | |
Merge branch 'master' of ssh://proxy.ccwn.org:9044/home/ccwn/git-repos/admin.astaf.de
Diffstat (limited to 'protected/views/veranstaltung/view.php')
| -rw-r--r-- | protected/views/veranstaltung/view.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/protected/views/veranstaltung/view.php b/protected/views/veranstaltung/view.php new file mode 100644 index 0000000..5840a4e --- /dev/null +++ b/protected/views/veranstaltung/view.php @@ -0,0 +1,28 @@ +<?php +$this->breadcrumbs=array( + 'Veranstaltungen'=>array('index'), + $model->titel, +); + +$this->menu=array( + array('label'=>'Veranstaltungen', 'url'=>array('index')), + array('label'=>'Veranstaltung erstellen', 'url'=>array('create')), + array('label'=>'Veranstaltung bearbeiten', 'url'=>array('update', 'id'=>$model->id)), + array('label'=>'Veranstaltung 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->titel; ?></h1> + +<?php $this->widget('zii.widgets.CDetailView', array( + 'data'=>$model, + 'attributes'=>array( + array('label'=>'Verein', 'value'=>($model->verein) ? $model->verein->name : null), + 'titel', + array('label'=>'Startzeit', 'value'=>Format::displayDateTime($model->startzeit)), + array('label'=>'Endzeit', 'value'=>Format::displayDateTime($model->endzeit)), + 'beschreibung:html', + array('label'=>'Standort', 'value'=>($model->standort) ? $model->standort->name : null), + array('label'=>'Öfentlich', 'value'=>CHtml::image($model->published ? "images/ok.png" : "images/nok.png", $model->published ? "ok.png" : "nok.png"), 'type'=>'raw'), + ), +)); ?> |
