summaryrefslogtreecommitdiff
path: root/protected/views/standort/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/views/standort/view.php')
-rw-r--r--protected/views/standort/view.php27
1 files changed, 10 insertions, 17 deletions
diff --git a/protected/views/standort/view.php b/protected/views/standort/view.php
index 0674ce9..53d5440 100644
--- a/protected/views/standort/view.php
+++ b/protected/views/standort/view.php
@@ -12,7 +12,7 @@ $this->menu=array(
);
?>
-<h3>Standort "<?php echo $model->name ?>"</h3>
+<h3><?php echo ($model->type == "Bühne") ? "Bühne": "Standort" ?> "<?php echo $model->name ?>"</h3>
<p>
<?php Yii::import('ext.egmap.*');
@@ -48,21 +48,14 @@ $gMap->enableMarkerClusterer(new EGMapMarkerClusterer());
$gMap->renderMap();
?>
</p>
-<h6>Folgende Vereine finden sich <?php echo $model->name?></h6>
<?php
-$dataProvider=new CActiveDataProvider('Verein', array(
- 'criteria'=>array(
- 'condition'=>'standort_id='.$model->id,
- ),
- 'pagination'=>array(
- 'pageSize'=>20,
- ),
-
+if("Stand" == $model->type) {
+ $this->renderPartial('_standort',array(
+ 'data'=>$model,
+ ));
+} elseif ("Bühne" == $model->type) {
+ $this->renderPartial('_buehne',array(
+ 'data'=>$model,
));
-$this->widget('zii.widgets.CListView', array(
- 'dataProvider'=>$dataProvider,
- 'itemView'=>'/verein/_short',
- 'sortableAttributes'=>array(
- 'name'
- )
- ));?>
+}
+?>