diff options
Diffstat (limited to 'protected/views/myVeranstaltung')
| -rw-r--r-- | protected/views/myVeranstaltung/index.php | 4 | ||||
| -rw-r--r-- | protected/views/myVeranstaltung/view.php | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/protected/views/myVeranstaltung/index.php b/protected/views/myVeranstaltung/index.php index 373e056..2471e44 100644 --- a/protected/views/myVeranstaltung/index.php +++ b/protected/views/myVeranstaltung/index.php @@ -20,6 +20,10 @@ $this->menu=array( 'id'=>'veranstaltung-grid', 'dataProvider'=>$model->search(), 'filter'=>$model, + 'rowCssClassExpression' => '
+ ( $row%2 ? $this->rowCssClass[1] : $this->rowCssClass[0] ) .
+ ( $data->thisYear ? null : " old" )
+ ', 'columns'=>array( //'id', //'verein_id', diff --git a/protected/views/myVeranstaltung/view.php b/protected/views/myVeranstaltung/view.php index cb1ab82..4c66a23 100644 --- a/protected/views/myVeranstaltung/view.php +++ b/protected/views/myVeranstaltung/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( |
