]> source.dussan.org Git - nextcloud-server.git/commitdiff
hide share tab for new events, because you can't share an event that haven't got...
authorGeorg Ehrke <dev@georgswebsite.de>
Sun, 13 May 2012 10:28:28 +0000 (12:28 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Sun, 13 May 2012 10:28:28 +0000 (12:28 +0200)
apps/calendar/templates/part.eventform.php

index b3bbf7a375b5ab2461dc6d0b66493b8c6a0f968a..2d86ce4d3182426cbba4efda1f8c7ee57fcda29e 100755 (executable)
@@ -9,7 +9,7 @@ echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid
        <li><a href="#tabs-2"><?php echo $l->t('Repeating'); ?></a></li>
        <!--<li><a href="#tabs-3"><?php echo $l->t('Alarm'); ?></a></li>
        <li><a href="#tabs-4"><?php echo $l->t('Attendees'); ?></a></li>-->
-       <?php if($_['access'] == 'owner') { ?>
+       <?php if($_['access'] == 'owner' && $_['eventid'] != 'new') { ?>
        <li><a href="#tabs-5"><?php echo $l->t('Share'); ?></a></li>
        <?php } ?>
 </ul>
@@ -246,6 +246,6 @@ echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid
 <div id="tabs-4">//Attendees</div>-->
 <?php if($_['access'] == 'owner') { ?>
 <div id="tabs-5">
-       <?php echo $this->inc('share.dropdown'); ?>
+       <?php if($_['eventid'] != 'new'){ echo $this->inc('share.dropdown'); } ?>
 </div>
 <?php } ?>