[% content_only = 1 # no html wrappers %] <option value="">--select one--</option> [% FOREACH entry IN diagnoses; NEXT UNLESS entry.active.match('yes') %] <option value="[% entry.id %]">[% entry.name %]</option> [% END %]