summaryrefslogtreecommitdiff
path: root/protected/views
diff options
context:
space:
mode:
Diffstat (limited to 'protected/views')
-rw-r--r--protected/views/kategorie/_search.php2
-rw-r--r--protected/views/kategorie/create.php4
-rw-r--r--protected/views/kategorie/view.php8
-rw-r--r--protected/views/layouts/main.php8
-rw-r--r--protected/views/myAngebot/_angebot_form.php44
-rw-r--r--protected/views/myAngebot/_form.php76
-rw-r--r--protected/views/myAngebot/create.php2
-rw-r--r--protected/views/myAngebot/index.php12
-rw-r--r--protected/views/myAngebot/update.php10
-rw-r--r--protected/views/myVeranstaltung/_form.php82
-rw-r--r--protected/views/myVeranstaltung/_search.php39
-rw-r--r--protected/views/myVeranstaltung/create.php14
-rw-r--r--protected/views/myVeranstaltung/index.php38
-rw-r--r--protected/views/myVeranstaltung/update.php16
-rw-r--r--protected/views/myVeranstaltung/view.php28
-rw-r--r--protected/views/speisTrank/_search.php2
-rw-r--r--protected/views/speisTrank/create.php2
-rw-r--r--protected/views/speisTrank/update.php2
-rw-r--r--protected/views/speisTrank/view.php4
-rw-r--r--protected/views/standort/_search.php2
-rw-r--r--protected/views/veranstaltung/_search.php2
-rw-r--r--protected/views/veranstaltung/view.php2
-rw-r--r--protected/views/verein/_search.php11
-rw-r--r--protected/views/verein/create.php2
-rw-r--r--protected/views/verein/index.php2
-rw-r--r--protected/views/verein/update.php4
-rw-r--r--protected/views/verein/view.php6
27 files changed, 379 insertions, 45 deletions
diff --git a/protected/views/kategorie/_search.php b/protected/views/kategorie/_search.php
index 7352abd..2c646ee 100644
--- a/protected/views/kategorie/_search.php
+++ b/protected/views/kategorie/_search.php
@@ -36,7 +36,7 @@
</div>
<div class="row buttons">
- <?php echo CHtml::submitButton('Search'); ?>
+ <?php echo CHtml::submitButton('Suchen'); ?>
</div>
<?php $this->endWidget(); ?>
diff --git a/protected/views/kategorie/create.php b/protected/views/kategorie/create.php
index 19eaba3..6912d15 100644
--- a/protected/views/kategorie/create.php
+++ b/protected/views/kategorie/create.php
@@ -5,10 +5,10 @@ $this->breadcrumbs=array(
);
$this->menu=array(
- array('label'=>'Kategorien verwalten', 'url'=>array('index')),
+ array('label'=>'Kategorien', 'url'=>array('index')),
);
?>
-<h1>Create Kategorie</h1>
+<h1>Kategorie erstellen</h1>
<?php echo $this->renderPartial('_form', array('model'=>$model)); ?> \ No newline at end of file
diff --git a/protected/views/kategorie/view.php b/protected/views/kategorie/view.php
index 2a1bc4a..d3348f9 100644
--- a/protected/views/kategorie/view.php
+++ b/protected/views/kategorie/view.php
@@ -1,14 +1,14 @@
<?php
$this->breadcrumbs=array(
- 'Kategories'=>array('index'),
+ 'Kategorien'=>array('index'),
$model->name,
);
$this->menu=array(
- array('label'=>'Kategorien verwalten', 'url'=>array('index')),
+ array('label'=>'Kategorien', 'url'=>array('index')),
array('label'=>'Kategorie erstellen', 'url'=>array('create')),
- array('label'=>'Kategorie bearbeiten', 'url'=>array('update', 'id'=>$model->id)),
- array('label'=>'Kategorie löschen', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Wollen Sie diese Kategorie wirklich löschen?')),
+ array('label'=>'\''.$model->name.'\' bearbeiten', 'url'=>array('update', 'id'=>$model->id)),
+ array('label'=>'\''.$model->name.'\' löschen', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Willst du die Kategorie \''.$model->name.'\' wirklich löschen?')),
);
?>
diff --git a/protected/views/layouts/main.php b/protected/views/layouts/main.php
index 1e499bc..7a9f52e 100644
--- a/protected/views/layouts/main.php
+++ b/protected/views/layouts/main.php
@@ -13,6 +13,8 @@
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
+ <?php Html::registerJavascript("string.js"); ?>
+
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>
@@ -27,8 +29,8 @@
<div id="mainmenu">
<?php $this->widget('zii.widgets.CMenu',array(
'items'=>array(
- array("label"=>"Mein Verein", "url"=>array("/myverein"),
- "visible"=>!Yii::app()->user->isGuest && Yii::app()->user->vereinId, "active"=>$this->id == "myverein"),
+ array("label"=>"Mein Verein", "url"=>array("/myVerein"),
+ "visible"=>!Yii::app()->user->isGuest && Yii::app()->user->vereinId, "active"=>$this->id == "myVerein"),
array("label"=>"Vereine", "url"=>array("/verein/index"),
"visible"=>!Yii::app()->user->isGuest && Yii::app()->user->isAdmin, "active"=>$this->id == "verein"),
array("label"=>"Standorte", "url"=>array("/standort/index"),
@@ -41,6 +43,8 @@
"visible"=>!Yii::app()->user->isGuest && Yii::app()->user->vereinId, "active"=>$this->id == "myAngebot"),
array("label"=>"Veranstaltungen", "url"=>array("/veranstaltung/index"),
"visible"=>!Yii::app()->user->isGuest && Yii::app()->user->isAdmin, "active"=>$this->id == "veranstaltung"),
+ array("label"=>"Veranstaltungen", "url"=>array("/myVeranstaltung/index"),
+ "visible"=>!Yii::app()->user->isGuest && Yii::app()->user->vereinId, "active"=>$this->id == "myVeranstaltung"),
array("label"=>"Audit", "url"=>array("/auditTrail/admin"),
"visible"=>!Yii::app()->user->isGuest && Yii::app()->user->isAdmin, "active"=>$this->id == "admin"),
array("label"=>"Benutzer", "url"=>array("/user/admin"),
diff --git a/protected/views/myAngebot/_angebot_form.php b/protected/views/myAngebot/_angebot_form.php
new file mode 100644
index 0000000..2ec84e7
--- /dev/null
+++ b/protected/views/myAngebot/_angebot_form.php
@@ -0,0 +1,44 @@
+<div class="form">
+
+<?php $form=$this->beginWidget('CActiveForm', array(
+ 'id'=>'angebot-dialog-form',
+ 'enableAjaxValidation'=>true,
+)); ?>
+
+ <?php $this->renderPartial('/common/_required_fields_text'); ?>
+
+ <div class="row">
+ <?php echo $form->labelEx($model,'kategorie_id'); ?>
+ <?php echo $form->dropDownList($model, "kategorie_id", CHtml::listData($kategorien, "id", "name"), array('empty' => '-- Bitte Kategorie wählen --')); ?>
+ <?php echo $form->error($model,'kategorie_id'); ?>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model,'name'); ?>
+ <?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>80)); ?>
+ <?php echo $form->error($model,'name'); ?>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model,'beschreibung'); ?>
+ <?php $this->widget('application.extensions.tinymce.ETinyMce',
+ array(
+ 'name'=>'beschreibung',
+ "value"=>$model->beschreibung,
+ 'useSwitch' => false,
+ 'editorTemplate'=>'simple',
+ "language"=>"de",
+ "height"=>"200px",
+ )
+ );
+ ?>
+ <?php echo $form->error($model,'beschreibung'); ?>
+ </div>
+
+ <div class="row buttons">
+ <?php echo CHtml::submitButton($model->isNewRecord ? 'Erstellen' : 'Speichern'); ?>
+ </div>
+
+<?php $this->endWidget(); ?>
+
+</div><!-- form --> \ No newline at end of file
diff --git a/protected/views/myAngebot/_form.php b/protected/views/myAngebot/_form.php
index f48ecc9..0ee91d5 100644
--- a/protected/views/myAngebot/_form.php
+++ b/protected/views/myAngebot/_form.php
@@ -1,3 +1,5 @@
+<?php Html::registerJavascript("angebotverein.js"); ?>
+
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
@@ -11,17 +13,24 @@
<div class="row">
<?php echo $form->labelEx($model, 'angebot_id'); ?>
- <?php echo $this->widget('zii.widgets.jui.CJuiAutoComplete', array(
- 'name'=>'city',
- 'source'=>array('ac1', 'ac2', 'ac3'),
+ <?php $this->widget('zii.widgets.jui.CJuiAutoComplete', array(
+ 'name'=>'angebot_name',
+ 'source'=>$angebote,
+ 'value'=>(null != $model->angebot) ? $model->angebot->name : '',
// additional javascript options for the autocomplete plugin
'options'=>array(
'minLength'=>'2',
+ 'select'=>'js:function(event, ui) {
+ return selectAngebot(ui.item);
+ }',
+ 'change'=>'js:changeAngebot',
),
'htmlOptions'=>array(
- 'style'=>'height:20px;'
+ 'style'=>'height:20px;',
+ 'size'=>'60'
),
)); ?>
+ <?php echo $form->hiddenField($model, 'angebot_id'); ?>
<?php echo $form->error($model, 'angebot_id'); ?>
</div>
@@ -32,6 +41,19 @@
</div>
<div class="row">
+ <?php echo $form->labelEx($model,'einheit'); ?>
+ <?php
+ if ($einheiten !== null && '' != $einheiten) {
+ echo Html::einheitenDropDownList($model, 'einheit', $einheiten);
+ } else {
+ ?><select id="AngebotVerein_einheit" style="display:none;"></select><?php
+ }
+ ?>
+ <span id="emptyEinheitenTxt" style="display: <?php echo ($einheiten !== null && '' != $einheiten) ? "none" : "inline"?>">Bitte zuerst das Angebot eingeben.</span>
+ <?php echo $form->error($model,'einheit'); ?>
+ </div>
+
+ <div class="row">
<?php echo $form->labelEx($model,'preis'); ?>
<?php echo $form->textField($model,'preis',array('size'=>60,'maxlength'=>80)); ?>
<?php echo $form->error($model,'preis'); ?>
@@ -49,3 +71,49 @@
<?php $this->endWidget(); ?>
</div>
+
+<?php
+/*
+ * The create angebot form
+ */
+?>
+
+<?php
+$this->beginWidget('zii.widgets.jui.CJuiDialog', array( // the dialog
+ 'id'=>'angebotDialog',
+ 'options'=>array(
+ 'title'=>'Neues Angebot erstellen',
+ 'autoOpen'=>false,
+ 'modal'=>true,
+ 'width'=>550,
+ 'height'=>505,
+ ),
+));?>
+<div class="divForForm"></div>
+
+<?php $this->endWidget();?>
+
+<script type="text/javascript">
+function openAngebotDialog() {
+ <?php echo CHtml::ajax(array(
+ 'url'=>array('myAngebot/createAngebot'),
+ 'data'=>'js:$("#angebot_name").serialize()',
+ 'type'=>'post',
+ 'dataType'=>'json',
+ 'success'=>'angebotVereinDialog',
+ )); ?>
+ $('#angebotDialog').dialog('open'); // Open Angebot dialog
+ return false;
+}
+
+function createAngebot() {
+ <?php echo CHtml::ajax(array(
+ 'url'=>array('myAngebot/createAngebot'),
+ 'data'=>'js:$(this).serialize()',
+ 'type'=>'post',
+ 'dataType'=>'json',
+ 'success'=>'angebotVereinDialog',
+ )); ?>
+ return false;
+}
+</script> \ No newline at end of file
diff --git a/protected/views/myAngebot/create.php b/protected/views/myAngebot/create.php
index 1a6bf5a..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)); ?> \ 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..50daeb7 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'); ?>
@@ -18,7 +22,7 @@ $this->breadcrumbs=array(
'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'=>'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',
diff --git a/protected/views/myAngebot/update.php b/protected/views/myAngebot/update.php
index e3bc87a..bf06672 100644
--- a/protected/views/myAngebot/update.php
+++ b/protected/views/myAngebot/update.php
@@ -1,17 +1,19 @@
<?php
$this->breadcrumbs=array(
'Speis & Trank'=>array('index'),
- $model->name.' bearbeiten',
+ $model->angebot->name.' bearbeiten',
);
$this->menu=array(
array('label'=>'Speis & Trank', 'url'=>array('index')),
array('label'=>'Kulinarisches Angebot erstellen', 'url'=>array('create')),
- array('label'=>$model->name.' anzeigen', 'url'=>array('view', 'id'=>$model->id)),
+ array('label'=>$model->angebot->name.' anzeigen', 'url'=>array('view', 'id'=>$model->id)),
);
?>
-<h1><?php echo $model->name; ?> bearbeiten</h1>
+<h1><?php echo $model->angebot->name; ?> bearbeiten</h1>
-<?php echo $this->renderPartial('_form', array('model'=>$model, 'kategorien'=>$kategorien)); ?> \ No newline at end of file
+<?php echo $this->renderPartial('_form', array('model'=>$model, 'angebote'=>$angebote, 'einheiten'=>$einheiten));
+//, 'kategorien'=>$kategorien
+?> \ No newline at end of file
diff --git a/protected/views/myVeranstaltung/_form.php b/protected/views/myVeranstaltung/_form.php
new file mode 100644
index 0000000..1332b44
--- /dev/null
+++ b/protected/views/myVeranstaltung/_form.php
@@ -0,0 +1,82 @@
+<div class="form">
+
+<?php $form=$this->beginWidget('CActiveForm', array(
+ 'id'=>'veranstaltung-form',
+ 'enableAjaxValidation'=>false,
+)); ?>
+
+ <?php $this->renderPartial('/common/_required_fields_text'); ?>
+
+ <?php echo $form->errorSummary($model); ?>
+
+ <div class="row">
+ <?php echo $form->labelEx($model,'titel'); ?>
+ <?php echo $form->textField($model,'titel',array('size'=>60,'maxlength'=>100)); ?>
+ <?php echo $form->error($model,'titel'); ?>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model,'startzeit'); ?>
+ <?php
+ $this->widget('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker', array(
+ 'model'=>$model,
+ 'attribute'=>'startzeit',
+ 'mode'=>'datetime',
+ // additional javascript options for the date picker plugin
+ 'options'=>array(
+ 'minDate'=>Yii::app()->params["start_date"],
+ 'maxDate'=>Yii::app()->params["end_date"],
+ ),
+ 'htmlOptions'=>array(
+ 'style'=>'height:20px;'
+ ),
+ ));
+ ?>
+ <?php echo $form->error($model,'startzeit'); ?>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model,'endzeit'); ?>
+ <?php
+ $this->widget('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker', array(
+ 'model'=>$model,
+ 'attribute'=>'endzeit',
+ 'mode'=>'datetime',
+ // additional javascript options for the date picker plugin
+ 'options'=>array(
+ 'minDate'=>Yii::app()->params["start_date"],
+ 'maxDate'=>Yii::app()->params["end_date"],
+ ),
+ 'htmlOptions'=>array(
+ 'style'=>'height:20px;'
+ ),
+ ));
+ ?>
+ <?php echo $form->error($model,'endzeit'); ?>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model,'beschreibung'); ?>
+ <?php echo $form->textArea($model,'beschreibung',array('rows'=>6, 'cols'=>50)); ?>
+ <?php echo $form->error($model,'beschreibung'); ?>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model,'standort_id'); ?>
+ <?php echo $form->dropDownList($model, "standort_id", CHtml::listData($standorte, "id", "name"), array('empty' => '-- Bitte Standort wählen --')); ?>
+ <?php echo $form->error($model,'standort_id'); ?>
+ </div>
+
+ <div class="row">
+ <?php echo $form->labelEx($model,'published'); ?>
+ <?php echo $form->checkbox($model,'published'); ?>
+ <?php echo $form->error($model,'published'); ?>
+ </div>
+
+ <div class="row buttons">
+ <?php echo CHtml::submitButton($model->isNewRecord ? 'Erstellen' : 'Speichern'); ?>
+ </div>
+
+<?php $this->endWidget(); ?>
+
+</div><!-- form --> \ No newline at end of file
diff --git a/protected/views/myVeranstaltung/_search.php b/protected/views/myVeranstaltung/_search.php
new file mode 100644
index 0000000..9fb5b02
--- /dev/null
+++ b/protected/views/myVeranstaltung/_search.php
@@ -0,0 +1,39 @@
+<div class="wide form">
+
+<?php $form=$this->beginWidget('CActiveForm', array(
+ 'action'=>Yii::app()->createUrl($this->route),
+ 'method'=>'get',
+)); ?>
+
+ <div class="row">
+ <?php echo $form->label($model,'titel'); ?>
+ <?php echo $form->textField($model,'titel',array('size'=>60,'maxlength'=>100)); ?>
+ </div>
+
+ <div class="row">
+ <?php echo $form->label($model,'startzeit'); ?>
+ <?php echo $form->textField($model,'startzeit'); ?>
+ </div>
+
+ <div class="row">
+ <?php echo $form->label($model,'endzeit'); ?>
+ <?php echo $form->textField($model,'endzeit'); ?>
+ </div>
+
+ <div class="row">
+ <?php echo $form->label($model,'beschreibung'); ?>
+ <?php echo $form->textArea($model,'beschreibung',array('rows'=>6, 'cols'=>50)); ?>
+ </div>
+
+ <div class="row">
+ <?php echo $form->label($model,'standort_id'); ?>
+ <?php echo $form->dropDownList($model, 'standort_id', CHtml::listData(Standort::model()->findAll(array('condition'=>'type="Bühne"')), 'id', 'name'), array("empty"=>"")); ?>
+ </div>
+
+ <div class="row buttons">
+ <?php echo CHtml::submitButton('Search'); ?>
+ </div>
+
+<?php $this->endWidget(); ?>
+
+</div><!-- search-form --> \ No newline at end of file
diff --git a/protected/views/myVeranstaltung/create.php b/protected/views/myVeranstaltung/create.php
new file mode 100644
index 0000000..defd84d
--- /dev/null
+++ b/protected/views/myVeranstaltung/create.php
@@ -0,0 +1,14 @@
+<?php
+$this->breadcrumbs=array(
+ 'Unsere Veranstaltungen'=>array('index'),
+ 'Neue Veranstaltung erstellen',
+);
+
+$this->menu=array(
+ array('label'=>'Unsere Veranstaltungen', 'url'=>array('index')),
+);
+?>
+
+<h1>Neue Veranstaltung erstellen</h1>
+
+<?php echo $this->renderPartial('_form', array('model'=>$model, 'standorte'=>$standorte)); ?> \ No newline at end of file
diff --git a/protected/views/myVeranstaltung/index.php b/protected/views/myVeranstaltung/index.php
new file mode 100644
index 0000000..373e056
--- /dev/null
+++ b/protected/views/myVeranstaltung/index.php
@@ -0,0 +1,38 @@
+<?php
+$this->breadcrumbs=array(
+ 'Unsere Veranstaltungen',
+);
+
+$this->menu=array(
+ array('label'=>'Neue Veranstaltung erstellen', 'url'=>array('create')),
+);
+?>
+
+<h1>Unsere Veranstaltungen</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'=>'veranstaltung-grid',
+ 'dataProvider'=>$model->search(),
+ 'filter'=>$model,
+ 'columns'=>array(
+ //'id',
+ //'verein_id',
+ 'titel',
+ array('value'=>'Format::displayDateTime($data->startzeit)', 'name'=>'startzeit'),
+ array('value'=>'Format::displayDateTime($data->endzeit)', 'name'=>'endzeit'),
+ 'beschreibung',
+ array('name'=>'standort_id',
+ 'filter'=>CHtml::listData(Standort::model()->findAll(array('condition'=>'type="Bühne"')), 'id', 'name'),
+ 'value'=>'($data->standort) ? $data->standort->name : "Kein Standort"'),
+ array('name'=>'published', 'filter'=>'', 'value'=>'CHtml::image($data->published ? "images/ok.png" : "images/nok.png", $data->published ? "ok.png" : "nok.png")', 'type'=>'raw'),
+ array(
+ 'class'=>'CButtonColumn',
+ ),
+ ),
+)); ?>
diff --git a/protected/views/myVeranstaltung/update.php b/protected/views/myVeranstaltung/update.php
new file mode 100644
index 0000000..3ee393d
--- /dev/null
+++ b/protected/views/myVeranstaltung/update.php
@@ -0,0 +1,16 @@
+<?php
+$this->breadcrumbs=array(
+ 'Unsere Veranstaltungen'=>array('index'),
+ $model->titel.' bearbeiten',
+);
+
+$this->menu=array(
+ array('label'=>'Unsere Veranstaltungen', 'url'=>array('index')),
+ array('label'=>'Neue Veranstaltung erstellen', 'url'=>array('create')),
+ array('label'=>'Diese Veranstaltung anzeigen', 'url'=>array('view', 'id'=>$model->id)),
+);
+?>
+
+<h1>Veranstaltung '<?php echo $model->titel; ?>' bearbeiten</h1>
+
+<?php echo $this->renderPartial('_form', array('model'=>$model, 'standorte'=>$standorte)); ?> \ No newline at end of file
diff --git a/protected/views/myVeranstaltung/view.php b/protected/views/myVeranstaltung/view.php
new file mode 100644
index 0000000..cb1ab82
--- /dev/null
+++ b/protected/views/myVeranstaltung/view.php
@@ -0,0 +1,28 @@
+<?php
+$this->breadcrumbs=array(
+ 'Unsere Veranstaltungen'=>array('index'),
+ $model->titel,
+);
+
+$this->menu=array(
+ array('label'=>'Unsere Veranstaltungen', 'url'=>array('index')),
+ array('label'=>'Neue Veranstaltung erstellen', 'url'=>array('create')),
+ array('label'=>'Diese Veranstaltung bearbeiten', 'url'=>array('update', 'id'=>$model->id)),
+ array('label'=>'Diese Veranstaltung löschen', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Wollen Sie diese Veranstaltung wirklich löschen?')),
+);
+?>
+
+<h1><?php echo $model->titel; ?></h1>
+
+<?php $this->widget('zii.widgets.CDetailView', array(
+ 'data'=>$model,
+ 'attributes'=>array(
+ //'verein_id',
+ //'titel',
+ array('label'=>'Startzeit', 'value'=>Format::displayDateTime($model->startzeit)),
+ array('label'=>'Endzeit', 'value'=>Format::displayDateTime($model->endzeit)),
+ 'beschreibung:html',
+ array('label'=>'Standort', 'value'=>($model->standort) ? $model->standort->name : null),
+ array('label'=>'Öffentlich', 'value'=>CHtml::image($model->published ? "images/ok.png" : "images/nok.png", $model->published ? "ok.png" : "nok.png"), 'type'=>'raw'),
+ ),
+)); ?>
diff --git a/protected/views/speisTrank/_search.php b/protected/views/speisTrank/_search.php
index a88293a..478a866 100644
--- a/protected/views/speisTrank/_search.php
+++ b/protected/views/speisTrank/_search.php
@@ -31,7 +31,7 @@
</div>
<div class="row buttons">
- <?php echo CHtml::submitButton('Search'); ?>
+ <?php echo CHtml::submitButton('Suchen'); ?>
</div>
<?php $this->endWidget(); ?>
diff --git a/protected/views/speisTrank/create.php b/protected/views/speisTrank/create.php
index 2bb32c3..bf77319 100644
--- a/protected/views/speisTrank/create.php
+++ b/protected/views/speisTrank/create.php
@@ -11,4 +11,4 @@ $this->menu=array(
<h1>Kulinarisches Angebot erstellen</h1>
-<?php echo $this->renderPartial('_form', array('model'=>$model, 'kategorien'=>$kategorien)); ?> \ No newline at end of file
+<?php echo $this->renderPartial('_form', array('model'=>$model, 'kategorien'=>$kategorien, 'einheiten'=>$einheiten)); ?> \ No newline at end of file
diff --git a/protected/views/speisTrank/update.php b/protected/views/speisTrank/update.php
index e3bc87a..e866f14 100644
--- a/protected/views/speisTrank/update.php
+++ b/protected/views/speisTrank/update.php
@@ -8,7 +8,7 @@ $this->breadcrumbs=array(
$this->menu=array(
array('label'=>'Speis & Trank', 'url'=>array('index')),
array('label'=>'Kulinarisches Angebot erstellen', 'url'=>array('create')),
- array('label'=>$model->name.' anzeigen', 'url'=>array('view', 'id'=>$model->id)),
+ array('label'=>'\''.$model->name.'\' anzeigen', 'url'=>array('view', 'id'=>$model->id)),
);
?>
diff --git a/protected/views/speisTrank/view.php b/protected/views/speisTrank/view.php
index 34f2b8a..f46fd87 100644
--- a/protected/views/speisTrank/view.php
+++ b/protected/views/speisTrank/view.php
@@ -7,8 +7,8 @@ $this->breadcrumbs=array(
$this->menu=array(
array('label'=>'Speis & Trank', 'url'=>array('index')),
array('label'=>'Kulinarisches Angebot erstellen', 'url'=>array('create')),
- array('label'=>$model->name.' bearbeiten', 'url'=>array('update', 'id'=>$model->id)),
- array('label'=>$model->name.' löschen', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
+ array('label'=>'\''.$model->name.'\' bearbeiten', 'url'=>array('update', 'id'=>$model->id)),
+ array('label'=>'\''.$model->name.'\' löschen', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Willst du das kulinarische Angebot \''.$model->name.'\' wirklich löschen?')),
);
?>
diff --git a/protected/views/standort/_search.php b/protected/views/standort/_search.php
index eeab539..a527d29 100644
--- a/protected/views/standort/_search.php
+++ b/protected/views/standort/_search.php
@@ -31,7 +31,7 @@
</div>
<div class="row buttons">
- <?php echo CHtml::submitButton('Search'); ?>
+ <?php echo CHtml::submitButton('Suchen'); ?>
</div>
<?php $this->endWidget(); ?>
diff --git a/protected/views/veranstaltung/_search.php b/protected/views/veranstaltung/_search.php
index 099603c..d9a0c0e 100644
--- a/protected/views/veranstaltung/_search.php
+++ b/protected/views/veranstaltung/_search.php
@@ -46,7 +46,7 @@
</div>
<div class="row buttons">
- <?php echo CHtml::submitButton('Search'); ?>
+ <?php echo CHtml::submitButton('Suchen'); ?>
</div>
<?php $this->endWidget(); ?>
diff --git a/protected/views/veranstaltung/view.php b/protected/views/veranstaltung/view.php
index 5840a4e..55444d8 100644
--- a/protected/views/veranstaltung/view.php
+++ b/protected/views/veranstaltung/view.php
@@ -8,7 +8,7 @@ $this->menu=array(
array('label'=>'Veranstaltungen', 'url'=>array('index')),
array('label'=>'Veranstaltung erstellen', 'url'=>array('create')),
array('label'=>'Veranstaltung bearbeiten', 'url'=>array('update', 'id'=>$model->id)),
- array('label'=>'Veranstaltung löschen', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
+ array('label'=>'Veranstaltung löschen', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Willst du diese Veranstaltung wirklich löschen?')),
);
?>
diff --git a/protected/views/verein/_search.php b/protected/views/verein/_search.php
index d06dd24..ec45c28 100644
--- a/protected/views/verein/_search.php
+++ b/protected/views/verein/_search.php
@@ -21,11 +21,6 @@
</div>
<div class="row">
- <?php echo $form->label($model,'bild'); ?>
- <?php echo $form->textField($model,'bild',array('size'=>60,'maxlength'=>100)); ?>
- </div>
-
- <div class="row">
<?php echo $form->label($model,'email'); ?>
<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>100)); ?>
</div>
@@ -47,16 +42,16 @@
<div class="row">
<?php echo $form->label($model,'standort_id'); ?>
- <?php echo $form->textField($model,'standort_id'); ?>
+ <?php echo $form->dropDownList($model, 'standort_id', CHtml::listData(Standort::model()->findAll(array('condition'=>'type="Stand"')), 'id', 'name'), array("empty"=>"")); ?>
</div>
<div class="row">
<?php echo $form->label($model,'published'); ?>
- <?php echo $form->textField($model,'published'); ?>
+ <?php echo $form->checkbox($model,'published'); ?>
</div>
<div class="row buttons">
- <?php echo CHtml::submitButton('Search'); ?>
+ <?php echo CHtml::submitButton('Suchen'); ?>
</div>
<?php $this->endWidget(); ?>
diff --git a/protected/views/verein/create.php b/protected/views/verein/create.php
index 46f088e..4526ac1 100644
--- a/protected/views/verein/create.php
+++ b/protected/views/verein/create.php
@@ -5,7 +5,7 @@ $this->breadcrumbs=array(
);
$this->menu=array(
- array('label'=>'Vereine verwalten', 'url'=>array('index'))
+ array('label'=>'Vereine', 'url'=>array('index'))
);
?>
diff --git a/protected/views/verein/index.php b/protected/views/verein/index.php
index ca98727..45b5e67 100644
--- a/protected/views/verein/index.php
+++ b/protected/views/verein/index.php
@@ -22,7 +22,7 @@ $this->menu=array(
'filter'=>$model,
'columns'=>array(
'name',
- array('header'=>'Homepage', 'value'=>'CHtml::link($data->url, $data->url, array("target"=>"_blank"))', 'type'=>'raw'),
+ array('header'=>'Homepage', 'name'=>'url', 'value'=>'CHtml::link($data->url, $data->url, array("target"=>"_blank"))', 'type'=>'raw'),
array('header'=>'Bild', 'value'=>'CHtml::image($data->bild)', 'type'=>'raw'),
'email',
'slug',
diff --git a/protected/views/verein/update.php b/protected/views/verein/update.php
index 5230605..19cdcfe 100644
--- a/protected/views/verein/update.php
+++ b/protected/views/verein/update.php
@@ -5,9 +5,9 @@ $this->breadcrumbs=array(
);
$this->menu=array(
- array('label'=>'Vereine verwalten', 'url'=>array('admin')),
+ array('label'=>'Vereine', 'url'=>array('index')),
array('label'=>'Verein erstellen', 'url'=>array('create')),
- array('label'=>'Verein anzeigen', 'url'=>array('view', 'id'=>$model->id))
+ array('label'=>'\''.$model->slug.'\' anzeigen', 'url'=>array('view', 'id'=>$model->id))
);
?>
diff --git a/protected/views/verein/view.php b/protected/views/verein/view.php
index 6efb9e7..0f8e8f0 100644
--- a/protected/views/verein/view.php
+++ b/protected/views/verein/view.php
@@ -5,10 +5,10 @@ $this->breadcrumbs=array(
);
$this->menu=array(
- array('label'=>'Vereine verwalten', 'url'=>array('index')),
+ array('label'=>'Vereine', 'url'=>array('index')),
array('label'=>'Verein erstellen', 'url'=>array('create')),
- array('label'=>'Verein bearbeiten', 'url'=>array('update', 'id'=>$model->id)),
- array('label'=>'Verein löschen', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
+ array('label'=>'\''.$model->slug.'\' bearbeiten', 'url'=>array('update', 'id'=>$model->id)),
+ array('label'=>'\''.$model->slug.'\' löschen', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Willst du \''.$model->slug.'\' wirklich löschen?')),
);
?>