diff options
author | Marvin Thomas Rabe <m.rabe@echtzeitraum.de> | 2012-02-23 22:26:31 +0100 |
---|---|---|
committer | Marvin Thomas Rabe <m.rabe@echtzeitraum.de> | 2012-02-23 22:28:14 +0100 |
commit | 9df193f051c683fe69f9451ba07c4d34d480b76f (patch) | |
tree | eadf0d0f10962738f8d80c07569a9e37b7f331aa /apps | |
parent | 7c738a1384d34c7bf3044b35ed59f990ea5ae44b (diff) | |
download | nextcloud-server-9df193f051c683fe69f9451ba07c4d34d480b76f.tar.gz nextcloud-server-9df193f051c683fe69f9451ba07c4d34d480b76f.zip |
Calendar selection only available if there are more than one.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/calendar/templates/part.eventform.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/calendar/templates/part.eventform.php b/apps/calendar/templates/part.eventform.php index 49214aca77c..8a8f420f846 100644 --- a/apps/calendar/templates/part.eventform.php +++ b/apps/calendar/templates/part.eventform.php @@ -17,6 +17,7 @@ ?> </select> </td> + <?php if(count($_['calendar_options']) > 1) { ?> <th width="75px"> <?php echo $l->t("Calendar");?>:</th> <td> <select style="width:140px;" name="calendar"> @@ -26,6 +27,12 @@ ?> </select> </td> + <?php } else { ?> + <th width="75px"> </th> + <td> + <input type="hidden" name="calendar" value="<?php echo $_['calendar_options'][0]['id'] ?>"> + </td> + <?php } ?> </tr> </table> <hr> |