[% content_only = 1; # no html wrappers
    # FOREACH u IN users; INCLUDE dumper.tt dump = u.as_tree; END %]
<option value="">--select user--</option>
[% FOREACH u IN users;
    NEXT UNLESS u.active.match('yes');
    NEXT IF u.id == c.session.param('UserProfile').id; # no requirement for self-messaging
%]
    <option value="[% u.id %]">
        [% u.first_name.ucfirst; ' '; u.last_name.upper %]
    </option>
[% END %]
