Index.html 2.47 KB
<%include '../common/__ui/header'%>
<%include '../common/__partail/ListHeader'%>

<div class="contentpanel">
    <div style="margin-bottom: 20px">
        <a href="/product/class/new" class="btn btn-success"><i class="fa fa-plus"></i> 添加品类</a>
    </div>

    <div class="panel">
        <div class="panel-body nopadding">
            <div class="table-responsive">
                <table class="table table-bordered toggle-table">
                    <thead>
                    <tr>
                        <th width="10%"></th>
                        <th width="10%">ID</th>
                        <th width="15%">品类名称</th>
                        <th width="10%">品类缩写</th>
                        <th width="15%">所属分类</th>
                        <th width="10%">排序</th>
                        <th width="10%">状态</th>
                        <th width="20%">操作</th>
                    </tr>
                    </thead>
                    <tbody>

                    <%if data%>
                    <%each data as item%>
                    <tr class="level<%item.sortLevel%> <%if item.child%>hidden<%/if%>" data-parent="<%item.parentId%>"
                        data-val="<%item.id%>" data-status="close">
                        <td class="toggle-td"><span class="glyphicon glyphicon-folder-close"></span></td>
                        <td><%item.id%></td>
                        <td><%item.sortName%></td>
                        <td><%item.sortInitials%></td>
                        <td><%item.sortLevel%>级分类</td>
                        <td><%item.orderBy%></td>
                        <td><%if item.booleanStatus%>开启<%else%>关闭<%/if%></td>
                        <td data-id="<%item.id%>">
                            <a href="/product/class/edit/<%item.id%>"
                               class="btn btn-info btn-xs edit-class-btn">编辑</a>
                            <a href=""
                               class="btn btn-xs open-close-btn <%if item.booleanStatus%>btn-danger <%else%>btn-success<%/if%>"
                               data-status="<%item.status%>">
                                <%if item.booleanStatus%>关闭<%else%>开启<%/if%>
                            </a>
                        </td>
                    </tr>
                    <%/each%>
                    <%/if%>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<%include '../common/__ui/footer'%>