    [% FOREACH entry IN list %]
        <div style="display: block; font-size: small" id=[% entry.id %]>
            <span class="speller">[% entry.word %]</span>
            
            <div id="result_container_[% entry.id %]" style="display: inline">
                [% UNLESS entry.word.match('\d') # can't add words with numbers %]
                [ add <a href="#" onclick="load_add_word_result(                    
                        '[% app_url %]/ajax/add_word/[% entry.word %]',
                        '#result_container_[% entry.id %]'
                    ); return false">[% entry.word %]</a> to dictionary ]
                [% END %]
                
                <div class="indent" style="padding: 3px">
                [% IF entry.suggestions.size %]
                  [% FOREACH link IN entry.suggestions %]
                  <a onclick="changeText(
                        '[% entry.fieldname %]',
                        '[% entry.word %]',
                        '[% link.escaped %]',
                        '[% entry.id %]'
                    )" href="javascript:void()" style="font-weight: normal">
                    [% link.display %]
                  </a>[% UNLESS loop.last %]:[% END %]
                  [% END %]
                [% ELSE %]
                  sorry, no suggestions found
                [% END %]
                </div>
            </div>
        </div>
    [% END %]
