Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-09-23 15:15:01 +0400
committerFlorian Pritz <bluewind@xinu.at>2011-09-24 20:41:59 +0400
commit037d0e9640e93e2df28963b7383562572ccbdd10 (patch)
treef9107dde56d9d7dc87653f8bca369b9d297e835e /apps/contacts
parent983445cd39e64de52cadc2af9a716bc31c5e17e2 (diff)
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>
Diffstat (limited to 'apps/contacts')
-rw-r--r--apps/contacts/templates/part.details.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/contacts/templates/part.details.php b/apps/contacts/templates/part.details.php
index c6bedcdd913..254d54a4e8e 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>