summaryrefslogtreecommitdiff
path: root/protected/views/veranstaltung/view.php
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2014-05-08 14:30:15 +0200
committerPatrick Seeger <pseeger@ccwn.org>2014-05-08 14:30:15 +0200
commit9631ea589c6fbbb267e901a691b8566cc4891803 (patch)
tree2d6eadfba77297cc29a1b665d3db028656cfd18c /protected/views/veranstaltung/view.php
parent4f3fb96a75df63f8d611bcbadcdc6f33f33c8998 (diff)
Anzeige von alten Veranstaltungen verbessert.
Diffstat (limited to 'protected/views/veranstaltung/view.php')
-rw-r--r--protected/views/veranstaltung/view.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/protected/views/veranstaltung/view.php b/protected/views/veranstaltung/view.php
index 55444d8..4579060 100644
--- a/protected/views/veranstaltung/view.php
+++ b/protected/views/veranstaltung/view.php
@@ -13,7 +13,9 @@ $this->menu=array(
?>
<h1><?php echo $model->titel; ?></h1>
-
+<?php if(!$model->thisYear) {?>
+ <div class="box " style="background-color:yellow;"><h2>Achtung: Termin in der Vergangenheit</h2><p>Dieser Termin liegt in der Vergangenheit und wird nicht auf der Seite angezeigt werden.</p></div>
+<?php }?>
<?php $this->widget('zii.widgets.CDetailView', array(
'data'=>$model,
'attributes'=>array(
@@ -23,6 +25,6 @@ $this->menu=array(
array('label'=>'Endzeit', 'value'=>Format::displayDateTime($model->endzeit)),
'beschreibung:html',
array('label'=>'Standort', 'value'=>($model->standort) ? $model->standort->name : null),
- array('label'=>'Öfentlich', 'value'=>CHtml::image($model->published ? "images/ok.png" : "images/nok.png", $model->published ? "ok.png" : "nok.png"), 'type'=>'raw'),
+ array('label'=>'Öffentlich', 'value'=>CHtml::image($model->published ? "images/ok.png" : "images/nok.png", $model->published ? "ok.png" : "nok.png"), 'type'=>'raw'),
),
)); ?>