<@sys.workflowList name=name orderType=orderType 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>
<@_sysAuthorized roleIds=admin.roles urls='sysWorkflow/add,sysWorkflow/batchParameters,sysWorkflow/delete'><#assign authorizedMap=map/></@_sysAuthorized>
<div class="pageContent card">
    <div class="panelBar">
        <ul class="toolBar">
        <#if authorizedMap['sysWorkflow/add']>
            <li><a href="sysWorkflow/add.html" target="navTab" rel="sysWorkflow/add"><i class="icon-plus-sign-alt icon-large"></i> <@t.page 'button.add'/></a></li>
        </#if>
        <#if authorizedMap['sysWorkflow/delete']>
            <li><a href="sysWorkflow/delete?_csrf=<@_csrfToken admin=true/>" title="<@t.page 'confirm.batch_delete'/>" target="selectedTodo" rel="ids"><i class="icon-trash icon-large"></i> <@t.page 'button.batch_delete'/></a></li>
        </#if>
        </ul>
    </div>
    <table class="table" width="100%" layoutH "${orderField!}" orderType="${orderType!}">
        <thead>
            <tr>
                <th width="20"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th><@t.page 'name'/></th>
                <th><@t.page 'description'/></th>
                <th orderField="createDate"><@t.page 'create_date'/></th>
                <th><@t.page 'operate'/></th>
            </tr>
        </thead>
        <tbody>
            <#list page.list as a>
            <tr target="sid" rel="${a.id}">
                <td class="center"><input name="ids" value="${a.id}" type="checkbox"></td>
                <td><a href="sysWorkflow/view.html?id=${a.id}" class="exclude-translate" target="dialog" rel="viewWorkflow${a.id}" width="1200" height="500">${(a.name)!}</a></td>
                <td class="exclude-translate">${a.description!}</td>
                <td>${a.createDate!}</td>
                <td>
                <#if authorizedMap['sysWorkflow/add']>
                    <a href="sysWorkflow/add.html?id=${a.id}" class="edit btnText blue" target="navTab" rel="sysWorkflow/edit"><i class="icon-edit"></i> <@t.page 'button.edit'/></a>
                </#if>
                <#if authorizedMap['sysWorkflow/batchParameters']>
                    <a href="sysWorkflow/batchParameters.html?id=${a.id}" class="btnText blue" target="dialog" mask="true"><i class="bi bi-check-all"></i> <@t.page 'button.batch_use'/></a>
                </#if>
                <#if authorizedMap['sysWorkflow/delete']>
                    <a href="sysWorkflow/delete?ids=${a.id}&_csrf=<@_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>
</@sys.workflowList>