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.php57
1 files changed, 57 insertions, 0 deletions
diff --git a/protected/views/speisTrank/index.php b/protected/views/speisTrank/index.php
new file mode 100644
index 0000000..a5936d0
--- /dev/null
+++ b/protected/views/speisTrank/index.php
@@ -0,0 +1,57 @@
+<?php
+$this->breadcrumbs=array(
+ 'Speis & Trank',
+);
+
+$this->menu=array(
+ array('label'=>'Kulinarisches Angebot erstellen', 'url'=>array('create')),
+);
+
+Yii::app()->clientScript->registerScript('search', "
+$('.search-button').click(function(){
+ $('.search-form').toggle();
+ return false;
+});
+$('.search-form form').submit(function(){
+ $.fn.yiiGridView.update('angebot-grid', {
+ data: $(this).serialize()
+ });
+ return false;
+});
+");
+?>
+
+<h1>Speis &amp; Trank</h1>
+
+<p>
+Die optionale Eingabe von Vergleichsoperatoren (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
+or <b>=</b>) zu Beginn eines Suchwertes dient der Spezifikation, wie der Vergleich erfolgen soll.
+</p>
+
+<?php echo CHtml::link('Erweiterte Suche','#',array('class'=>'search-button')); ?>
+<div class="search-form" style="display:none">
+<?php $this->renderPartial('_search',array(
+ 'model'=>$model,
+)); ?>
+</div><!-- search-form -->
+
+<?php $this->widget('zii.widgets.grid.CGridView', array(
+ 'id'=>'angebot-grid',
+ 'dataProvider'=>$model->search(),
+ 'filter'=>$model,
+ 'columns'=>array(
+ array('header'=>'Kategorie', '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")
+ )
+ ),
+ ),
+)); ?>