<@sys.module id=parentId><#assign parent=object/></@sys.module>
<@sys.moduleList advanced=true parentId=parentId 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">
            <#if parent?has_content>
                <li>
                    <label><@t.page 'module.parent'/>:</label><label><@t.menu parentId/></label>
                </li>
            </#if>
                <li></li>
            </ul>
        </div>
    </form>
</div>
<div class="card">
    <div class="panelBar">
        <ul class="toolBar">
            <#if parent?has_content>
                <li><a href="sysModule/list.html?parentId=${parent.parentId!}" target="navTab" data-change-title="false" rel="sysModule/list"><i class="icon-circle-arrow-up icon-large"></i><@t.page 'button.return'/></a></li>
                <li class="line">line</li>
            </#if>
            <#if !parent?has_content || parent.hasChild>
                <li><a href="sysModule/add.html?parentId=${parentId!}" target="navTab" rel="sysModule/add"><i class="icon-plus-sign-alt icon-large"></i><@t.page 'module.add'/></a></li>
            </#if>
        </ul>
    </div>
    <table class="table" width="100%" layoutH orderField="${orderField!}" orderType="${orderType!}">
        <thead>
            <tr>
                <th width="150"><@t.page 'id'/></th>
                <th><@t.page 'name'/></th>
                <th><@t.page 'module.is_menu'/></th>
                <th><@t.page 'address'/></th>
                <th orderField="sort"><@t.page 'sort'/></th>
                <th><@t.page 'operate'/></th>
            </tr>
        </thead>
        <tbody>
            <#list page.list as a>
            <tr>
                <td>${a.id!}</td>
                <td><@t.menu a.id/></td>
                <td>${t.pageMessage(a.menu?then('module.menu','module.not_menu'))}</td>
                <td>${a.url!}</td>
                <td>${a.sort!}</td>
                <td class="wrap">
                    <a href="sysModule/add.html?id=${a.id}" class="edit btnText blue" target="navTab" rel="sysModule/edit"><i class="icon-edit"></i><@t.page 'module.edit'/></a></li>
                    <a href="sysModule/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></li>
                    <#if a?has_content && a.hasChild>
                        <a href="sysModule/list.html?parentId=${a.id}" class="btnText" target="navTab" data-change-title="false" rel="sysModule/list"><@t.page 'module.child_management'/></a>
                    </#if>
                </td>
            </tr>
            </#list>
        </tbody>
    </table>
    <#include "../include_page/page.html"/>
</div>
</@sys.moduleList>