summaryrefslogtreecommitdiff
path: root/protected/views/speisTrank/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/views/speisTrank/index.php')
-rw-r--r--protected/views/speisTrank/index.php20
1 files changed, 3 insertions, 17 deletions
diff --git a/protected/views/speisTrank/index.php b/protected/views/speisTrank/index.php
index 4f39017..1259c97 100644
--- a/protected/views/speisTrank/index.php
+++ b/protected/views/speisTrank/index.php
@@ -9,32 +9,18 @@ $this->menu=array(
?>
<h1>Speis &amp; 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(),
+ 'dataProvider'=>$model->published()->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',
+ array('header'=>'Angebot','name'=>'name','value' => 'CHtml::link($data->name, array("/speisTrank/view", "id"=>$data->id))', 'type'=>'raw'),
'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")
- )
- ),
+
),
)); ?>