summaryrefslogtreecommitdiff
path: root/protected/views/veranstaltung
diff options
context:
space:
mode:
Diffstat (limited to 'protected/views/veranstaltung')
-rw-r--r--protected/views/veranstaltung/index.php6
-rw-r--r--protected/views/veranstaltung/view.php6
2 files changed, 9 insertions, 3 deletions
diff --git a/protected/views/veranstaltung/index.php b/protected/views/veranstaltung/index.php
index 35f2ec7..caaa91e 100644
--- a/protected/views/veranstaltung/index.php
+++ b/protected/views/veranstaltung/index.php
@@ -17,8 +17,12 @@ $this->menu=array(
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'veranstaltung-grid',
- 'dataProvider'=>$model->search(),
+ 'dataProvider'=>$model->sortedDESC()->search(),
'filter'=>$model,
+ 'rowCssClassExpression' => '
+ ( $row%2 ? $this->rowCssClass[1] : $this->rowCssClass[0] ) .
+ ( $data->thisYear ? null : " old" )
+ ',
'columns'=>array(
array('header'=>'Verein',
'name'=>'verein_id',
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'),
),
)); ?>