<@cms.dictionary id=id>
    <#assign a=object/>
<form method="post" autocomplete="off" action="cmsDictionaryExclude/save?callbackType=closeCurrent&navTabId=cmsDictionary/excludeTree" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
    <input type="hidden" name="_csrf" value="<@tools.csrfToken admin=true/>"/>
    <div class="formBar card">
        <ul>
            <li><button type="submit" class="buttonActive" title="ctrl+s"><@t.page 'button.save'/></button></li>
            <li><button type="button" class="button close"><@t.page 'button.close'/></button></li>
        </ul>
    </div>
    <div class="card">
        <div class="pageFormContent" layoutH>
            <dl class="nowrap">
                <dt><@t.page 'dictionary'/>:</dt>
                <dd>
                    ${a.name!}
                    <input name="id" type="hidden" value="${(a.id.id)!}"/>
                </dd>
            </dl>
            <fieldset>
                <legend><@t.page 'dictionary.exclude'/></legend>
                <table class="list nowrap itemDetail" addButton="<@t.page 'button.new_line'/>" width="100%">
                    <thead>
                        <tr>
                            <th type="lookup" name="excludeList[#index#].id.dictionaryName" lookupPk="excludeDictionaryId" lookupUrl="cmsDictionary/lookup.html?field=excludeDictionaryId" lookupGroup="excludeList[#index#].id" fieldAttrs='{"readonly":"readonly"}' size="10"><a href="cmsDictionary/list.html" target="navTab" rel="cmsDictionary/list"><@t.page 'dictionary'/></a></th>
                            <th type="del" width="100"><@t.page 'operate'/></th>
                        </tr>
                    </thead>
                    <tbody>
                    <@cms.dictionaryExcludeList dictionaryId=a.id.id>
                        <#list list as d>
                            <tr>
                                <td>
                                    <@cms.dictionary id=d.id.excludeDictionaryId><#assign dictionary=object/></@cms.dictionary>
                                    <input type="hidden" name="excludeList[${d?index}].id.excludeDictionaryId" value="${(d.id.excludeDictionaryId)!}"/>
                                    <input type="text" name="excludeList[${d?index}].id.dictionaryName" readonly="readonly" size="10" value="${(dictionary.name)!}"/>
                                    <a class="btnLook" href="cmsDictionary/lookup.html?field=excludeDictionaryId" lookupGroup="excludeList[${d?index}].id" width="1000" height="500"><@t.page 'dictionary.select'/></a>
                                </td>
                                <td>
                                    <a href="javascript:void(0)" class="btnDel "><@t.page 'button.delete'/></a>
                                </td>
                            </tr>
                        </#list>
                    </@cms.dictionaryExcludeList>
                    </tbody>
                </table>
            </fieldset>
        </div>
    </div>
</form>
</@cms.dictionary>