<#if extend.multiple>
    <@cms.tag ids=value><#assign values=map/></@cms.tag>
    <#if 'view'=type>
        <#if values?has_content><#list values as k,v><p>${k!}:${(v.title)!}</p></#list></#if>
    <#else>
        <table class="list nowrap sortDrag itemDetail" addButton="<@t.page 'button.new_line'/>">
            <thead>
                <tr>
                    <th width="250"<#if 'customform'!=type> type="lookup" name="${extend.id.code}_tagName" fieldClass="<#if extend.required>required</#if>" size="30" fieldAttrs='{"readonly":"readonly","width":920,"height":580}' lookupUrl="cmsTag/lookup.html?field=${inputName?url}&nameField=${extend.id.code?url}_tagName" lookupGroup="" lookupPk="${inputName}"</#if>><@t.page 'tag'/></th>
                    <th width="60"<#if 'customform'!=type> type="delAndSort" </#if>><@t.page 'operate'/></th>
                </tr>
            </thead>
            <tbody>
                <#if values?has_content>
                    <#list values as k,v>
                    <tr<#if 'customform'!=type> class="unitBox"</#if>>
                        <td>
                            <input name="${inputName}" value="${k!}" type="hidden"/>
                            <input name="${extend.id.code}_tagName" readonly="readonly" size="30" value="${(v.title)!}" type="text" class="<#if extend.required>required</#if>"/>
                            <a class="btnLook" href="cmsTag/lookup.html?field=${inputName?url}&nameField=${extend.id.code?url}_tagName" width="920" height="500" lookupGroup=""><@t.page 'select'/></a>
                        </td>
                        <td>
                            <#if 'customform'!=type><a href="javascript:;" class="icon-move"></a></#if>
                            <a href="javascript:;"<#if 'customform'=type> onclick="this.parentElement.parentElement.remove()"<#else> class="btnDel"</#if>><@t.page 'button.delete'/></a>
                        </td>
                    </tr>
                    </#list>
                </#if>
                <#if 'customform'=type>
                    <tr>
                        <td colspan="2"><a href="javascript:;" onclick="var thisNode=this.parentElement.parentElement;var tr = document.createElement('tr');tr.innerHTML='<td><input name=\'${inputName}\' type=\'number\' size=\'30\'<#if extend.maxlength?has_content> maxlength=\'${extend.maxlength}\'</#if><#if extend.required> required=\'required\'</#if>/></td><td><a href=\'javascript:;\' onclick=\'this.parentElement.parentElement.remove()\'><@t.page 'button.delete'/></a></td>';thisNode.parentElement.insertBefore(tr,thisNode);"><@t.page 'button.new_line'/></a></td>
                    </tr>
                </#if>
            </tbody>
        </table>
    </#if>
<#else>
    <@cms.tag id=value><#assign values=object/></@cms.tag>
    <#if 'view'=type>
        ${(value)!}:${(values.name)!}
    <#else>
        <input name="${inputName}" value="${(value)!}" type="hidden"/>
        <input name="${extend.id.code}_tagName" readonly="readonly" size="30" value="${(values.name)!}" type="text"<#if 'customform'!=type> class="<#if extend.required> required</#if>"</#if>/>
        <a class="btnLook" href="cmsTag/lookup.html?field=${inputName?url}&nameField=${extend.id.code?url}_tagName" lookupGroup="" width="920" height="500"><@t.page 'select'/></a>
    </#if>
</#if>