fix another ui bug of calendar
This commit is contained in:
parent
92a11011b1
commit
f9af0ef703
|
@ -19,12 +19,14 @@
|
||||||
<th width="75px"><?php echo $l->t("Category");?>:</th>
|
<th width="75px"><?php echo $l->t("Category");?>:</th>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if(count($_['categories']) == 0){
|
if(count($_['categories']) == 0 || $_['categories'] == ''){
|
||||||
echo $l->t('No categories selected');
|
echo $l->t('No categories selected');
|
||||||
}else{
|
}else{
|
||||||
echo '<select id="category" name="categories[]" multiple="multiple" title="' . $l->t("Select category") . '">';
|
echo '<ul>';
|
||||||
echo OCP\html_select_options($_['categories'], $_['categories'], array('combine'=>true));
|
foreach($_['categories'] as $categorie){
|
||||||
echo '</select>';
|
echo '<li>' . $categorie . '</li>';
|
||||||
|
}
|
||||||
|
echo '</ul>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue