]> source.dussan.org Git - nextcloud-server.git/commitdiff
apps/contacts: only display buttons if there is a contact
authorFlorian Pritz <bluewind@xinu.at>
Fri, 23 Sep 2011 11:15:01 +0000 (13:15 +0200)
committerFlorian Pritz <bluewind@xinu.at>
Sat, 24 Sep 2011 16:41:59 +0000 (18:41 +0200)
If you don't have any contacts, it would display a non-functioning
delete button.

Signed-off-by: Florian Pritz <bluewind@xinu.at>
apps/contacts/templates/part.details.php

index c6bedcdd913e95107e9fdd9cbe7a09ff9bccf1f8..254d54a4e8edc1b539769f087624d3b83ed4fa6b 100644 (file)
@@ -27,9 +27,8 @@
                        <?php endif; ?>
                <?php endforeach; ?>
        </table>
+       <form>
+               <input type="button" id="contacts_deletecard" value="<?php echo $l->t('Delete');?>">
+               <input type="button" id="contacts_addproperty" value="<?php echo $l->t('Add Property');?>">
+       </form>
 <?php endif; ?>
-
-<form>
-       <input type="button" id="contacts_deletecard" value="<?php echo $l->t('Delete');?>">
-       <input type="button" id="contacts_addproperty" value="<?php echo $l->t('Add Property');?>">
-</form>