summaryrefslogtreecommitdiff
path: root/protected/views
diff options
context:
space:
mode:
Diffstat (limited to 'protected/views')
-rw-r--r--protected/views/speisTrank/_form.php2
-rw-r--r--protected/views/speisTrank/index.php24
-rw-r--r--protected/views/speisTrank/view.php4
3 files changed, 7 insertions, 23 deletions
diff --git a/protected/views/speisTrank/_form.php b/protected/views/speisTrank/_form.php
index c67215b..27349a4 100644
--- a/protected/views/speisTrank/_form.php
+++ b/protected/views/speisTrank/_form.php
@@ -5,7 +5,7 @@
'enableAjaxValidation'=>false,
)); ?>
- <p class="note">Mit <span class="required">*</span> gekennzeichnete Felder sind Pflichtfelder.</p>
+ <?php $this->renderPartial('/common/_required_fields_text'); ?>
<?php echo $form->errorSummary($model); ?>
diff --git a/protected/views/speisTrank/index.php b/protected/views/speisTrank/index.php
index a5936d0..48015fc 100644
--- a/protected/views/speisTrank/index.php
+++ b/protected/views/speisTrank/index.php
@@ -6,34 +6,14 @@ $this->breadcrumbs=array(
$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 $this->renderPartial('/common/_comparison_text'); ?>
-<?php echo CHtml::link('Erweiterte Suche','#',array('class'=>'search-button')); ?>
-<div class="search-form" style="display:none">
-<?php $this->renderPartial('_search',array(
+<?php $this->renderPartial('/common/_advanced_search',array(
'model'=>$model,
)); ?>
-</div><!-- search-form -->
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'angebot-grid',
diff --git a/protected/views/speisTrank/view.php b/protected/views/speisTrank/view.php
index 65968ae..34f2b8a 100644
--- a/protected/views/speisTrank/view.php
+++ b/protected/views/speisTrank/view.php
@@ -22,3 +22,7 @@ $this->menu=array(
array('label'=>'Öffentlich', 'value'=>CHtml::image($model->published ? "images/ok.png" : "images/nok.png", $model->published ? "ok.png" : "nok.png"), 'type'=>'raw'),
),
)); ?>
+<h3>Angeboten durch:</h3>
+<?php $this->renderPartial('_angebot_vereine',array(
+ 'angebot_vereine'=>$model->angebot_vereine,
+ )); ?> \ No newline at end of file