diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-05-11 10:18:31 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-05-11 10:18:31 +0200 |
| commit | a6cd00ec233d1c7676d75224900ed1543130ac94 (patch) | |
| tree | 94f25ab6433d3a729e004dbc2610e3f7b7c69cc2 /protected/views/speisTrank/index.php | |
| parent | 5b39d6bf7f34ed52059410f3d0af3799aeff2113 (diff) | |
diverse anzeigen und experimente
Diffstat (limited to 'protected/views/speisTrank/index.php')
| -rw-r--r-- | protected/views/speisTrank/index.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/protected/views/speisTrank/index.php b/protected/views/speisTrank/index.php new file mode 100644 index 0000000..1f416cc --- /dev/null +++ b/protected/views/speisTrank/index.php @@ -0,0 +1,40 @@ +<?php +$this->breadcrumbs=array( + 'Speis & Trank', +); + +$this->menu=array( + array('label'=>'Kulinarisches Angebot erstellen', 'url'=>array('create')), +); +?> +<h1>Speis & Trank</h1> + +<?php $this->renderPartial('/common/_comparison_text'); ?> + +<?php $this->renderPartial('/common/_advanced_search',array( + 'model'=>$model, +)); ?> + +<?php $this->widget('zii.widgets.grid.CGridView', array( + 'id'=>'angebot-grid', + 'dataProvider'=>$model->search(), + 'filter'=>$model, + 'columns'=>array( + array('header'=>'Kategorie', + 'name'=>'kategorie_id', + 'filter'=>CHtml::listData(Kategorie::model()->findAll(), 'id', 'name'), + 'value'=>'($data->kategorie) ? $data->kategorie->name : "-"'), + 'name', + 'beschreibung:html', + array('header'=>'Öffentlich', + 'value'=>'CHtml::image($data->published ? "images/ok.png" : "images/nok.png", $data->published ? "ok.png" : "nok.png")', 'type'=>'raw'), + array( + 'class'=>'CButtonColumn', + "buttons"=>array( + "delete"=>array("label"=>"Löschen"), + "update"=>array("label"=>"Bearbeiten"), + "view"=>array("label"=>"Anzeigen") + ) + ), + ), +)); ?> |
