Following Rob's suggestions. Let the element.php do some work instead the template files.
BTW - IMO it allows in future easily create such options for elements level as well.