<@cms.tagTypeList pageIndex=pageNum pageSize=numPerPage>
<div class="pageHeader card">
    <form class="pagerForm" autocomplete="off" onsubmit="return navTabSearch(this);" method="post">
        <#include "../include_page/parameters.html"/>
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label><@t.page 'name'/>:</label>
                    <input type="text" name="name" value="${(name)!}"/>
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <button type="submit" class="buttonActive"><@t.page 'button.search'/></button>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
<@sys.authorized roleIds=admin.roles urls='cmsTagType/add,cmsTagType/delete'><#assign authorizedMap=map/></@sys.authorized>
<div class="card">
    <div class="panelBar">
        <ul class="toolBar">
        <#if authorizedMap['cmsTagType/add']>
            <li><a href="cmsTagType/add.html" target="navTab" rel="cmsTagType/add"><i class="icon-plus-sign-alt icon-large"></i><@t.page 'tag_type.add'/></a></li>
        </#if>
        </ul>
    </div>
    <table class="table" width="100%" layoutH>
        <thead>
            <tr>
                <th width="50"><@t.page 'id'/></th>
                <th width="250"><@t.page 'name'/></th>
                <th width="50"><@t.page 'tag_type.tag_count'/></th>
                <th width="100"><@t.page 'operate'/></th>
            </tr>
        </thead>
        <tbody>
            <#list page.list as a>
            <tr>
                <td>${a.id!}</td>
                <td class="exclude-translate">${(a.name)!}</td>
                <td>${a.count!}</td>
                <td class="wrap">
                <#if authorizedMap['cmsTagType/add']>
                    <a href="cmsTagType/add.html?id=${a.id}" class="edit btnText blue" target="navTab" rel="cmsTagType/edit"><i class="icon-edit"></i><@t.page 'tag_type.edit'/></a>
                </#if>
                <#if authorizedMap['cmsTagType/delete']>
                    <a href="cmsTagType/delete?id=${a.id}&_csrf=<@tools.csrfToken admin=true/>" class="btnText warn" title="<@t.page 'confirm.delete'/>" target="ajaxTodo"><i class="icon-trash"></i><@t.page 'button.delete'/></a>
                </#if>
                </td>
            </tr>
            </#list>
        </tbody>
    </table>
    <#include "../include_page/page.html"/>
</div>
</@cms.tagTypeList>