summaryrefslogtreecommitdiff
path: root/protected/views/myAngebot
diff options
context:
space:
mode:
Diffstat (limited to 'protected/views/myAngebot')
-rw-r--r--protected/views/myAngebot/_form.php3
-rw-r--r--protected/views/myAngebot/create.php2
-rw-r--r--protected/views/myAngebot/index.php10
3 files changed, 10 insertions, 5 deletions
diff --git a/protected/views/myAngebot/_form.php b/protected/views/myAngebot/_form.php
index b52a5cc..409862b 100644
--- a/protected/views/myAngebot/_form.php
+++ b/protected/views/myAngebot/_form.php
@@ -14,7 +14,7 @@
<?php $this->widget('zii.widgets.jui.CJuiAutoComplete', array(
'name'=>'angebot_name',
'source'=>$angebote,
- 'value'=>$model->angebot->name,
+ 'value'=>(null != $model->angebot) ? $model->angebot->name : '',
// additional javascript options for the autocomplete plugin
'options'=>array(
'minLength'=>'2',
@@ -44,6 +44,7 @@
'style'=>'height:20px;'
),
)); ?>
+ <?php echo $form->hiddenField($model, 'angebot_id'); ?>
<?php echo $form->error($model, 'angebot_id'); ?>
</div>
diff --git a/protected/views/myAngebot/create.php b/protected/views/myAngebot/create.php
index edddd41..41afb85 100644
--- a/protected/views/myAngebot/create.php
+++ b/protected/views/myAngebot/create.php
@@ -11,4 +11,4 @@ $this->menu=array(
<h1>Kulinarisches Angebot erstellen</h1>
-<?php echo $this->renderPartial('_form', array('model'=>$model, 'angebote'=>$angebote)); ?> \ No newline at end of file
+<?php echo $this->renderPartial('_form', array('model'=>$model, 'angebote'=>$angebote, 'einheiten'=>$einheiten)); ?> \ No newline at end of file
diff --git a/protected/views/myAngebot/index.php b/protected/views/myAngebot/index.php
index 0c7fc43..1210040 100644
--- a/protected/views/myAngebot/index.php
+++ b/protected/views/myAngebot/index.php
@@ -1,10 +1,14 @@
<?php
$this->breadcrumbs=array(
- 'Speis & Trank',
-);?>
+ 'Unsere Angebote',
+);
+$this->menu=array(
+ array('label'=>'Kulinarisches Angebot erstellen', 'url'=>array('create')),
+);
+?>
-<h1>Meine Angebote</h1>
+<h1>Unsere Angebote</h1>
<?php $this->renderPartial('/common/_comparison_text'); ?>