From 4f3fb96a75df63f8d611bcbadcdc6f33f33c8998 Mon Sep 17 00:00:00 2001
From: astaf <astaf@proxy.ccwn.org.ccwn.org>
Date: Thu, 8 May 2014 14:21:37 +0200
Subject: myVerein views wiederhergestellt.

---
 protected/views/myVerein/_view.php  | 46 +++++++++++++++++++++++++++++++++++++
 protected/views/myVerein/index.php  | 17 ++++++++++++++
 protected/views/myVerein/update.php | 15 ++++++++++++
 protected/views/myVerein/view.php   | 25 ++++++++++++++++++++
 4 files changed, 103 insertions(+)
 create mode 100644 protected/views/myVerein/_view.php
 create mode 100644 protected/views/myVerein/index.php
 create mode 100644 protected/views/myVerein/update.php
 create mode 100644 protected/views/myVerein/view.php

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 : "-")
+	),
+)); ?>
-- 
cgit v1.0-28-g1787

