From e15480683820426870be62a26dc7b91cbdc9a157 Mon Sep 17 00:00:00 2001 From: Georg Ehrke <dev@georgswebsite.de> Date: Wed, 13 Jun 2012 22:20:43 +0200 Subject: [PATCH] fix another ui bug of calendar --- apps/calendar/templates/part.showevent.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/calendar/templates/part.showevent.php b/apps/calendar/templates/part.showevent.php index 43092e3195..59684d831e 100644 --- a/apps/calendar/templates/part.showevent.php +++ b/apps/calendar/templates/part.showevent.php @@ -19,12 +19,14 @@ <th width="75px"><?php echo $l->t("Category");?>:</th> <td> <?php - if(count($_['categories']) == 0){ + if(count($_['categories']) == 0 || $_['categories'] == ''){ echo $l->t('No categories selected'); }else{ - echo '<select id="category" name="categories[]" multiple="multiple" title="' . $l->t("Select category") . '">'; - echo OCP\html_select_options($_['categories'], $_['categories'], array('combine'=>true)); - echo '</select>'; + echo '<ul>'; + foreach($_['categories'] as $categorie){ + echo '<li>' . $categorie . '</li>'; + } + echo '</ul>'; } ?> </td> -- GitLab