
        <div class="row">
            <div class="label">
                <span i18n:translate="%(id)s">%(label)s</span>
    
                <div id="%(id)s_help" 
                     i18n:translate="%(id)s_help"
                     class="help" 
                     style="visibility:hidden">
                Here you add the relevant %(label)s that describe this item. You can either 
                add new ones, or use some of the existing ones. We recommend using the existing
                %(id)s if possible, try to avoid adding new %(label)s that are essentially the 
                same as the existing ones.
                <br />
                Each keyword must be on a separate line in the "selected %(id)s" textbox.
                <br />
                Existing %(label)s can be easily changed, but currently is all keywords 
                that have ever been used in the system.
                </div>
            </div>
            <div class="field" 
                  tal:define="global content%(id)s here/%(accessor)s;">
                <table>
                    <tr><td>
                    Existing %(id)s
                    <br />
                        <select id="%(id)s_predefined_keywords"
                                name="%(id)s_predefined_keywords" 
                                size="7" 
                                multiple="multiple"
                                tabindex=""
                                onfocus="formtooltip('%(id)s_help',1)" 
                                onblur="formtooltip('%(id)s_help',0)"
                                tal:attributes="tabindex tabindex/next;">
                        <option value="#" tal:repeat="keyword python: here.collectKeywords('%(id)s', '%(accessor)s')"
                                tal:content="keyword" tal:attributes="value keyword"> # </option>                                
                        </select>
                        
                        <br />

                        <input class="context" 
                               type="submit" 
                               name="add"
                               tabindex="" 
                               value="Add Selected &gt;"
                               onclick="javascript:add%(id)sSelectedKeywords();return false;"
                               tal:attributes="tabindex tabindex/next;">

                    <br />
		    <div tal:define="field python: here.getField('%(id)s');
                                     fixed python: field and field.enforceVocabulary == 1 or 0;"
                         tal:condition="python: test(fixed, 0, 1)">
                    New keyword <br />
                    <input type="text" 
                           name="%(id)s_entered_keyword" 
                           value="" 
                           size="20"
                           tabindex=""
                           onfocus="formtooltip('%(id)s_help',1)" 
                           onblur="formtooltip('%(id)s_help',0)"
                           tal:attributes="tabindex tabindex/next;"
                           /> 
                    <br />
                    <input class="context" 
                           type="submit" 
                           name="add" 
                           tabindex=""
                           value="Add New &gt;"
                           onclick="javascript:add%(id)sNewKeyword(document.edit_form.%(id)s_entered_keyword.value);return false;"
                           tal:attributes="tabindex tabindex/next;"
                           />
                    </div>
                    </td>

                    <td>
                    Selected %(id)s<br />
                    <textarea id="%(id)s_entered_keywords"
                      name="%(id)s:lines" 
                      rows="15" 
                      cols="15" 
                      wrap="off"
                      tabindex=""
                      onfocus="formtooltip('%(id)s_help',1)" 
                      onblur="formtooltip('%(id)s_help',0)"
                      tal:attributes="tabindex tabindex/next;"
                      ><span tal:repeat="item here/%(accessor)s" tal:replace="python:str(item)+'\n'"/></textarea>&nbsp;
                    </td></tr>
                </table>

            </div>

        </div>         

