index.html 2.97 KB
<div class="pageheader">
    <div class="media">
        <div class="pageicon pull-left">
            <i class="fa fa-th-list"></i>
        </div>
        <div class="media-body">
            <ul class="breadcrumb">
                <li><a href="#"><i class="glyphicon glyphicon-home"></i></a></li>
                <li><a href="#">平台类目管理</a></li>
                <li>物理类目管理</li>
            </ul>
            <h4>物理类目管理</h4>
        </div>
    </div>
    <!-- media -->
</div>

<div class="contentpanel">


    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading noborder">
                    <a href="/product/class/new" class="btn btn-success"><i class="glyphicon-plus"></i>添加品类</a>
                </div>
            </div>
        </div>
        <div class="col-md-12">
            <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>

                    {{# data}}
                    <tr class="level{{sortLevel}} {{# child}}hidden{{/ child}}" data-parent="{{parentId}}" data-val="{{id}}" data-status="close">
                        <td class="toggle-td"><span class="glyphicon glyphicon-folder-close"></span></td>
                        <td>{{id}}</td>
                        <td>{{sortName}}</td>
                        <td>{{sortInitials}}</td>
                        <td>{{sortLevel}}级分类</td>
                        <td>{{orderBy}}</td>
                        <td>
                            {{# booleanStatus}}开启{{/ booleanStatus}}
                            {{^ booleanStatus}}关闭{{/ booleanStatus}}
                        </td>
                        <td data-id="{{id}}">
                            <a href="/product/class/edit/{{id}}" class="btn btn-success btn-xs edit-class-btn">编辑</a>
                            <a href="" class="btn btn-xs open-close-btn {{# booleanStatus}}btn-danger{{/ booleanStatus}} {{^ booleanStatus}}btn-warning{{/ booleanStatus}}" data-status="{{status}}">
                                {{# booleanStatus}}关闭{{/ booleanStatus}}
                                {{^ booleanStatus}}开启{{/ booleanStatus}}
                            </a>
                        </td>
                    </tr>
                    {{/ data}}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>