]> source.dussan.org Git - nextcloud-server.git/commitdiff
Calendar selection only available if there are more than one.
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>
Thu, 23 Feb 2012 21:26:31 +0000 (22:26 +0100)
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>
Thu, 23 Feb 2012 21:28:14 +0000 (22:28 +0100)
apps/calendar/templates/part.eventform.php

index 49214aca77cd8c63a65bca5374826649cf5c9936..8a8f420f84636041c36ebab930e7c3445b2ceb51 100644 (file)
@@ -17,6 +17,7 @@
                                        ?>
                                </select>
                        </td>
+                       <?php if(count($_['calendar_options']) > 1) { ?>
                        <th width="75px">&nbsp;&nbsp;&nbsp;<?php echo $l->t("Calendar");?>:</th>
                        <td>
                                <select style="width:140px;" name="calendar">
                                        ?>
                                </select>
                        </td>
+                       <?php } else { ?>
+                       <th width="75px">&nbsp;</th>
+                       <td>
+                               <input type="hidden" name="calendar" value="<?php echo $_['calendar_options'][0]['id'] ?>">
+                       </td>
+                       <?php } ?>
                </tr>
        </table>
        <hr>