<div class="row rt-margin-bottom-before-box">
    <div class="col-sm-1">
        <div class="btn-group">
            <button class="btn btn-link" ng-click="vm.actions.hide()"><i class="fa fa-sign-out"></i> 关闭</button>
        </div>
    </div>
    <div class="col-sm-offset-3 col-sm-8">
        <div class="pull-right">
            <div class="btn-group">
                <button class="btn btn-link"
                        ng-click="vm.actions.edit('cmm/knowledge/knowledgeTypeEditView.html', 'knowledgeTypeEditController')"
                        ng-show="vm.privilege.IsWrite"><i class="fa fa-pencil-square-o"></i> 编辑
                </button>
            </div>
            <div class="btn-group">
                <button class="btn btn-link" ng-click="vm.actions.del()" ng-show="vm.privilege.IsDelete"><i
                        class="fa fa-trash"></i> 删除
                </button>
            </div>
            <div class="btn-group">
                <button class="btn btn-link" ng-click="vm.actions.activate()"
                        ng-show="vm.form.data.StateCode.Value == 1 && vm.privilege.IsActive"><i class="fa fa-check"></i>
                    激活
                </button>
            </div>
            <div class="btn-group">
                <button class="btn btn-link" ng-click="vm.actions.deactivate()"
                        ng-show="vm.form.data.StateCode.Value == 0 && vm.privilege.IsActive"><i class="fa fa-ban"></i>
                    停用
                </button>
            </div>
        </div>
    </div>
</div>
<div class="box box-primary box-widget">
    <div class="box-header with-border">
        <h4 class="list-group-item-heading">{{vm.form.data.name || "--"}}</h4>
    </div>
    <div class="box-body">
        <p class="list-group-item-text">状态：{{vm.form.data.StateCode.Name || "--"}}</p>
    </div>
</div>
<div class="nav-tabs-custom">
    <ul class="nav nav-tabs">
        <li class="active">
            <a href="#tab1{{vm.form.name}}" onclick="return false;" data-toggle="tab">资料</a>
        </li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane content active" id="tab1{{vm.form.name}}">
            <rt-section rt-title="基本信息">
                <rt-section-row>
                    <rt-readonly-field rt-col="10" rt-title="知识库类别"
                                       ng-model="vm.form.data.name"></rt-readonly-field>
                </rt-section-row>
                <rt-section-row>
                    <rt-readonly-field rt-col="10" rt-title="父类别"
                                       ng-model="vm.form.data.parenttypeId.Name"></rt-readonly-field>
                </rt-section-row>
            </rt-section>
        </div>
    </div>
</div>