summaryrefslogtreecommitdiff
path: root/protected/views/verein/view.php
blob: 7c5bb32f927b9a34c584ddc3cbd11a686137a436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
$this->breadcrumbs=array(
	'Vereine'=>array('index'),
	$model->name,
);

$this->menu=array(
	array('label'=>'Vereine verwalten', '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?')),
);
?>

<h3><?php echo $model->name; ?></h3>
<?php if ($model->bild) {
	echo CHtml::image($model->bild,'Vereinslogo '.$model->name, array("class" => "float-left bordered"));
}?>
<p><?php echo $model->beschreibung?></p>
<div class="float-left box">
<?php $this->widget('zii.widgets.CListView', array(
      'dataProvider'=>new CArrayDataProvider($model->angebote, array()),
      'itemView'=>'_shortangebot',   // refers to the partial view named '_post'
      'sortableAttributes'=>array(
          'name',
          /*'create_time'=>'Post Time',*/
      ),
  ));?>

<ul><?php
foreach ($model->veranstaltungen as $value) {
	echo "<li>".CHTML::link($value->titel,array("veranstaltung/view","id"=>$value->id))."</li>";
}

?>
</ul>
</div>
<div class="box info float-right"><h6>Kontaktdaten</h6><?php echo $model->kontaktdaten?></div>