<#if 'view'=type>
        ${(value)!}
<#elseif extend.multiple>
        <table<#if 'customform'!=type> class="list nowrap sortDrag itemDetail"<#if !readonly> addButton="<@t.page 'button.new_line'/>" batchButton="<@t.page 'button.batch_create'/>" batchUrl="common/batchCreate.html?field=${inputName?url}"</#if></#if>>>
            <thead>
                <tr>
                    <th width="250"<#if 'customform'!=type> type="number" name="${inputName}" fieldClass="number<#if extend.required> required</#if>" size="30"  fieldAttrs='{"batchGroup":""<#if extend.maxlength?has_content>,"maxlength":${extend.maxlength}</#if>}'</#if>><@t.page 'value'/></th>
                    <th width="60"<#if 'customform'!=type> type="delAndSort"</#if>><@t.page 'operate'/></th>
                </tr>
            </thead>
            <tbody>
                <#if value?has_content>
                    <#list value?split(',') as a>
                    <tr>
                        <td>
                            <input name="${inputName}"<#if readonly> readonly="readonly"</#if>type="number" size="30"<#if 'customform'=type><#if extend.required||a?is_first> required="required"</#if><#else>class="required"</#if><#if extend.maxlength?has_content> maxlength="${extend.maxlength}"</#if> value="${a}"/>
                        </td>
                        <td>
                        <#if !readonly>
                            <#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>
                        </#if>
                        </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>
<#else>
        <input name="${inputName}" type="number"<#if readonly> readonly="readonly"</#if><#if extend.maxlength?has_content> maxlength="${extend.maxlength}"</#if><#if 'customform'=type><#if extend.required> required="required"</#if><#else><#if extend.required> class="required"</#if></#if> value="<#if 'customform'=type>${r'${(attribute.'+extend.id.code+r')!}'}<#else>${(value)!}</#if>"/>
</#if>