<div class="row rt-margin-bottom-before-box">
    <div class="col-sm-8">
        <div class="btn-group">
            <button class="btn btn-link" data-toggle="sidebar" data-target=".sidebar-right" ui-sref=".edit({id:''})" ui-sref-opts="{location:true}">
                    <i class="fa fa-plus"></i> 新建
                </button>
            <button class="btn btn-link" ng-click="vm.actions.del()">
                    <i class="fa fa-trash"></i> 删除
                </button>
        </div>
    </div>
    <div class="col-sm-4">
    </div>
</div>

<div class="nav-tabs-custom">
    <ul class="nav nav-tabs">
        <li ng-repeat="view in vm.view.list track by view.Id" ng-class="{true:'active',false:'inactive'}[view.Id == vm.view.selectedView.Id]"
            ng-click="vm.selectView(view)">
            <a href="#1" onclick="return false;" data-toggle="tab">{{view.ViewName}}</a>
        </li>
    </ul>
    <div class="tab-content">
        <rt-data-grid rt-page-record-count="vm.page.recordCount" rt-page-index="vm.page.index" rt-page-size="vm.page.size" rt-get-data="vm.view.search()" rt-sort-field="vm.view.sortField"
            rt-rows="vm.data" rt-selected-ids="vm.view.selectedIds" rt-auto-height="vm.view.autoHeight">
            <table class="table table-condensed table-hover">
                <thead>
                    <tr>
                        <th>
                            <rt-header-checkbox></rt-header-checkbox>
                        </th>
                        <th>#</th>
                        <th rt-field-code="seq">顺序号</th>
                        <th rt-field-code="lgm_knowledgeIdName">文章标题</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data track by $index">
                        <td>
                            <rt-data-checkbox value="{{row.Id}}" />
                        </td>
                        <td>
                            <a id="{{row.Id}}" data-toggle="sidebar" data-target=".sidebar-right" ui-sref=".edit({id:row.Id})" ui-sref-opts="{location:true}">查看</a>
                        </td>
                        <td>
                            {{row.seq}}
                        </td>
                        <td>
                            {{row.lgm_knowledgeId.Name}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
</div>

<div class="sidebar sidebar-right sidebar-animate rt-shadow-border-left content-wrapper" ng-if="vm.view.type=='default'">
    <div ui-view class="content"></div>
</div>