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>
remotes/origin/stable
Florian Pritz 14 years ago
parent 983445cd39
commit 037d0e9640
  1. 9
      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>

Loading…
Cancel
Save