<rt-form id="{{vm.form.name}}" name="{{vm.form.name}}" novalidate>
    <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">
                <rt-button id="btnSave" rt-style="link" rt-title="保存" rt-icon="floppy-o" ng-click="vm.form.save(false)">
                </rt-button>
                <rt-button id="btnSaveAndNew" rt-style="link" rt-title="保存并新建" rt-icon="floppy-o" ng-click="vm.form.save(true)">
                </rt-button>
            </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{{vm.form.ParamGroupCode}}" onclick="return false;" data-toggle="tab">选项集</a>
            </li>
            <li>
                <a href="#A2{{vm.form.ParamGroupCode}}" onclick="return false;" data-toggle="tab">选项</a>
            </li>
        </ul>
        <!-- ui[.nav] -->

        <div class="tab-content">
            <div class="tab-pane active" id="A1{{vm.form.ParamGroupCode}}">
                <rt-section rt-title="基本信息">
                    <rt-section-row>
                        <rt-input rt-type="NumLetterUnderlined" rt-title="选项集代码" rt-required="true" rt-col="4" rt-disabled="vm.form.data.IsSys==0"
                            ng-model="vm.form.data.ParamGroupCode">
                        </rt-input>
                        <rt-input rt-type="text" rt-title="选项集描述" rt-col="4" ng-model="vm.form.data.ParamGroupDesc"></rt-input>
                    </rt-section-row>
            </div>
            <!-- div[#1, .tab-pane] -->
            <!-- 选项-->
            <div class="tab-pane" id="A2{{vm.form.ParamGroupCode}}">
                <div ng-if="vm.form.type === 'Edit'" rt-include rt-template="core/Parameter/ParameterListView.html" rt-controller="parameterListController"
                    rt-include-params='{"relatedAttr":vm.form.data.ParamGroupCode}'></div>
            </div>
        </div>
        <!-- div[.tab-content] -->
    </div>
</rt-form>