diff options
Diffstat (limited to 'protected/views/myAngebot/index.php')
| -rw-r--r-- | protected/views/myAngebot/index.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/protected/views/myAngebot/index.php b/protected/views/myAngebot/index.php new file mode 100644 index 0000000..0c7fc43 --- /dev/null +++ b/protected/views/myAngebot/index.php @@ -0,0 +1,30 @@ +<?php +$this->breadcrumbs=array( + 'Speis & Trank', +);?> + + +<h1>Meine Angebote</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'=>'Angebot', 'value'=>'$data->angebot->name', 'name'=>'angebot_id', 'filter'=>CHtml::listData(Angebot::model()->findAll(), 'id', 'name')), + array('header'=>'Verein', 'value'=>'$data->verein->name'), + array('header'=>'Menge', 'value'=>'Format::number($data->menge, $data->einheit)'), + array('header'=>'Preis', 'value'=>'Format::currency($data->preis)'), + 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' + ), + ), +)); ?>
\ No newline at end of file |
