<rt-form id="{{vm.form.name}}" name="{{vm.form.name}}" novalidate>
    <style>
        .panel-footer {
            background-color: #f5f5f5;
            border-top: 1px solid #ddd;
            border-bottom-right-radius: 3px;
            border-bottom-left-radius: 3px;
            margin-top: -89px;
            padding: 10px 15px 1px;
        }

        .com-primary {
            background-color: #3c8dbc;
            border-color: #367fa9;
            margin-top: -35px;
            color: #fff;
        }

        #comm {
            font-family: inherit;
            font-size: inherit;
            line-height: inherit;
            width: 86%;
            margin-left: 4%;
            resize: none;
        }

        .ke-container-simple {
            display: block;
            border: 1px solid #CCC;
            background-color: #FFF;
            overflow: hidden;
            margin-left: 14px;
        }
    </style>
    <div class="row rt-margin-bottom-before-box">

        <div class="col-sm-2">
            <button class="btn btn-link" type="button" id="btnClose" ng-click="vm.form.hide()">
                        <i class="fa fa-sign-out"></i> 关闭
                    </button>
        </div>
        <!-- div[.col-sm-2] -->
        <div class="col-sm-10">
            <div class="pull-right">
            </div>
        </div>
        <!-- div[.col-sm-10] -->
    </div>
    <!-- div[.row] -->
    <div class="nav-tabs-custom">
        <!-- @@表单 -->
        <ul class="nav nav-tabs" ng-if="vm.form.type === 'Edit'">
            <li class="active">
                <a href="#A1" onclick="return false;" data-toggle="tab">内容</a>
            </li>
            <li>
                <a href="#A2" onclick="return false;" data-toggle="tab">附件信息</a>
            </li>
            <li>
                <a href="#A3" onclick="return false;" data-toggle="tab">评论列表</a>
            </li>
        </ul>
        <!-- ui[.nav] -->

        <div class="tab-content">
            <div class="tab-pane active" id="A1">
                <rt-section rt-title="内容">
                    <rt-section-row>
                        <textarea rt-title="内容" class="textareaContect" style=" width: 97.5%;height: 350px;" id="editor_knowledge" name="editor_knowledge"
                            ng-model="vm.form.data.content"></textarea>
                    </rt-section-row>

                </rt-section>

            </div>
            <!-- div[#1, .tab-pane] -->

            <div class="tab-pane" id="A2">
                <rt-section rt-title="附件信息">
                    <rt-section-row>
                        <rt-data-grid-no-page 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-field-code="name">附件名称</th>
                                        <th>格式</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr ng-repeat="row in fjs">
                                        <!-- @@ 视图列表值 -->
                                        <td>
                                            {{row.FileName}}
                                        </td>
                                        <td>
                                            {{row.FileName.split(".")[1]=='ppt'||row.FileName.split(".")[1]=='pptx'?'PPT': row.FileName.split(".")[1]=='doc'||row.FileName.split(".")[1]=='docx'?'Word':
                                            row.FileName.split(".")[1]=='xls'||row.FileName.split(".")[1]=='xlsx'?'Excel':
                                            row.FileName.split(".")[1]=='pdf'?'PDF':'其他'}}
                                        </td>
                                        <td>
                                            <button type="button" ng-disabled="row.DownFile===false" class="btn btn-link" ng-click="vm.form.downloadfile(row.Id)"> 下载</button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </rt-data-grid-no-page>
                        <!-- rt-data-grid  -->


                    </rt-section-row>
                </rt-section>

            </div>
            <!-- div[#2, .tab-pane] -->

            <div class="tab-pane" id="A3">
                <rt-section rt-title="评论列表">
                    <div class="row">
                        <div class="col-sm-8">
                            <div class="btn-group">
                                <button class="btn btn-link" ng-click="vm.sendstatus=3;">
                                            <i class="fa fa-plus"></i> 显示发送框
                                        </button>
                                <button class="btn btn-link" ng-click="vm.sendstatus=2;">
                                            <i class="fa fa-trash"></i> 隐藏发送框
                                        </button>
                                <button class="btn btn-link" ng-if="vm.form.commentList.length==0">
                                            (暂无评论)
                                        </button>
                                <button class="btn btn-link" ng-if="vm.form.commentList.length>0">
                                            (共有{{vm.form.commentList.length}}条评论)
                                        </button>
                            </div>
                            <!-- div[.btn-group] -->
                        </div>
                        <!-- div[.col-sm-12]-->
                    </div>

                    <table class="table table-hover" ng-if="vm.form.commentList.length>0" style="margin-bottom: 89px;">
                        <thead>
                            <tr>
                                <th class="rt-text-align" style="width: 20%;">评论人</th>
                                <th class="rt-text-align" style="width: 20%;">评论时间</th>
                                <th class="rt-text-align" style="width: 60%;">评论内容</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ng-repeat="row in vm.form.commentList track by row.post_commentId">
                                <td class="rt-text-align" style="width: 20%;">{{row.CreatedByName}}</td>
                                <td class="rt-text-align" style="width: 20%;">{{row.CreatedOn | date:'yyyy-MM-dd HH:mm'}}</td>
                                <td class="rt-text-align" style="white-space: normal;width: 60%;">{{row.text}}</td>
                            </tr>
                        </tbody>
                    </table>
                </rt-section>
            </div>
            <!-- div[#3, .tab-pane] -->
        </div>
        <!-- div[.tab-content] -->
    </div>

    <div class="nav-tabs-custom" ng-show="vm.sendstatus===3">
        <rt-section-row>
            <textarea id="comm" rt-type="text" placeholder="请输入评论内容" rt-col="10" rt-row="2" rt-required="false" ng-model="vm.sendComment"></textarea>
            <button class="btn com-primary" ng-disabled="!vm.isComment" ng-click="vm.form.sendComment()">发送</button>
        </rt-section-row>
    </div>
</rt-form>
<!-- rt-form -->