<!-- BEGIN site/lookup.tt -->
    [% PROCESS site/popup.tt height=800, width=1200, top=50 %]
    
    [% BLOCK row;
        function_name = fname OR 'popup'; # in case > 1 popup on page
        onclick_event = "onclick='return ${function_name}(this.href);'"; %]
        [ <a href="[% app_url %]/referral-source/select/?lookup=[% t %]" [% onclick_event %]>
            [% t %]
        </a> ]
    [% END %]

    <p>
        Search <span class="acronym" title="Connecting for Health">CfH</span> data file:
        [% UNLESS type;
            FOREACH entry IN data_files.sort;
                INCLUDE row t = entry;
            END;
        %]
        [% ELSE; INCLUDE row t = type; END %]
    </p>
<!-- END site/lookup.tt -->