summaryrefslogtreecommitdiff
path: root/protected/views/verein
diff options
context:
space:
mode:
Diffstat (limited to 'protected/views/verein')
-rw-r--r--protected/views/verein/_form.php2
-rw-r--r--protected/views/verein/create.php2
-rw-r--r--protected/views/verein/update.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/protected/views/verein/_form.php b/protected/views/verein/_form.php
index 9aab04d..dbda2db 100644
--- a/protected/views/verein/_form.php
+++ b/protected/views/verein/_form.php
@@ -14,7 +14,7 @@
<?php echo $form->labelEx($model,'slug'); ?>
<?php
if (Yii::app()->user->isAdmin) {
- echo $form->textField($model,'slug',array('size'=>60,'maxlength'=>255));
+ echo $form->dropDownList($model, "slug", CHtml::listData($slugs, "username", "username"), array('empty' => '-- Bitte Benutzer wählen --'));
} else {
echo CHtml::encode($model->slug);
}
diff --git a/protected/views/verein/create.php b/protected/views/verein/create.php
index 02a63f8..46f088e 100644
--- a/protected/views/verein/create.php
+++ b/protected/views/verein/create.php
@@ -11,4 +11,4 @@ $this->menu=array(
<h1>Verein erstellen</h1>
-<?php echo $this->renderPartial('_form', array('model'=>$model, 'standorte'=>$standorte)); ?> \ No newline at end of file
+<?php echo $this->renderPartial('_form', array('model'=>$model, 'standorte'=>$standorte,'slugs'=>$slugs)); ?> \ No newline at end of file
diff --git a/protected/views/verein/update.php b/protected/views/verein/update.php
index 0d37b80..5230605 100644
--- a/protected/views/verein/update.php
+++ b/protected/views/verein/update.php
@@ -13,4 +13,4 @@ $this->menu=array(
<h1>Verein '<?php echo $model->name; ?>' bearbeiten</h1>
-<?php echo $this->renderPartial('_form', array('model'=>$model, 'standorte'=>$standorte)); ?> \ No newline at end of file
+<?php echo $this->renderPartial('_form', array('model'=>$model, 'standorte'=>$standorte,'slugs'=>$slugs)); ?> \ No newline at end of file