summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorastaf <astaf@proxy.ccwn.org.ccwn.org>2014-05-08 14:21:37 +0200
committerastaf <astaf@proxy.ccwn.org.ccwn.org>2014-05-08 14:21:37 +0200
commit4f3fb96a75df63f8d611bcbadcdc6f33f33c8998 (patch)
tree8867c170b90290555f1cd032f34f77e245938638
parenta574c971ad1aa6032dd45dadf953ccbe242d684d (diff)
myVerein views wiederhergestellt.
-rw-r--r--protected/views/myVerein/_view.php46
-rw-r--r--protected/views/myVerein/index.php17
-rw-r--r--protected/views/myVerein/update.php15
-rw-r--r--protected/views/myVerein/view.php25
4 files changed, 103 insertions, 0 deletions
diff --git a/protected/views/myVerein/_view.php b/protected/views/myVerein/_view.php
new file mode 100644
index 0000000..fe5758c
--- /dev/null
+++ b/protected/views/myVerein/_view.php
@@ -0,0 +1,46 @@
+<div class="view">
+
+ <b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
+ <?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
+ <br />
+
+ <b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
+ <?php echo CHtml::encode($data->name); ?>
+ <br />
+
+ <b><?php echo CHtml::encode($data->getAttributeLabel('url')); ?>:</b>
+ <?php echo CHtml::encode($data->url); ?>
+ <br />
+
+ <b><?php echo CHtml::encode($data->getAttributeLabel('bild')); ?>:</b>
+ <?php echo CHtml::encode($data->bild); ?>
+ <br />
+
+ <b><?php echo CHtml::encode($data->getAttributeLabel('email')); ?>:</b>
+ <?php echo CHtml::encode($data->email); ?>
+ <br />
+
+ <b><?php echo CHtml::encode($data->getAttributeLabel('slug')); ?>:</b>
+ <?php echo CHtml::encode($data->slug); ?>
+ <br />
+
+ <b><?php echo CHtml::encode($data->getAttributeLabel('kontaktdaten')); ?>:</b>
+ <?php echo CHtml::encode($data->kontaktdaten); ?>
+ <br />
+
+ <?php /*
+ <b><?php echo CHtml::encode($data->getAttributeLabel('beschreibung')); ?>:</b>
+ <?php echo CHtml::encode($data->beschreibung); ?>
+ <br />
+
+ <b><?php echo CHtml::encode($data->getAttributeLabel('standort_id')); ?>:</b>
+ <?php echo CHtml::encode($data->standort_id); ?>
+ <br />
+
+ <b><?php echo CHtml::encode($data->getAttributeLabel('published')); ?>:</b>
+ <?php echo CHtml::encode($data->published); ?>
+ <br />
+
+ */ ?>
+
+</div> \ No newline at end of file
diff --git a/protected/views/myVerein/index.php b/protected/views/myVerein/index.php
new file mode 100644
index 0000000..640dfa1
--- /dev/null
+++ b/protected/views/myVerein/index.php
@@ -0,0 +1,17 @@
+<?php
+$this->breadcrumbs=array(
+ 'Vereins',
+);
+
+$this->menu=array(
+ array('label'=>'Create Verein', 'url'=>array('create')),
+ array('label'=>'Manage Verein', 'url'=>array('admin')),
+);
+?>
+
+<h1>Vereins</h1>
+
+<?php $this->widget('zii.widgets.CListView', array(
+ 'dataProvider'=>$dataProvider,
+ 'itemView'=>'_view',
+)); ?>
diff --git a/protected/views/myVerein/update.php b/protected/views/myVerein/update.php
new file mode 100644
index 0000000..bd1476c
--- /dev/null
+++ b/protected/views/myVerein/update.php
@@ -0,0 +1,15 @@
+<?php
+$this->breadcrumbs=array(
+ 'Mein Verein'=>array('index'),
+ $model->name=>array('view'),
+ 'Bearbeiten',
+);
+
+$this->menu=array(
+ array('label'=>'Anzeigen', 'url'=>array('view'))
+);
+?>
+
+<h1>Meinen Verein aktualisieren</h1>
+
+<?php echo $this->renderPartial('/verein/_form', array('model'=>$model)); ?> \ No newline at end of file
diff --git a/protected/views/myVerein/view.php b/protected/views/myVerein/view.php
new file mode 100644
index 0000000..52afea7
--- /dev/null
+++ b/protected/views/myVerein/view.php
@@ -0,0 +1,25 @@
+<?php
+$this->breadcrumbs=array(
+ 'Mein Verein'=>array('index'),
+ $model->name,
+);
+
+$this->menu=array(
+ array('label'=>'Bearbeiten', 'url'=>array('update'))
+);
+?>
+
+<h1>Mein Verein</h1>
+
+<?php $this->widget('zii.widgets.CDetailView', array(
+ 'data'=>$model,
+ 'attributes'=>array(
+ 'name',
+ array('label'=>'Homepage', 'value'=>CHtml::link($model->url, $model->url, array("target"=>"_blank")), 'type'=>'raw'),
+ array('label'=>'Bild', 'value'=>CHtml::image($model->bild), 'type'=>'raw'),
+ 'email',
+ 'kontaktdaten:html',
+ 'beschreibung:html',
+ array('label'=>'Standort', 'value'=>($model->standort) ? $model->standort->name : "-")
+ ),
+)); ?>