From 037d0e9640e93e2df28963b7383562572ccbdd10 Mon Sep 17 00:00:00 2001
From: Florian Pritz <bluewind@xinu.at>
Date: Fri, 23 Sep 2011 13:15:01 +0200
Subject: [PATCH] apps/contacts: only display buttons if there is a contact

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 | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/apps/contacts/templates/part.details.php b/apps/contacts/templates/part.details.php
index c6bedcdd91..254d54a4e8 100644
--- a/apps/contacts/templates/part.details.php
+++ b/apps/contacts/templates/part.details.php
@@ -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>
-- 
GitLab