Only expose delete button to contacts with no contracts

else the delete fails anyway with foreign key constraint