]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix another ui bug of calendar
authorGeorg Ehrke <dev@georgswebsite.de>
Wed, 13 Jun 2012 20:20:43 +0000 (22:20 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Wed, 13 Jun 2012 20:20:43 +0000 (22:20 +0200)
apps/calendar/templates/part.showevent.php

index 43092e319543276c7f6ad10d7991801ebc191caa..59684d831e56208e2b1fea1f997d6af6dbed0b25 100644 (file)
                        <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>