diff options
| author | Tristan Zur <tzur@ccwn.org> | 2012-04-28 13:42:41 +0200 |
|---|---|---|
| committer | Tristan Zur <tzur@ccwn.org> | 2012-04-28 13:42:41 +0200 |
| commit | 2d4bddcbf7b816f86db6f308a4d11bc9787c1f99 (patch) | |
| tree | cb19c5a13d6fcf87c8a9a3eb5dbba4920ca1969f /protected/views/veranstaltung/view.php | |
| parent | c98745edd2c7b2f48bc3493c4dd9a061376c4720 (diff) | |
- Veranstaltungen CRUD Basisimplementierung
- Extension "CJuiDateTimePicker" hinzugefügt
- Modul "AuditTrail" hinzugefügt
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..aa48d41 --- /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 : "-"), + 'titel', + 'startzeit', + 'endzeit', + 'beschreibung:html', + array('label'=>'Standort', 'value'=>($model->standort) ? $model->standort->name : "-"), + array('label'=>'Öfentlich', 'value'=>CHtml::image($model->published ? "images/ok.png" : "images/nok.png", $model->published ? "ok.png" : "nok.png"), 'type'=>'raw'), + ), +)); ?> |
