diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-09-23 13:15:01 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-09-24 18:41:59 +0200 |
commit | 037d0e9640e93e2df28963b7383562572ccbdd10 (patch) | |
tree | f9107dde56d9d7dc87653f8bca369b9d297e835e /apps/contacts | |
parent | 983445cd39e64de52cadc2af9a716bc31c5e17e2 (diff) | |
download | nextcloud-server-037d0e9640e93e2df28963b7383562572ccbdd10.tar.gz nextcloud-server-037d0e9640e93e2df28963b7383562572ccbdd10.zip |
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.php | 9 |
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> |